/*
Numbers are sometimes used to find elements. For example 'one, two, three', 
these numbers may only be used in combination with other classes and never by themeselves.
*/

:root {
    --black: #241811;
    --beige: #F2EACF;
    --brown: #55341E;
    --blue: #89AFD5;
    --green: #4A9659;
    --shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

@font-face {
    font-family: Inter;
    src: url("fonts/Inter/Inter-VariableFont_slnt\,wght.ttf");
}

@font-face {
    font-family: Bitter;
    src: url("fonts/Bitter/Bitter-VariableFont_wght.ttf");
}

html {
    font-size: 18px;
    font-family: Inter, Verdana, sans-serif;
    color: var(--black);
}

body {
    background-color: var(--beige);
}

h1 {
    font-size: 150%;
    font-family: Bitter;
    font-weight: 700;
}

h2 {
    line-height: 2;
    font-size: 150%;
    font-family: Bitter;
    font-weight: 500;
}

.inspiration h2 {
    grid-column: 1/5;
}

h3 {
    font-size: 125%;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

a {
    color: var(--beige);
}

.blue-text {
    color: var(--blue);
}

label {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blue);
}

img {
    max-width: 100%;
    width: 100%;
}

header {
    text-align: center;
    padding: 1rem 0;
}

.button {
    border: solid 1px var(--black);
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin: 0.5rem 0;
    color: var(--black);
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 0.8rem;
    font-family: Inter;
}

.button:active {
    box-shadow: none;
}

input[type="text"],
input[type="email"],
textarea {
    cursor: text;
    padding: 0.5rem;
    background-color: #fff;
    border: 1px solid #d6d6e7;
    border-radius: 3px;
    color: var(--black);
    box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 30%);
    overflow: hidden;
    font-family: Inter;
    font-size: 0.8rem;
}

#product-gallery {
    padding: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 768px;
    margin: auto;
}

article.product {
    text-align: left;
    border-radius: 10px;
    padding-bottom: 0.5rem;
}

article .button {
    margin: 0.5rem auto;
}

.blue {
    background-color: var(--blue);
}

.green {
    background-color: var(--green);
}

.standard {
    display: none;
}

div.spacer {
    height: 2rem;
}

div.large-spacer {
    height: 8rem;
}

/*  --  Product page    --  */
.productpage main {
    width: 90%;
    margin: auto;
    padding-top: 1rem;
}

.productpage .three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.productpage .clickable-img {
    padding: 2px;
}

/*  --  ^ Product page ^    --  */
/*  --  Nav --  */
nav {
    background-color: var(--brown);
    position: relative;
    color: var(--beige);
    padding: 0 1rem;
}

nav.mobile ul {
    display: none;
    text-align: center;
    line-height: 1.5;
}

div.nav-icons {
    position: absolute;
    right: 1rem;
    font-size: 150%;
    line-height: 2;
    display: flex;
    flex-direction: row;
}

div.cart-icon {
    display: flex;
    flex-direction: row;
    margin-right: 0.5rem;
}

div.cart-icon p {
    font-size: 50%;
    font-weight: 600;
    margin-left: 3px;
}

/*  --  ^ Nav ^ --  */

/*  --  Form    --  */
form {
    padding: 1rem;
    max-width: 425px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
    border-radius: 10px;
}

form input,
form textarea {
    width: 92%;
}

form .button {
    width: 100%;
}

/*  --  ^ Form ^    --  */

/* -- Thank you page -- */
.thanks {
    text-align: center;
}

.thanks .spacer {
    height: 8rem;
}

/*  --  Shopping cart   --  */
section.shopping-cart {
    margin: auto;
}

section.shopping-cart h2 {
    grid-column: 1/3;
}

section.shopping-cart .checkout-div {
    padding: 1rem;
}

section.shopping-cart .delete-link {
    color: red;
    font-size: 14px;
}

ul.shopping-cart {
    padding: 1rem;
}

ul.shopping-cart li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

ul.shopping-cart img {
    max-width: 150px;
    margin: auto;
}

.inspiration section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.5rem;
}

.stretch-two-rows {
    grid-row-end: span 2;
}

.stretch-two-columns {
    grid-column-end: span 2;
}

/*  --  Footer  --  */
footer {
    background-color: var(--brown);
    text-align: center;
    padding: 1rem;
}

ul.footer li {
    padding: 0.5rem;
}

.credit {
    background-color: var(--beige);
    margin: auto;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    width: fit-content;
}

/*  --  ^ Footer ^  --  */

/*  --  Styling for tablets and larger devices  --  */
@media (min-width: 768px) {

    /*  --  Hide Mobile and show Standard    --  */
    .mobile {
        display: none;
    }

    .standard {
        display: block;
    }

    /*  --  ^ Hide Mobile and show Standard ^    --  */

    h2 {
        text-align: center;
    }

    /*  --  Nav --  */

    nav.standard li {
        display: inline;
    }

    nav.standard li a {
        text-decoration: none;
        padding: 1rem 0.5rem;
        line-height: 3;
    }

    nav.standard li a:hover,
    nav.standard li a:focus {
        background-color: var(--beige);
        color: var(--brown);
    }

    /*  --  ^ Nav ^  --  */

    /*  --  Product gallery --   */
    #product-gallery {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /*  --  Productpage --  */
    .productpage main {
        width: 691px;
        margin: auto;
    }

    .productpage section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .product-imgs {
        grid-row: 1/2;
    }

    .productpage .stretch {
        grid-column: 1/3;
    }

    /*  --  ^ Productpage ^ --  */

    /*  --  Shopping cart   --  */
    section.shopping-cart {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    section.shopping-cart .checkout-div {
        border-radius: 10px;
        box-shadow: var(--shadow);
    }

    .inspiration section {
        grid-template-columns: 1fr 1fr 1fr;
    }

    aside *,
    aside .button {
        display: none;
    }
}

@media (min-width: 1024px) {

    .three-columns {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        max-width: 1024px;
        margin: auto;
    }

    /*  -- Product gallery --  */
    #product-gallery {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    /* Shopping cart */
    section.shopping-cart {
        width: 80%;
        max-width: 1024px;
    }

    .inspiration main {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 0.5rem;
        max-width: 1024px;
        margin: auto;
    }

    .inspiration section {
        grid-template-columns: 1fr 1fr 1fr;
        grid-column: 1/2;
    }

    aside {
        border-radius: 10px;
        box-shadow: var(--shadow);
        padding: 1rem;
    }

    aside *,
    aside .button {
        display: block;
    }
}

div.coming-soon {
    text-align: center;
    width: 60%;
    margin: 3rem auto;
    padding: 3rem 1rem;
    background: rgba(57, 57, 57, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(57, 57, 57, 0.25);
    border-radius: 10px;
    text-transform: uppercase;
}

.background-img {
    min-height: 500px;
    background-image: url("../images/janne-on-the-floor.jpg");
    background-position: center;
    justify-content: center;
}