html {
    scroll-behavior: smooth;
}

body{
    padding: 0;
    margin: 0;
    background-color: rgb(6, 20, 47);
    align-items: center;
    height: 100vh;
}

hr{
    border: 1px solid black;
    margin: 0;
}

marquee{
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.top{
    background: linear-gradient(180deg, rgb(6, 30, 70), rgb(6, 50, 100));
    height: 120px;
    border-bottom: solid rgb(100,120,200) 2px;;
}

header{
    background: linear-gradient(180deg, rgb(47, 90, 255), rgb(106, 130, 255));
    display: flex;
    height: 70px;
    width: 100%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.clickable{
    display: flex;
    height: 100%;
    align-items: center;
}

.clickable:first-child{
    justify-content: flex-start;
    margin-left: 1%;
    padding-right: 5px;
    margin-right: 5px;
}

.clickable:last-child{
    flex: 1;
    gap: 2vw;
    justify-content: flex-end;
    margin-right: 1%;
}

.icon{
    max-width: 25px;
    max-height: 25px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    border-radius: 5px;
}

.icon:active{
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.2);
}

.headercontent{
    flex: 8;
    text-align: left;
    align-content: center;
    color: black;
    padding: 5px 0 5px 0;
}

.headercontent h2{
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

/*----------------------------------------------------------------------*/

#sidebar{
    width: 250px;
    height: 100%;
    background: linear-gradient(270deg, rgb(40, 80, 200), rgb(60, 120, 255));
    border-right: solid rgb(100,120,200) 2px;
    position: fixed;
    top: 0;
    left: -255px;
    transition: left 0.3s ease;
    z-index: 10;
    border-radius: 0 10px 10px 0;
}

#sidebar.active{
    left: 0;
}

#cartsidebar{
    width: 300px;
    height: 100%;
    background: linear-gradient(270deg, rgb(40, 80, 200), rgb(60, 120, 255));
    border-right: solid rgb(100,120,200) 2px;
    position: fixed;
    top: 0;
    left: -305px;
    transition: left 0.3s ease;
    z-index: 12;
    border-radius: 0 10px 10px 0;
}

#cartsidebar.active{
    left: 0;
}

.bartop{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 10px;
}

/*----------------------------------------------------------------------*/

.search{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 10px 5% 0px 10px;
    border-radius: 15px;
    gap: 10px;
}

#searchbar{
    flex: 1;
    height: 40px;
    border-radius: 15px;
    border: none;
    padding-left: 10px;
    font-size: 16px;
}

.select{
    height: 40px;
    border-radius: 15px;
    width: 30%;
    min-width: 125px;
    max-width: 300px;
    font-size: 16px;
}

.selecticon{
    max-width: 25px;
    max-height: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.selecticon.active{
    transform: rotate(90deg);
}

#selectbutton{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5% 0 5%;
    height: 40px;
    border: none;
    border-radius: 8px;
    border-bottom-left-radius: 0;
    font-size: 18px;
    background: linear-gradient(135deg, rgb(47, 120, 255), rgb(106, 169, 255));
    color: black;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#selectbutton:hover{
    background: linear-gradient(135deg, rgb(47, 100, 255), rgb(106, 150, 255));
}

#selectoptions{
    display: flex;
    flex-direction: column;
    position: absolute;
    background: linear-gradient(135deg, rgb(47, 100, 255), rgb(106, 150, 255));
    color:black;
    max-height: 0px;
    width: 25%;
    max-width: 280px;
    overflow-y: scroll;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: none;
    z-index: 20;
    transition: max-height 0.3s ease;
}

#selectoptions.active{
    max-height: 200px;
}

.selectoption{
    padding: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, rgb(47, 100, 255), rgb(106, 150, 255));
    border: none;
    text-align: left;
    border-top: 1px solid black;
    transition: background-color 0.3s ease;
}

.selectoption:hover{
    background: linear-gradient(135deg, rgb(47, 80, 255), rgb(106, 100, 255));
}

/*----------------------------------------------------------------------*/

.promo{
    display: flex;
    align-items: center;
    height: 30%;
    min-height: 200px;
    max-height: 300px;
    margin-top: 20px;
    border-radius: 15px;
    background: rgba(19, 8, 36, 0.604);
    border: rgba(18, 14, 57, 0.729) solid 2px;
}

