:root {
    --main-background-color: rgb(27, 40, 56);
    --nav-background-color: rgb(14, 22, 34);
    --lightgray-text: rgb(220, 220, 220);
    --gray-text: rgb(200, 200, 200);
    --darkgray-text: rgb(180, 180, 180);
    --light-blue: rgb(34, 134, 255);
    --light-blue-hover: rgb(6, 190, 255);
    --lightgray: rgb(60, 70, 80);
    --lightgray-hover: rgb(70, 80, 90);
    --object-main-color-dark: rgb(10, 20, 30);
    --object-main-color-light: rgb(22, 34, 48);
    --green-button: rgb(117, 176, 34);
    --green-button-hover: rgb(120, 200, 25);
    --form-input-background: rgb(13, 19, 27);
    --form-input-background-selected: rgb(92, 173, 220);
    --gray: rgb(35, 38, 46);
}



body {
    margin: 0;
    min-height: 100vh;
    font-family: "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    color: white;
    display: grid;
    grid-template-columns: 490px auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header nav"
        "main main"
        "footer footer";
    background-color: var(--main-background-color);
}

body img {
    user-select: none;
}


header {
    width: 470px;
    font-size: 24px;
    height: 100px;
    background-color: var(--nav-background-color);
    display: flex;
    padding-left: 30px;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;

    h1 {
        a {
            text-decoration: none;
            color: white;

        }
    }
}

#title {
    margin-top: 0;
}

header {
    grid-area: header;
}

nav {
    grid-area: nav;
}

main {
    grid-area: main;
}

footer {
    grid-area: footer
}

nav {
    background-color: rgb(14, 22, 34);
    display: flex;
    gap: 15px;
    height: 100px;
    align-items: center;
    justify-content: flex-start;
    a {
        width: fit-content;
        font-size: 24px;
        color: rgb(220, 220, 220);
        text-decoration: none;
        padding: 5px;
        white-space: nowrap;
    }

    a:hover {
        color: white;
    }

    #current_tab {
        color: blue;
        text-decoration: underline;
    }

    #nav_cart {
        font-size: 30px;
        background-color: rgb(34, 134, 255);
        display: none;
        grid-template-columns: 120px 30px;
        justify-content: center;
        align-items: center;
    }

    #nav_cart:hover {
        background-color: rgb(6, 190, 255);
    }

    #nav_cart_quantity {
        font-size: 20px;
        text-align: center;
    }
}

footer {
    padding: 20px;
    background-color: rgb(23, 26, 33);
    color: rgb(150, 158, 171);
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;
    margin-top: 3000px;
}

.unfolded {
    overflow: hidden;
    height: auto;
    transition: height 0.3s ease;
}

.folded {
    height: 0;
}

.unflipped {
    display: inline-block;
    transition: transform 0.3s ease;
}

.flip {
    transform: rotate(-90deg);
}

#added_to_cart_container {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
}

#added_to_cart_background_filter {
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
}

#added_to_cart_content_container {
    z-index: 1;
    background-color: rgb(42, 50, 60);
    height: fit-content;
    width: 600px;
    justify-self: center;
    align-self: center;
    margin: auto;
    display: grid;
    flex-direction: row;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--light-blue);

}

#added_to_cart_product_con {
    width: 500px;
    height: 100px;
    padding: 20px;
    background-color: var(--object-main-color-light);
    display: grid;
    justify-self: center;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "img name name"
        "img quantity_con price"
        "img quantity_con options";

    img {
        grid-area: img;
    }

    .product_name {
        grid-area: name;
    }

    .price {
        grid-area: price;
    }

    .quantity_con {
        grid-area: quantity_con;
    }

    .option_remove {
        grid-area: options;
    }

    * {
        margin: 0;
    }

    img {
        width: 150px;
        height: 100px;
        padding-right: 10px;
    }

    .price {
        justify-self: end;
        font-size: 15px;
        color: var(--darkgray-text);
    }

    .option_remove {
        font-size: 10px;
        color: rgb(140, 140, 140);
        align-self: flex-end;
        cursor: pointer;
        user-select: none;
    }

    .option_remove:hover {
        color: white;
    }

    .quantity_con {
        user-select: none;
        font-size: 20px;
        display: flex;
        align-self: end;
        flex-direction: row;
        outline: 1px solid gray;
        width: fit-content;
        border-radius: 20px;
        overflow: hidden;

        .add,
        .remove {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgb(42, 50, 61);
            height: 30px;
            width: 30px;
            cursor: pointer;
        }

        .add:hover,
        .remove:hover {
            background-color: rgb(70, 77, 88);
        }

        .quantity {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 30px;
            width: 50px;
        }

    }

}

#added_to_cart_options_con {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 20px;
    margin-bottom: 20px;

    #continue_shopping {
        height: 30px;
        width: 240px;
        background-color: var(--lightgray);
        color: var(--lightgray-text);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        user-select: none;
        cursor: pointer;
        margin-left: auto;
        transition: 0.2s;
    }

    #continue_shopping:hover {
        background-color: var(--lightgray-hover);
        transition: 0.2s;
    }

    #show_cart {
        height: 30px;
        width: 240px;
        background-color: var(--light-blue);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        user-select: none;
        cursor: pointer;
        margin-right: auto;
        text-decoration: none;
        transition: 0.2s;
    }

    #show_cart:hover {
        background-color: var(--light-blue-hover);
        transition: 0.2s;
    }
}

#added_to_cart_top_con {
    display: flex;
    flex-direction: row;
    margin-left: 40px;
}

#added_to_cart_close {
    font-size: 15px;
    margin-left: auto;
    margin-bottom: auto;
    padding: 5px;
    user-select: none;
    cursor: pointer;
    line-height: 15px;
    color: var(--gray-text);
}
#added_to_cart_close:hover{
    color: white;
}
.redacted{
    background-color: black;
    color: black;
    user-select: none;
}
.rotate90{
    transform: rotate(90deg);
}





#arrow_menu{
    display: none;
    font-size: 30px;
    user-select: none;
    margin-left: 10px;
}

.blue_underline{
    text-decoration: underline;
    color: blue;
}
.flex{
    display: flex !important;
}
@media (max-width: 1200px){
    body{
        grid-template-columns: 400px auto;
    }
    header{
        font-size: 20px;
        width: 400px;
    }
}
@media (min-width: 1000px){
    #nav_menu{
        display: flex;
    }
}

@media (max-width: 1000px){
    #nav_menu{
        grid-template-columns: auto;
        display: none;
        z-index: 1;
        flex-direction: column; 
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: var(--gray);
    }
    #nav_menu a{
        width: 100%;
        padding-left: 10px;
        border-top: 1px solid gray;
    }
    #nav_menu a:first-child{
        border-top: none;
    }
    #arrow_menu{
        display: flex;
        cursor: pointer;
    }

    #nav_cart{
        margin-left: auto;
        margin-right: 20px;
    }
}
@media (max-width: 800px){
    #nav_menu{
        top: 200px;
    }
    #nav_cart{
        margin-left: auto;
    }
    header{
        width: auto;
    }
    nav{
        background-color: var(--gray);
        width: 100%;
    }
    body{
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
    }
}