html { height: 100%; }

body{
    font-family: Sans-serif;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('images/my-image.jpg');
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 60vh;
    height: 90vh;
    overflow-x: hidden;
}
header {
    background: linear-gradient(to right, rgba(128,0,128,1), rgba(128,0,128,0));
    color:black;
    padding: 15px;
    text-align: center;
}
nav {
    background:linear-gradient(to left, rgba(128,0,128,1), rgba(128,0,128,0));
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    
}
nav a{
    color:white;
    margin: 0 15 px;
    padding: 10px 15px;
}
nav a[href="home"] {
    background-color: #FFC0CB;
    margin-left: auto;
    margin-right: auto;
}
nav a[href="exercise2"]{
    background-color: #FFC0CB ;
}
nav a [href="exercise3"]{
    background-color:  #FFC0CB;
}
nav a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}
#home:target ~ nav a[href="#home"],
#exercise2:target ~ nav a[href="#exercise2"],
#exercise3:target ~ nav a[href="#exercise3"],
#menu:target ~ nav a[href="#menu"] {
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transform: scale(1.1);
}
.page {
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    border: 5px solid #FFFFFF ;
    border-radius: 8px;
    height: 89%;
    width: 70%;
    background: linear-gradient(135deg,#e4a5c0 0%,#9b4dca 50%,#4a2cb3 100%);
    display: none;
    padding: 40px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.page:target {
    display: block;
}
body:not(:has(:target)) #home {
    display: block;
}
.con {
    display:flex;
    width: 100%;
}
main {
    width: 80%;
    padding: 20px;
    text-align: center;
}
aside {
    width:250px;
    flex-shrink: 0;
    min-height: 500px;
    background:linear-gradient(rgba(128,0,128,0.7), transparent);
    padding: 20px;
    color:black;
    transition: background-color 0.3s, color 0.3s;
}
aside a{
    display: block;
    padding: 15px;
    border-bottom: 1px solid #ffb6c1 ;
    color: black;
    text-decoration: none;
}
button {
    background-color: #F8D7E8;
    border-radius: 5px;
    display: inline-grid;
    border: none;
    width:270px;
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
    border-radius:5px;
    font-size:15px;
    font-weight:bold;
    margin: 8px;
    cursor: pointer;
    transition: background-color 0.3s;


}
button:hover{
    background:#ffccdd;
    box-shadow:0 20px 20px rgba(75, 0, 130, 0.5)
}
footer {
    background: linear-gradient(90deg,rgba(169,104,174,1) 0%, rgba(255,255,255,1) 100%);
    color:black;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.dark-mode {
    background-color: #2B1B17;
}
.dark-mode header {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode nav {
    background-color: #2c2c2c;
}

.dark-mode nav a {
    color: #e0e0e0;
}

.dark-mode .page {
    background-color: #2d2d2d;
    border-color: #444;
    color: #ffffff;
}

.dark-mode aside {
    background-color: #252525;
    color: #ffffff;
}

.dark-mode aside a {
    color: #ffffff;
    border-bottom-color: #444;
}

.dark-mode footer {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode button {
    background-color: #4a4a4a;
    color: #ffffff;
}

.dark-mode button:hover {
    background-color: #666666;
}


input {
    display: block;
    margin-right:auto ;
    margin-left: auto;
    margin-bottom: 2px;
    border-radius: 3px;
    border-color: #5a2720;      
}
#addBtn {
    width: 50px;
    height: 35px;
    color: #835F58;

}
#flower {
    width: 15%;
    height: auto;
    border-radius: 5px;
}
#changeImgBtn {
    width: 95px;
    height: 35px;
    color: #835F58;
    display: block;
    margin-right: auto;
    margin-left: auto;
}
#addTodoBtn {
    width: 100px;
    height: 40px;
    color: #835F58;
}
ul {
    text-align: left;
    list-style-position: outside;
    padding: 0;
}   
    
.container {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 70px;
    max-width: 700px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calculate {
    background: linear-gradient(to left, purple, transparent) ;
    color: white;
}

#calculate:hover {
    background-color: #A3B18A;
}

#reset {
    background: linear-gradient(to right, purple, transparent) ;
    color: #333;
}

#reset:hover {
    background-color: #e0e0e0;
}

.results {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

#finalGrade,
#gradeEquivalent {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

#gradeEquivalent {
    color: #667eea;
}   



