/* -------------------- */
/*        Overall       */
/* -------------------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    font-size: 62.5%; /* Makes 1rem = 10px */
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    box-sizing: border-box;
    font-size: 1.8rem;
}

/* -------------------- */
/*         Wood         */
/* -------------------- */

@font-face {
  font-family: Rubik Dirt;
  src: url("fonts/RubikDirt-Regular.ttf");
  font-weight: normal;
  font-style: normal;
}

#body-wood {
    background-color: #000;
}

header {
    background-image: url("img/fire3.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    height: 100vh;
    max-width: 100%;
    color: rgb(202, 119, 11);
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
}

#header-container {
    margin-top: 8%;
}

header h1 {
    font-size: 6rem;
}

header p {
    font-size: 3rem;
    margin-left: 5%;
}

.company-font {
    font-family: Rubik Dirt;
    font-weight: normal;
}

main {
    background-color: #E3DBDB;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main section:not(#stock) {
    margin: 2%;
    width: 720px;
}

main img {
    max-width: 100%;
}

section > h1 {
    font-size: 3rem;
    margin-bottom: 5px;
}

#offer {
    text-align: center;
}

#stock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.card {
    width: 300px;
    background-color: #000;
    color: rgb(211, 132, 30);
    border-radius: 5%;
    padding: 18px;
    margin: 5px 5px;
}

.card h1 {
    text-align: center;
}

.card p {
    margin-bottom: 2px;
}

.stock-price {
    margin-top: 15px;
}

.notice {
    font-size: 1.4rem;
}

a {
    text-decoration: none;
    font-weight: bolder;
}

#information a {
    color: currentColor;
}

#main-link {
    color: currentColor;
}

.button {
    background-color: #000;
    color: rgb(211, 132, 30);
    font-size: 2.2rem;
    font-weight: bolder;
    border: 1px solid #000;
    border-radius: 30px;
    padding: 20px 40px;
    margin-bottom: 15px;
}

.button:hover {
    cursor: pointer;
    background-color: #303030;
    border-color: #303030;
}

#order:hover {
    font-size: 2.3rem;
    padding: 22px 42px;
    margin-bottom: 10px;
}

footer {
    color: rgb(202, 119, 11);
    margin-left: 5%;
    margin-right: 5%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 2%;
}

footer > * {
    display: block;
    width: 33%;
    text-align: center;
}

footer a {
    color: rgb(202, 119, 11);
}

.form-section {
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

form {
    background-color: #E3DBDB;
    width: 720px;
    padding: 20px;
    padding-bottom: 10px;
    border-radius: 5px;
}

form * {
    margin: 5px auto;
}

form h1 {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
}

input:not([type="submit"]):not([type="checkbox"]) {
    font-size: 1.6rem;
    width: 100%;
    border: 0;
    background-color: transparent;
    border-bottom: 2px solid black;
    &:focus {
        outline: 0;
    }
}

label {
    font-size: 2rem;
    display: block;
    width: 100%;
    margin-top: 5%;
}

.order-price {
    font-size: 1.4rem;
    margin: 0px;
    padding: 0px;
}

#delivery-text {
    font-size: 1.6rem;
}

.inventory {
    float: right;
}

#sum {
    margin-top: 3%;
    margin-bottom: 3%;
}

#button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0px;
}

input[type="submit"], .cancel {
        margin-bottom: 0px;
        margin-left: auto;
        margin-right: auto;
    }
    
.success, .failed, .waiting {
        text-align: center;
        border-radius: 5px;
        padding: 5px;
        margin-top: 4%;
        margin-bottom: 0px;
    }

.success {
    border: 1px solid green;
    border-top: 5px solid green;
}

.failed {
    border: 1px solid red;
    border-top: 5px solid red;
}

.waiting {
    border: 1px solid black;
    border-top: 5px solid black;
}

textarea {
    max-width: 100%;
    &:focus {
        outline: 0;
    }
}

@media screen and (max-width: 810px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    header h1 {
        width: 100%;
        text-align: center;
    }

    header p {
        font-size: 2.8rem;
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    main, main section, #offer {
        width: 620px;
    }

    main {
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        text-align: center;
        text-wrap: wrap;
        display: block;
    }

    #introduction p, #information h1, #information p {
        width: 610px;
        text-wrap: wrap;
        word-break: normal;
        margin-bottom: 5px;
        margin-right: 5px;
        padding-right: 5px;
    }

    footer > div > h1 {
        font-size: 2rem;
    }    
}

@media screen and (max-width: 620px) {
    main, main section, #offer {
        width: 500px;
    }

    #introduction p, #information h1, #information p {
        width: 480px;
    }

    #stock {
        flex-direction: column;
        align-items: center;
    }

    .card {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    footer {
        flex-wrap: wrap;
    }

    footer > * {
        width: 100%;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .form-secion {
        width: 490px;
        height: 100vh;
    }

    form {
        width: 480px;
        padding: 5px;
    }
}

@media screen and (max-width: 428px) {
    header {
        padding-top: 5%;
        width: 100%;
    }
    
    header h1 {
        width: 100%;
        font-size: 2.9rem;
        text-align: center;
    }

    header p {
        width: 100%;
        font-size: 1.6rem;
        text-align: center;
        margin-left: 0;
        padding-top: 5%;
    }

    p {
        font-size: 1.6rem;
    }

    main, main section, #offer {
        width: 350px;
    }

    #introduction p, #information h1, #information p {
        width: 340px;
    }

    .form-secion {
        width: 350px;
    }

    form {
        width: 340px;
    }
}