:root {
    --background-color-1: rgb(244, 240, 239);
    --container-width: 980px;
}

@keyframes navHide {
    from {
        display: flex;
        opacity: 1;
        max-height: 10rem;
    }
    to {
        display: none;
        opacity: 0;
        max-height: 0;
    }

}

@keyframes navShow {
    from {
        display: none;
        opacity: 0;
        max-height: 0;
    }
    to {
        display: flex;
        opacity: 1;
        max-height: 10rem;
    }
}

body {
    background: var(--background-color-1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
}

.wrapper {
    display: flex;
    height: 100%;
    min-height: 100vh;
    flex-direction: column;
    padding: 0 1.5rem;
    align-items: center;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size:1.2rem;
}

.navbar {
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
    gap: 1rem;
    border-bottom: 1px solid #000;


    @media screen and (width <= 768px) {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

}

.hamburger-menu {
    font-size: 3rem;
    border: none;
    height: 100%;
    width: 3rem;
    cursor: pointer;
    padding: 0;
    @media screen and (width > 768px) {
        display: none;
    }
}

.nav-top-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
}

.nav-item-row {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-evenly;
    background: var(--background-color-1);
    padding-bottom: 1rem;

    @media screen and (width > 768px) {
        display: flex;
        opacity: 1;
        animation-name: navShow;
        animation-duration: 600ms;
    }

    @media screen and (width <= 768px) {
        display: none;
        opacity: 0;
        flex-direction: column;
        background: var(--background-color-1);

        animation-name: navHide;
        animation-duration: 600ms;
        gap: 0.5rem;
        padding-left: 1rem;
    }
}

.container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--container-width);
}

a {
    text-decoration: none;
}

.show {
    display: flex;
    opacity: 1;
    animation-name: navShow;
    animation-duration: 600ms;
}

.hide {
    display: none;
    opacity: 0;
    animation-name: navHide;
    animation-duration: 600ms;
}

.primary-btn {
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    max-width: 10rem;
}

.hero {
    display: flex;
    flex-direction: column;
    background-image: url("../img/payphone-hero-img-lg.jpg");
    min-height: 400px;
    align-items: center;
    justify-content: center;
    background-position: right;
    background-blend-mode: overlay;
    background-color: #343434;
    color: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5) ;

    @media screen and (width <= 1000px) {
        background-image: url("../img/payphone-hero-img-sm.jpg");
        background-position: center;
    }

    h2 {
        font-size: 1.4rem;
    }
}

.hero-body {
    padding: 1rem;
    max-width: var(--container-width);
    font-size: 1.2rem;
    line-height: 1.8rem;
}

.form-wrapper {
    display: flex;
    gap: 1rem;
    max-width: var(--container-width);
    justify-content: left;
    flex-wrap: wrap;
    padding-bottom: 2rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

    &.submissions {
        display: flex;
        justify-content: center;
    }
    &.desc {
        width: 100%;

        .form-items {
            width: 100%;
        }
    }
}

.form-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: calc(375px - 3rem);
    input[type=text] {
        padding: 0.5rem;
    }
    select {
        padding: 0.5rem;
        width: 10rem;
    }
    textarea {
        max-width: var(--container-width);
        padding: 1rem;
    }
}

.image-btn {
    width: calc(375px - 3rem);
    height: calc(375px - 3rem);
    cursor: pointer;
    border: 1px black dashed;
    &.submission-hidden {
        display: none;
    }
}

.form-desc {
    flex-grow: 2;
}

hr {
    width: 100%;
}

.preview {
    width: calc(375px - 3rem);
    height: calc(375px - 3rem);
    cursor: pointer;
    border: 1px black dashed;
    overflow: hidden;
    &.preview-hidden {
        display: none;
    }
}


