/************************************************************
*************************************************************
Theme Name: savethedates Theme
Author: fourplex
Author URI:   https://fourplex.de
Version: 1.0
*************************************************************
************************************************************/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    background: var(--backgroundColor);
    font-size: 20px;
    color: var(--fontColor);
}

.hidden {
    display: none !important;
}

.not-desktop {
    display: none;
}

.container {
    padding: 2rem;
}

.boxed {
    width: 100%;
    max-width: 75vw;
    margin: 0 auto;
}

.boxed-small {
    max-width: 60vw;
    margin: 0 auto;
}

.element {
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(45px, 8vw, 100px);
}
h2 {
    font-size: clamp(30px, 6vw, 50px);
}
h3 {
    font-size: clamp(25px, 5vw, 40px);
    line-height: 1.25em;
}
h4 {
    font-size: clamp(18px, 1.25vw, 35px);
    line-height: 2.5rem;
}

p {
    line-height: 2em;
}

i {
    font-family: "Font Awesome 6 Pro" !important;
}

.ta-center {
    text-align: center;
}

.bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.small-text {
    font-size: 15px;
}

.letter-wide {
    letter-spacing: 3px;
}

button {
    background: var(--fontColor);
    color: var(--backgroundColor);
    text-transform: uppercase;
    font-size: 1rem;
    padding: .75rem 4rem;
    border: none;
    outline: none;
    font-weight: 700;
    cursor: pointer;
}

/* SINGLE PAGE FILE */
#include-container {
    display: flex;
}

/* HEADER */
header {
    max-height: 20dvh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
}

header div {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    width: calc(100% - 100px + 2rem);
    margin: 0 auto;
}

header img {
    min-width: 125px;
    max-width: 15vw;
    object-fit: contain;
}

header a {
    height: fit-content;
    width: fit-content;
    cursor: pointer;
}

/* HERO */
#hero {
    height: 100dvh;
    width: 100%;
    /* position: relative; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* #overlayed-image {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -45%;
} */

#hero article {
    color: var(--fontColor);
    translate: 0% 20%;
}

#hero .location {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

/* DETAILS */
#details {
    margin: 5vh 0;
}

#details div{
    display: flex;
    gap: 5rem;
}

.col {
    flex: 1 1 0;
}

.info-box {
    /* padding: 3.5vw; */
    /* background: var(--accentColor); */
    border-radius: 10px;
}

/* GRID GALLERY */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 250px);
    gap: 1rem;
    justify-content: center;
}

.grid-item {
    height: 100%;
    width: 100%;
    text-align: center;
}

.grid-item p {
    width: fit-content;
    margin: auto;
}

.grid-item img {
    width: 100%;
}


/* REGISTER FORM */
#form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

form {
    padding: 4vw;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    border-radius: 10px;
    background: var(--accentColor);
    position: relative;
}

form h2 {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% -50%;
}

.input-box {
    height: 3rem;
    width: 45%;
}
.input-box input, .input-box select {
    height: 100%;
    width: 100%;
    padding: 0 1rem;
    border: none;
    outline: none;
    background: var(--backgroundColor);
    font-size: 1rem;
    color: var(--fontColor);
}
.input-box input::placeholder {
    color: var(--fontColor);
}

form button {
    height: 3rem;
    width: 100%;
    border: none;
    outline: none;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all .35s ease;
    background: var(--backgroundColor);
    color: var(--fontColor);
}

form button.waiting {
    background: #eedca3;
    color: var(--fontColor);
}

#disclaimer {
    font-size: 12.5px;
    line-height: 1rem;
    color: var(--backgroundColor);
}

/* BANNER IMAGE BEFORE THE FOOTER */
#banner {
    min-height: 90dvh;
    position: relative;
}

#banner a {
    color: var(--fontColor);
    text-decoration: none;
}

#banner img{
    width: 100%;
    object-fit: contain;
}

/* GMAPS */
#gmaps {
    padding: 5vw 0 0;
}
#gmaps iframe {
    height: 50dvh;
    width: 100%;
}

/* GALLERY */
/* #gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: .5rem;
    grid-auto-rows: minmax(250px, auto);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
} */


/* THANKYOU PAGE */
#thankyou {
    background: var(--backgroundColor);
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#thankyou div {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#thankyou * {
    color: var(--fontColor)
}

#thankyou button {
    background: var(--accentColor);
    color: var(--fontColor);
}


/* EDIT PAGE */
.edit-container {
    position: relative;
}

/* .edit-container h2 {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% -50%;
    z-index: 25;
} */

#update-button {
    background: #f5d154;
}
#update-button:hover {
    background: #ffe073;
}
#delete-button {
    background: #d3123a;
}
#delete-button:hover {
    background: #ed264f;
}

@media only screen and (min-width: 2000px) {
    /* GRID GALLERY */
    .grid {
        grid-template-columns: repeat(4, minmax(250px, 1fr));
    }

    #overlayed-image {
        transform: scale(1.35);
    }
}

@media only screen and (max-width: 1200px) {
    .not-mobile {
        display: none;
    }
    .not-desktop {
        display: block;
    }

    html {
        font-size: 17.5px;
    }

    .boxed {
        max-width: 90vw;
    }
    
    .boxed-small {
        max-width: 90vw;
    }

    /* HEADER */
    header div {
        padding: 1rem;
    }
    
    header img {
        min-width: 50px;
        max-width: 15vw;      
    }

    header a button {
        padding: 1rem;
    }

    /* HERO */
    #hero {
        height: 100dvh;
        background-size: cover !important;
    }

    #overlayed-image {
        transform: scale(.6);
        position: absolute;
        top: 50%;
        left: 50%;
        translate: -50% -30%;
    }

    /* DETAILS */
    #details div {
        flex-direction: column;
        gap: 2rem;
    }

    .info-box {
        padding: 0;
    }

    /* GRID GALLERY */
    .grid {
        grid-template-columns: repeat(2, 45vw);
        gap: 1rem;
    }
    

    /* FORM */
    #form-container {
        margin: 5vh 0;
    }

    .mobile-container {
        padding: 5vw;
    }

    #form-container div.container.boxed-small {
        max-width: 100vw !important;
        padding: 0 !important;
    }

    #register {
        padding: 3rem 5vw !important;
    }

    .input-box {
        width: 100% !important;
    }
}

@media only screen and (max-width: 768px) {
    .element {
        margin-bottom: 1.25rem;
    }

    .letter-wide {
        letter-spacing: 0px;
    }

    #banner {
        min-height: 75dvh;
    }
}