body{
    font-family: italic;
    margin: 0;
    background: linear-gradient(135deg, #ff7e5f,#feb47b, #ff758c,#7a5cff);

}
header {
    background:rgba(225, 255, 255,0.15);
    backdrop-filter: blur(20px);
    color:white;
    padding: 10px;
    text-align: center;
}
nav {
    background:rgba(255, 255, 255, 0.1);
    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="about"]{
    background-color: #FFC0CB ;
}
nav a[href="contact"]{
    background-color:  #FFC0CB;
}
nav a:hover {
    background:rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    opacity: 0.8;
    transform: scale(1.05);
}
#home:target ~ nav a[href="#home"],
#about:target ~ nav a[href="#about"],
#contact:target ~ nav a[href="#contact"] {
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transform: scale(1.1);
}
.page {
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    height:89%;
    width: 70%;
    background: rgba(255, 255, 255, 0.15);
    display: none;
    padding: 30px;
    min-height: 50hv;
    justify-content: center;
    text-align: center;
}
#home{
    font-family: monospace; 
    color:#835F58;
}
#home h1 {
    margin-top:100px;
}
.page:target {
    display: block;
}
body:not(:has(:target)) #home {
    display: block;
}
.con {
    display:flex;
    width: 100%;
}
main {
    width: 80%;
    padding: 20px;
    text-align: center;
    flex:1;
}
aside {
    width:150px;
    flex-shrink: 0;
    min-height: 100hv;
    background:rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 20px;
    color:white;
    transition: 0.3s smooth;
}
aside a{
    display: block;
    padding: 15px;
    border-bottom: 1px solid #ffb6c1 ;
    color: white;
    text-decoration: none;
}
.submenu button {
    background:rgba(225, 255, 255,0.15);
    display: flex;
    border: none;
    width: 120px;
    height: auto;
    padding: 5px;
    font-size:15px;
    margin: 8px;
    color: white;
    font-size: 15px;
    border-radius: 8px;

}
.submenu button:hover{
    background:rgba(255, 255, 255, 0.25);
}
footer {
    background: rgba(255, 255, 255, 0.15);
    color:white;
    text-align: center;
    height: 20px;
}
.dark-mode {
    background:linear-gradient(135deg, #0b1d51 0%, #1a2b5f 50%, #2a3a7f 100%);

}
.page input {
    display: block;
    margin-right:auto ;
    margin-left: auto;
    margin-bottom: 2px;
    border-radius: 3px;
    border-color: #5a2720;      
}
.page img {
    display: block;
    width: 250px;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    margin: 25px auto;
}
.page ul,li {
    text-align: center;
    padding-left: 1em;
    list-style-position: inside;
    padding: 0;

}
aside input[type="checkbox"] {
    display: none;
}
.dropdown {
    display: block;
    padding: 10px;
    color: white;
    cursor: pointer;
    margin: 5px 0;
    border-radius: 8px;
}
.submenu {
    display: none;
    padding-left: 15px;
    font-size: 15px;
    text-align: center;
}
#settings-toggle:checked + .dropdown + .submenu,
#ex2-toggle:checked + .dropdown + .submenu,
#ex3-toggle:checked + .dropdown + .submenu,
#ex4-toggle:checked + .dropdown + .submenu {
    display: block;
}
.submenu a{
    background:rgba(225, 255, 255,0.15);
    display: flex;
    border: none;
    width: 110px;
    height: auto;
    padding: 5px;
    margin: 8px;
    color: white;
    gap: -0.0px;
    border-radius: 8px;
    text-align: center;
    font-family: italic;
    letter-spacing: 2px;
}
.submenu a:hover {
    background:rgba(255, 255, 255, 0.25);
}
.page h1, p, h3, li,ul, button{
    justify-content: center;
    font-family: monospace; 
    color:#835F58; 

}
.page h1 {
    margin-top: 100px;
}
#addItemBtn{
    background:rgba(225, 255, 255,0.15);
    border-radius: 5px;
    display: inline-grid;
    border: none;
    width:150px;
    height: 35px;
    padding: 10px;
    box-sizing: border-box;
    font-size:15px;
    font-weight:bold;
    margin: 8px;
}
#removeBtn {
    background:rgba(225, 255, 255,0.15);
    border-radius: 5px;
    display: inline-grid;
    border: none;
    width:160px;
    height: 35px;
    padding: 10px;
    box-sizing: border-box;
    font-size:15px;
    font-weight:bold;
    margin: 8px;

}
#addBtn {
    background:rgba(225, 255, 255,0.15);
    display: inline-grid;
    border: none;
    width:40px;
    height: 35px;
    padding: 10px;
    box-sizing: border-box;
    border-radius:5px;
    font-size:15px;
    font-weight:bold;
    margin: 8px;
}    
#changeImgBtn {
    background:rgba(225, 255, 255,0.15);
    border-radius: 8px;
    border: none;
    width: 180px;
    height: 35px;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    margin: 20px auto;
}
#addTodoBtn{
    display: block;
    background:rgba(225, 255, 255,0.15);
    border-radius: 5px;
    display: inline-grid;
    border: none;
    width:150px;
    height: 35px;
    padding: 10px;
    box-sizing: border-box;
    font-size:15px;
    font-weight:bold;
    margin: 8px;
}
.light-bg {
    background:linear-gradient(135deg, #ffd580, #ffb6a3, #ffe5b4);
}
#act1 input[type="number"] {
    display: inline-block;
    width: 120px;
    margin: 10px;
    margin-top: 50px;
    border-radius: 3px;
}

#act1 label {
    display: inline-block;
    margin: 10px 5px;
    font-family: monospace; 
    color:#835F58;
    font-size: 15px;
    font-weight: bold;

}
#calculate,
#reset, button{
    display:inline-block ;
    margin-top: 30px;
    background:rgba(225, 255, 255,0.15);
    border-radius: 8px;
    border: none;
    width: 150px;
    height: 35px;
    padding: 10px;
    font-size: 15px;
    font-weight: bold;
    margin: 20px 15px;
}
#act1 h3{
    text-align: left;
    margin-left: 50px;
    font-size: 16px;
}
#act1 h5{
    text-align: left;
    margin-left: 90px;
    margin-bottom: 20px;
    font-family: monospace; 
    color:#835F58;
    font-size: 15px;
}
#sidebar-toggle{
    display:none;
}
/* hide sidebar when checked */
#sidebar-toggle:checked ~ .con aside{
    width:0;
    padding:0;
    overflow:hidden;
}

/* expand main content */
#sidebar-toggle:checked ~ .con main{
    width:100%;
}

#sidebar-toggle{
    display: none;
}

/* align toggle with navbar */
.toggle-btn{
    position: absolute;
    top: 125px;
    left: 20px;
    font-size: 22px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;

}
#calculate{
     background:rgba(255, 255, 255, 0.25);
}
#reset{
     background:rgba(255, 255, 255, 0.25);
}
#addTodoBtn:hover{
     background:rgba(255, 255, 255, 0.25);
}
#changeImgBtn{
     background:rgba(255, 255, 255, 0.25);
}
#addBtn:hover{
     background:rgba(255, 255, 255, 0.25);
}
#removeBtn:hover{
     background:rgba(255, 255, 255, 0.25);
}
#addItemBtn:hover{
     background:rgba(255, 255, 255, 0.25);
}
html {
    scroll-behavior: smooth;
}