.promotext{
    display: flex;
    flex-direction: column;
    width: 10%;
    height: 100%;
    min-width: 70px;
    max-width: 100px;
    text-align: center;
    justify-content: center;
    border: rgba(66, 66, 249, 0.368) solid 2px;
    border-radius: 15px;
    z-index: 5;
    border-right: none;
    border-left: none;
}

.promotext:first-child{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 15px 0px 30px rgba(0, 0, 0, 0.903);
}

.promotext:last-child{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: -15px 0px 30px rgba(0, 0, 0, 0.903);
}

.promotext p {
    margin: 0 0 0 0;
    font-size: 42px;
    color: rgba(241, 31, 31, 0.904);
    font-weight: 900;
}

.promocontent{
    flex: 1;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.105);
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 0;
    transition: max-width 1s ease-out;
}

.promocontent img{
    margin: 0 10px 0 0;
    height: 100%;
    max-height: 300px;
    min-width: 250px;
    max-width: 500px;
    border: rgb(73, 73, 73) solid 2px;
    border-style: groove;
    border-radius: 5px;
    box-shadow: 0px 0px 30px rgba(98, 97, 97, 0.903);
}

/*----------------------------------------------------------------------*/

#productsContainer{
    margin-top: 20px;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.product{
    background: rgba(19, 8, 36, 0.604);
    border: rgba(83, 83, 91, 0.729) solid 2px;
    border-radius: 15px;
    width: 100%;
    max-width: 250px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.product img{
    max-height: 200px;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product h3, .product p{
    color: white;
    margin: 5px 0;
    text-align: center;
}

.product button{
    margin-top: auto;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(47, 120, 255), rgb(106, 169, 255));
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease-in-out;
}
.product button:active{
    transform: scale(0.9);
}
.product button:hover{
    background: linear-gradient(135deg, rgb(47, 100, 255), rgb(106, 150, 255));
}

#cartContainer{
    margin-right: 10px;
    padding: 10px;
    color: white;
    max-height: 50%;
    overflow-y: scroll;
    overflow-x: hidden;
}

.cartitem{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    background-color: rgba(50, 50, 50, 0.2);
    align-items: center;
    margin-bottom: 10px;
    border: solid rgb(100,120,200) 1px;
    border-radius: 5px;
    padding: 5px;
}

.cartitem img{
    max-width: 30%;
    border-radius: 5px;
    margin-right: 10px;
}

.cartitem button{
    margin-left: auto;
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(255, 47, 47), rgb(255, 106, 106));
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease-in-out;
}

.cartitem button:active{
    transform: scale(0.9);
}

.cartitem button:hover{
    background: linear-gradient(135deg, rgb(200, 47, 47), rgb(200, 106, 106));
}

.cartitemdetails{
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cartitemdetails *{
    margin: 2px 0;
    font-size: 14px;
}

#cartfooter{
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#orderbutton{
    display: box;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, rgb(47, 255, 106), rgb(106, 255, 169));
    color: black;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease-in-out;
}

#contact{
    height: 100px;
    background: linear-gradient(180deg, rgb(6, 30, 70), rgb(6, 50, 100));
    border-top: solid rgb(100,120,200) 2px;;
    margin-top: 20px;
    padding: 10px;
    text-align: center;
}

.sidecontent{
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#passwordinput{
    padding: 8px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
    width: 80%;
    font-size: 16px;
}

#changepasswordbutton{
    padding: 10px 20px;
    border: solid 2px gray;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(50, 50, 50, 0.2));
    color: white;
    font-size: 16px;
    margin-top: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#changepasswordbutton:hover{
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(50, 50, 50, 0.1));
}

#changepasswordbutton:active{
    transform: scale(0.9);
}

#contact *{
    color: white;
}

@media (max-width: 600px) {
    .promo{
        max-height: 190px;
        min-height: 180px;
    }
    
    .headercontent h2{
        font-size: 20px;
    }
    
    #selectbutton{
        font-size: 16px;
    }
    
    .promotext p{
        font-size: 32px;
    }

    #productsContainer{
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product{
        max-width: 150px;
        height: 300px;
    }
}