@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300&family=Josefin+Slab:wght@300&family=Lora&display=swap');

* {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    font-family: "Josefin Slab", sans-serif;
    font-weight: bold;
    color: #337ca0ff;
}

/* Colour Variation */

:root {
    --liver-dogs: #aa6c39ff;
    --claret: #840032ff;
    --platinum: #e6e6e9ff;
    --white: #fafafa;
    --black-chocolate: #0c120cff;
    --celadon-blue: #337ca0ff;
}

/* Logo and Headings Style */

h1,
h2 {
    font-family: "Josefin Slab", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #840032ff;
    font-size: 160%;
}

#sitelogo {
    font-size: 300%;
    font-family: Lora, sans-serif;
    margin-left: 30px;

}

/* Navigation CSS */

#nav-menu {
    background: unset;
    align-items: center;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    font-size: 120%;
    letter-spacing: 5px;
    list-style: none;
    margin-left: 10px;
    margin-right: 10px;
}

#nav-menu a {
    text-decoration: none;
    color: inherit;
    font-weight: 800;
}

#nav-menu,
#sitelogo {
    line-height: 75px;
}

#nav-menu a:hover {
    border-bottom: 2px dashed #840032ff;
}

.active {
    border-bottom: 2px solid #840032ff;
}

/* Exception rule for order button styling on the navbar. */
a:not(.nav) {
    border: 2px solid var(--liver-dogs);
    padding: 10%;
    box-shadow: 2px 2px 7px 0 #0000004d;
}

/* Hero Image & Text */

#hero-image-text,
#hero-image-text h2 {
    /* This tone of white is a better match for the colour scheme than basic #fff */
    color: #e6e6e9ff;
}

#hero-image-text {
    background-color: #aa6c39e6;
    font-size: 100%;
    font-family: "Josefin Slab", "Times New Roman", sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    border-color: #e6e6e9ff;
    border-style: double;
    top: 75%;
    left: 75%;
    padding: 20px;
    transform: translate(-50%, -50%);
    position: absolute;
}

#hero-image-text, #craftworks-big {
    font-size: 100%;
}

#hero-section {
    height: 60vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Hero image zoom-in animation */

#hero-image {
    height: 60vh;
    width: 100%;
    background-image: url(../images/hero_image_wood.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    animation-name: heroimage-zoom;
    animation-duration: 10s;
    animation-fill-mode: forwards;
}

/* Hero image zoom-in animation for the order page */

#hero-image-order {
    height: 60vh;
    width: 100%;
    background-image: url(../images/hero_image_carve.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    animation-name: heroimage-zoom;
    animation-duration: 10s;
    animation-fill-mode: forwards;
}

/* Hero Image CSS Animation */

@keyframes heroimage-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1)
    }
}

.welcome-header {
    text-align: center;
    margin: 10vh;
    font-size: 300%;
}

.company-ethos {
    margin: auto;
    padding: 30px 30px;
    height: 500px;
}

.company-ethos p {
    display: inline;
}

hr {
    border-top: 3px dashed #840032ff;
    width: 100%;
    margin-bottom: 10px;
}

#left-ethos {
    padding-top: 30px;
    width: 33%;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

#right-ethos {
    padding-top: 30px;
    width: 33%;
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
}

#center-ethos {
    padding-top: 30px;
    width: 33%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-ethos-heading,
.right-ethos-heading {
    width: 70%;
    float: right;
    line-height: 170%;
    clear: both;
    margin-bottom: 50px;
    color: #0c120cff;
}

.right-ethos-heading {
    float: left;
}

.center-ethos-heading {
    width: 70%;
    height: 300px;
    padding: 30px;
    line-height: 170%;
    margin: -30px auto;
    color: #0c120cff;
}

#info-section {
    padding: 30px;
}

#info-section hr {
    border-top: 3px dashed #e6e6e9ff;
    width: 100%;
    margin-bottom: 10px;
}

#info-section-header {
    font-size: 300%;
    text-align: center;
    margin: 20px;
    padding-bottom: 50px;
}

.info-card {
    display: flex;
    line-height: 30px;
    color: #e6e6e9ff;
    background-color: #840032;
    border-style: double;
    border: 6px double #e6e6e9ff;
    height: auto;
    width: 55%;
    margin: auto;
    box-shadow: 2px 2px 7px 0 #0000004d;
}

.info-card p {
    overflow: hidden;
    font-weight: bold;
    line-height: 2em;
    padding: 0px 10px 25px 10px;
}

.info-card a {
    text-decoration: none;
    color: #e6e6e9ff;
}

.info-card-heading {
    color: #e6e6e9ff;
    font-size: 200%;
    padding-bottom: 20px;
    overflow: hidden;
}

#info-text {
    flex: 1 1 0;
    text-align: center;
    padding-top: 20px;
}

#info-text a:hover {
    border-bottom: 2px dashed #e6e6e9ff;
}

#info-text p:last-of-type {
    padding-bottom: 30px;
}

footer {
    height: 150px;
}

footer p {
    text-align: center;
    color: #0c120cff;
    padding-bottom: 20px;
    font-style: italic;
}

.social-media,
a {
    text-align: center;
    list-style: none;
    text-decoration: none;
}

.social-media>li {
    display: inline;
}

.social-media i {
    font-size: 160%;
    margin: 1%;
    padding: 5%;
    color: #0c120cff;
}

/* Gallery Flex Grid */

.gallery-text {
    border: 1px dashed var(--claret);
    padding: 30px;
    text-align: center;
    font-style: italic;
    color: var(--black-chocolate);
    display: flex;
    margin: auto;
    height: 50%;
    width: 50%;
    transform: translate(0%, 0%);
}

