@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
        darkmode color    
    */
    background: linear-gradient(-180deg, #BCC5CE 0%, #929EAD 98%), radial-gradient(at top left, rgba(255,255,255,0.30) 0%, rgba(0,0,0,0.30) 100%);
 background-blend-mode: screen;
}

body.darkmode{
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

body.lightmode{
    background: linear-gradient(-180deg, #BCC5CE 0%, #929EAD 98%), radial-gradient(at top left, rgba(255,255,255,0.30) 0%, rgba(0,0,0,0.30) 100%);
}

.mynav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid white;
}

.title{
    padding: 5px 20px;
    margin: 5px;
    margin-left: 10px;
    font-family: "Roboto", sans-serif;
    color: black;
}

.title-letter{
    color: rgb(101, 130, 255);
    font-size: 30px;
    font-weight: 900;

}


.layout{
    display: flex;
    justify-content: space-around;
    min-height: calc(100vh - 60px); /* Subtract nav height */
    padding-top: 30px;
}

.todo-container{
    width: 100%;
    max-width: 20%;
    min-height: min-content; /* Allow shrinking to content */
    height: fit-content;
    border: 1px solid black;
}

.calendar{
    width: 100%;
    height: 77vh;
    max-width: 20%;
    border: 1px solid white;
    border-radius: 20px;
}

.pomodoro-timer{
    width: 100%;
    height: 70%;
    max-width: 40%;
    border: 1px solid white;
    border-radius: 54px;
    padding: 20px;
}

.type-of-timer{
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    color: white;
    margin-top: 30px;
}

.pomotime, .shortbreak, .longbreak{
    border: 1px solid rgba(255, 255, 255, 0.856);
    border-radius: 10px;
    padding: 10px;
    transition: background-color 0.6s, border 0.2s;
    cursor: pointer;
}

.clicked-mode{
    background-color: rgba(46, 185, 228, 0.603);

}


.pomotime:hover, .shortbreak:hover, .longbreak:hover{
    box-shadow: 
        0 0 15px rgba(38, 165, 204, 0.6),
        0 0 30px rgba(38, 165, 204, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.pomotime:active, .shortbreak:active, .longbreak:active{
    border: 1px solid rgb(52, 208, 255);
}

.p-pomo, .p-shortbreak, .p-longbreak{
    padding: 0;
    margin: 0;
}


.controls{
    width: 50%;
    display: flex;
    justify-content: space-around;
}

.bottom-timer{
    display: flex;
    justify-content: center;
    margin-top: 80px;
    width: 100%;
}

.fa-forward, .fa-play, .fa-stop, .fa-pause{
    color: rgb(255, 255, 255);
    background-color: none;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.63);
    transition: 0.3s;

}

.fa-forward:hover, .fa-play:hover, .fa-stop:hover, .fa-pause:hover{
    transform: translateY(-5px);
}

.fa-forward:active, .fa-play:active, .fa-stop:active, .fa-pause:active{
    color: black;
}

.skip-butt, .start-butt, .stop-butt{
    font-size: 50px;
    background-color: transparent;
    border: none;
}


/** DARK MODE LIGHT MODE */
.toggle-mode{
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
}

.fa-sun, .fa-moon{
    font-size: 20px;
    color: black;
}


@media (max-width: 900px) {

    body{
        overflow-y: auto;
    }

	.layout{
		flex-direction: column;
		align-items: center;
		gap: 18px;
		padding-top: 18px;
		min-height: auto;
	}
	
	/* Set specific order for mobile layout */
	.pomodoro-timer {
		order: 1; /* Show first */
		width: 95%;
		max-width: 95%;
		padding: 14px;
	}
	
	.todo-container {
		order: 2; /* Show second */
		width: 95%;
		max-width: 95%;
	}
	
	.calendar {
		order: 3; /* Show last */
		width: 95%;
		max-width: 95%;
		display: block; /* Show on tablets */
	}
	
	.type-of-timer{
		gap: 10px;
		flex-wrap: wrap;
	}
}


/* FOR PHONE */
@media (max-width: 480px) {

    html, body {
  overflow-x: hidden;
    }

	nav{
		padding: 8px 12px;
	}
	.title{
		font-size: 25px;
        margin: 0;
        padding: 0;
	}

    .toggle-mode{
        margin-right: 0;
    }

	.settings{
		font-size: 12px;
	}
	.todo-container {
		padding: 8px;
		border-radius: 12px;
	}
	.pomodoro-timer{
		padding: 12px;
		border-radius: 18px;
        border: none !important;
        margin-bottom: 30px;
         margin-top: 30px;
	}
	.controls { width: 80%; }
	.skip-butt, .start-butt, .stop-butt{
		font-size: 36px; /* smaller controls on phone */
	}
	.bottom-timer{ margin-top: 32px; }
	
    .colon p{
        font-size: 100px;
        padding-top: 0;
        padding-bottom: 40px;
        margin: 0;
    }
}
