*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body{
    background: var(--background-primary);
}
#toggle{
    position: absolute;
    top: 40px;
    right: 100px;
    border-radius: 50px;
    padding: 15px;
    cursor: pointer;
    border: var(--border-secondary);
    background-color: #000000;
    color: #ffffff;

}
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container-1{
    width: 500px;
    height: 600px;
    background-color: var(--background-secondary);
    position:relative;
    left: 600px;
    top: 200px;
    border-radius: 20px;
    border: var(--border-primary);
    box-shadow: var(--box-primary);
}
h1{
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: var(--text-shadow);
    background: none;
    position: relative;
    top: 30%;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 30px;
}
h2{
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 100;
    opacity: 0.5;
}
h3{
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 100;
    opacity: 0.5;
    margin-top: 5px;
}
h4{
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 100;
    opacity: 0.5;
    margin-top: 5px;
}
#city-input{
    padding: 10px;
    border: none;
    border-radius: 10px;
    width: 15rem;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 20px;
    color:  var(--text-tertiary);
    padding: 10px 10px 10px 35px;
}
#city-input:focus{
    background-color: var(--background-tertiary);
    box-shadow: 0 4px 8px rgba(180, 68, 68, 0.5);
    color: var(--text-secondary);
    outline: none;
}
.search-icon{
    height: 20px;
    width: 20px;
    position: relative;
    top: 49px;
    left: -90px;
    z-index: 1;
    pointer-events: none;
}
#search-button{
    position: relative;
    top: 20px;
    width: 8rem;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    height: 25px;
    color: var(--text-fifth);
    background-color:  var(--background-fourth);
}
#search-button:hover{
    background-color: var(--background-fifth);
    box-shadow: 0 4px 8px rgba(180, 68, 68, 0.5);
}
.container-2{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    top: 40px;
}
.container-2 h2{
    position: relative;
    top: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-quaternary);
    opacity: 1;
    background-color: var(--background-sixth);
    width: 300px;
    text-align: center;
    padding: 5px;
    box-shadow: var(--text-shadow2);
}
.container-2 ul li{
    list-style: none;
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.5;
    margin-top: 10px;
    position: relative;
    top: 25px;
}
#suggestions {
    position: absolute; /* Position it relative to the input field */
    border-radius: 10px;
    color: var(--text-secondary);
    background-color: var(--background-seventh);
    z-index: 1000; /* Ensure it appears above other elements */
    width: 100%; /* Match the width of the input field */
    max-height: 150px; /* Limit the height of the dropdown */
    overflow-y: auto; /* Add scroll if there are too many suggestions */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visibility */
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    font-size: 12px;
}

.suggestion-item:hover {
    background-color: var(--background-eighth);/* Highlight the item on hover */
}

/* Theme code */

.dark-theme{
    --background-primary: linear-gradient(to right, #000000, #160202);  /* body Background gradient */
    --background-secondary: #000000; /* container 1 Background */
    --background-tertiary: #ce0606; /* city input focus Background */
    --background-fourth: #580303; /* search button Background */
    --background-fifth: #ce0606; /* search button hover */
    --background-sixth: rgb(143, 9, 9);; /* container 2 h2 Background */
    --background-seventh: rgb(131, 17, 17);; /* suggestions Background */
    --background-eighth: #9b1818; /* suggestions hover Background */

    --text-primary: rgb(143, 9, 9);; /* h1 text color */
    --text-secondary: rgb(255, 255, 255); /* h2, h3, h4 text color */
    --text-tertiary: rgb(0, 0, 0); /* city input */
    --text-quaternary: rgb(206, 195, 195); /* container 2 h2 text color */
    --text-fifth: rgb(255, 255, 255);   /* search text color */

    --text-shadow : 2px 2px 4px rgba(0, 0, 0, 1); /* h1 text shadow */
    --text-shadow2 : inset 80px 0 50px -8px rgba(0, 0, 0, 0.8), inset -80px 0 50px -8px rgba(0, 0, 0, 0.8); /* h2 text shadow */

    --border-primary: 1px solid rgb(93, 1, 1); /* container border */
    --border-secondary: rgb(255, 0, 0) 1px solid; /* toggle border */
    --box-primary: 0 4px 8px rgba(180, 68, 68, 1); /* box shadow */
}
.light-theme{
    --background-primary: linear-gradient(to right, #ffffff, #ffffff);  /* body Background gradient */
    --background-secondary: #ffffff; /* container 1 Background */
    --background-tertiary: #b8b4b4; /* city input focus Background */
    --background-fourth: #a01919; /* search button Background */
    --background-fifth: #ff0000; /* search button hover */
    --background-sixth: rgb(255, 0, 0);; /* container 2 h2 Background */
    --background-seventh: rgb(161, 157, 157);; /* suggestions Background */
    --background-eighth: #746e6e; /* suggestions hover Background */
    --border-secondary: red 1px solid; /* container border */

    --text-primary: rgb(0, 0, 0);; /* h1 text color */
    --text-secondary: rgb(0, 0, 0); /* h2, h3, h4 text color */
    --text-tertiary: rgb(0, 0, 0); /* city input */
    --text-quaternary: rgb(0, 0, 0); /* container 2 h2 text color */
    --text-fifth: rgb(255, 255, 255);   /* search text color */

    --text-shadow : 2px 2px 4px rgb(255, 255, 255); /* h1 text shadow */
    --text-shadow2 : inset 80px 0 50px -8px rgb(255, 255, 255), inset -80px 0 50px -8px rgb(255, 255, 255); /* h2 text shadow */

    --border-primary: none; /* container border */
    --border-secondary: rgb(255, 0, 0) 1px solid; /* toggle border */
    --box-primary: 0 4px 8px rgb(62, 57, 57); /* box shadow */
}




/* responsive design */

@media screen and (max-width: 568px){          /* For mobile devices */
    .container-1{
        width: 70%;
        height: 60vh;
        left: 15%;
        top: 150px;
        border-radius: 10px;
    }
    h1{
        font-size: 1.5rem;
    }
    h2{
        font-size: 0.7rem;
    }
    h3{
        font-size: 0.6rem;
    }
    h4{
        font-size: 0.6rem;
    }
    .container-2 h2{
        font-size: 1rem;
        width: 80%;
    }
    .container-2 ul li{
        font-size: 0.8rem;
    }
}

@media screen and (min-width:568px) and (max-width:768px){    /* For tablets */
    .container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .container-1{
        width: 400px;
        height: 65vh;
        left: 15%;
        top: 150px;
        position:relative;
    }
    h1{
        font-size: 1.5rem;
    }
    h2{
        font-size: 0.7rem;
    }
    h3{
        font-size: 0.6rem;
    }
    h4{
        font-size: 0.6rem;
    }
    .container-2{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .container-2 h2{
        font-size: 1rem;
        width: 80%;
    }
    .container-2 ul li{
        font-size: 0.8rem;
    }
}

@media screen and (min-width:768px) and (max-width:1024px) {        /* For small laptops */
    .container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .container-1{
        width: 400px;
        height: 65vh;
        left: 27%;
        top: 150px;
    }
    h1{
        font-size: 1.5rem;
    }
    h2{
        font-size: 0.7rem;
    }
    h3{
        font-size: 0.6rem;
    }
    h4{
        font-size: 0.6rem;
    }
    .container-2{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .container-2 h2{
        font-size: 1rem;
        width: 80%;
    }
    .container-2 ul li{
        font-size: 0.8rem;
    }
}