.gallery-grid {
    display: grid;
    grid-gap: 2.5em;
    grid-template-columns: 1fr 1fr;
    padding: 2.5em;
    box-shadow: 2px 2px 7px 0 #00000080;
}

.gallery-grid>div {
    display: flex;
}

.gallery-grid>div>img {
    width: 100%;
    align-items: center;
    display: flex;
}

/* Form Styling */

.order-welcome {
    border: 1px dashed var(--claret);
    padding: 3%;
    text-align: center;
    line-height: 200%;
    font-style: italic;
    color: var(--black-chocolate);
    display: flex;
    margin: auto auto 5%;
    height: 50%;
    width: 45%;
    transform: translate(0%, 0%);
}

.order-welcome>ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.form-divider {
    border: 4px double var(--claret);
}

.form-container {
    background: #0c120c99 url(../images/form-background.webp);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-size: cover;
    color: var(--platinum);
    display: flex;
    text-align: center;
    justify-content: center;
}

.order-form {
    border: 6px double var(--platinum);
    background-color: var(--claret);
    color: var(--platinum);
    max-width: 50%;
    width: 50%;
    margin: 5vh;
}

.order-form>fieldset {
    margin: 0.5em;
    border: 1px dashed var(--platinum);
    padding: 6% 0% 6% 0%;
    font-size: 100%;
    line-height: 200%;
}

.order-form>fieldset>h4 {
    font-style: italic;
}

#delivery_method {
    width: 50%;
}

#specifications {
    width: 90%;
}

form>fieldset>legend {
    font-size: 200%;
}

textarea {
    width: 63%;
}

/* Submit button press-in effect. */
.submit-button {
    background-color: var(--claret);
    color: var(--platinum);
    border: 2px double var(--platinum);
    display: block;
    text-align: center;
    margin: 13% auto;
    font-size: 100%;
    padding: 10px;
    transition-duration: 100ms;
    transition-timing-function: ease-in-out;
    box-shadow: 0px 8px #999;
}

.submit-button:hover {
    transform: scale(1.1);
    transition-property: transform;
    transition-duration: 100ms;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    background-color: var(--platinum);
    color: var(--black-chocolate);
    box-shadow: 0 10px #999;
}

.submit-button:active {
    box-shadow: 0 5px #999;
    transform: translateY(5px);
}

.text-404 {
    text-align: center;
    padding: 4%;
}

.text-404:hover {
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
    border: 6px double var(--claret)
}

#hero-image-404 {
    height: 60vh;
    width: 100%;
    background-image: url(../images/404_hero_image.webp);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.broken-heart {
    text-align: center;
}


/* Desktop Responsivity*/

/* Laptop */ 

@media screen and (max-width: 1300px) {

    #info-section {
        margin-top: 2rem;
    }

    .company-ethos {
        height: 1000px;
    }

    .welcome-header {
        margin: 10vh;
    }

    #left-ethos,
    #right-ethos {
        width: 100%;
        padding: 0;
    }

    #center-ethos {
        clear: both;
        width: 100%;
        padding: 0;
    }

    .center-ethos-heading {
        width: 70%;
        height: 25vh;
    }

    hr {
        border-width: 0.1vh;
    }

    .welcome-header {
        margin: 10vh 0vh;
        font-size: 250%;
    }

}

/* Mobile Responsivity */

/* Tablet */
@media screen and (min-width: 1024px) {

    .company-ethos {
        height: 700px;
    }

    .order-form {
        max-width: 60%;
        width: 60%;
    }

    #info-section {
        margin-top: 2rem;
    }

    .gallery-grid {
        padding: 5em 5em;
        grid-gap: 1em;
        grid-template-columns: 2fr 2fr 2fr 2fr;

    }

    .gallery-grid img {
        transition-duration: 200ms;
        transition-timing-function: ease-in-out;
        border: 6px double var(--claret);
    }

    .gallery-grid img:hover {
        transform: scale(1.2);
        transition-property: transform;
        transition-duration: 200ms;
        transition-timing-function: ease-in-out;
        transition-delay: 0s;
    }
}

@media screen and (max-width: 840px) {

    .company-ethos {
        height: 700px;
    }
}

@media screen and (max-width: 768px) {

    .company-ethos {
        height: 1300px;
    }

    #info-section {
        margin-top: 2rem;
    }

    .info-card {
        flex-direction: column;
        width: 75%;
    }

    .order-form {
        max-width: 100%;
        width: 100%;
    }

    #nav-menu {
        flex-direction: column;
        display: flex;
        margin: auto 5% 5%;
        font-weight: bold;
        float: none;
        align-content: stretch;
        justify-content: space-evenly;
        align-items: center;
    }

    #sitelogo {
        margin-left: 2%;
        font-size: 200%;
    }

    footer p {
        padding: 5% 5%;
    }

    #hero-image-text {
        top: 75%;
        left: 50%;
    }
}

/* Phone */
@media screen and (max-width: 450px) {
    .company-ethos {
        height: 1000px;
        height: 1500px;
        font-size: 90%;
    }
}

 /* Small Phone */
@media screen and (max-width: 320px) {

    #sitelogo {
        font-size: 150%;
    }

    .company-ethos {
        height: 2000px;
        font-size: 90%;
    }

    #info-section-header {
        font-size: 150%;
    }

    .welcome-header {
        margin: 10vh 0vh;
        font-size: 150%;
    }

    h1,
    h2 {
        font-size: 130%;
    }

    #hero-image-text {
        font-size: 50%;
    }
}

@media screen and (min-width: 50px) {

    .social-media,
    a {
        margin-top: 5rem;
    }
}