:root {
    --text: #4A5387;
    --background: #F8F2EA;
    --primary: #646B9D;
    --secondary: #EBD8C7;
    --accent: #AD9ED0;

    --step-size: calc(100% / 4);
}

@font-face {
    font-family: Playwrite;
    src: url(../fonts/Playwrite.ttf);
}

@font-face {
    font-family: EBGaramond;
    src: url(../fonts/EBGaramond.ttf);
}

@font-face {
    font-family: Nunito;
    src: url(../fonts/Nunito.ttf);
    font-style: normal;
}

@font-face {
    font-family: Nunito;
    src: url(../fonts/Nunito-Italic.ttf);
    font-style: italic;
}

@font-face {
    font-family: Rochester;
    src: url(../fonts/Rochester.ttf);
    font-style: normal;
    font-weight: normal;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;

    position: relative;

    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background-color: var(--background);
}

#snow {
    position: fixed;
    width: 100%;
    height: 100%;

    overflow: hidden;
    z-index: 2;
}

main {
    display: flex;
    flex-direction: column;
}

main > * > *,
footer > * {
    position: relative;
    z-index: 10;
}

a {
    text-decoration: none;
    border-bottom: 1px dotted var(--text);
    color: var(--text);
}

#hero {
    height: 100%;
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#hero h1 {
    margin-top: 150px;
    margin-bottom: 1rem;
    font-family: Playwrite, serif;
    font-size: 3.25rem;
    font-weight: normal;
    text-shadow: 1px 1px 1px rgba(74, 83, 135, 0.4);
    display: inline-block;
    transform: skew(-5deg, -5deg);
}

@media screen and (max-width: 1000px){
    #hero h1 {
        font-size: 12vw;
    }
}

#hero h2 {
    font-family: Rochester, sans-serif;
    font-size: 2rem;
    font-weight: bold;
}

#hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

#hero #drawing {
    width: 100%;
    z-index: 0;
}

#hero #mountains {
    position: absolute;
    display: block;
    width: 100%;
    bottom: 0;
}

#hero #mountains path:nth-of-type(1) {
    fill: var(--accent);
    opacity: 0.25;
    transform: scale(1.2) translateY(-200px) translateX(350px);
}

#hero #mountains path:nth-of-type(2) {
    fill: var(--accent);
    opacity: 0.25;
    transform: scaleX(-1.2) translateY(-60px) translateX(-550px);
}

#hero #mountains path:nth-of-type(3) {
    fill: var(--accent);
    opacity: 0.5;
    transform: translateX(350px);
}

#hero #mountains path:nth-of-type(4) {
    fill: var(--accent);
    opacity: 0.5;
    transform: scaleX(-1) translateX(-550px);
}

.snow-block {
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    height: auto;
    fill: white;
    margin-bottom: 0;
    margin-top: auto;
    translate: 0 40px;
}

#hero #couple {
    position: absolute;
    bottom: 8vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

#hero #skis {
    width: 125px;
    position: absolute;
    bottom: 11vw;
    left: 28%;
    transform: translateX(-50%);
    z-index: 2;
}

#hero #arrows {
    width: 150px;
    position: absolute;
    bottom: 9vw;
    right: 17%;
    transform: translateX(-50%);
    z-index: 2;
}

@media screen and (max-width: 800px) {
    #hero #mountains {
        height: 55%;
    }

    #hero #mountains path:nth-of-type(1) {
        transform: scale(1.2) translateY(-200px) translateX(350px);
    }

    #hero #mountains path:nth-of-type(2) {
        transform: scaleX(-1.2) translateY(-60px) translateX(-550px);
    }

    #hero #mountains path:nth-of-type(3) {
        transform: translateX(350px);
    }

    #hero #mountains path:nth-of-type(4) {
        transform: scaleX(-1) translateX(-550px);
    }

    .snow-block {
        width: 300%;
        left: -100%;
    }

    #hero #skis, #hero #arrows {
        display: none;
    }
}

#cable-cars {
    width: 30%;
    max-width: 560px;
    min-width: 225px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

h1 {
    font-family: Rochester, serif;
    font-size: 3rem;
    font-weight: normal;
}

h2 {
    font-family: EBGaramond, serif;
    font-size: 1.7rem;
    font-weight: 500;
    margin-top: 2rem;
}

.small {
    font-size: .8rem;
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.container {
    --padding: 2rem;
    width: calc(100% - var(--padding) * 2);
    max-width: calc(960px - var(--padding) * 2);
    margin: auto;
    padding: calc(var(--padding) * 3) var(--padding) calc(var(--padding) * 2);
    display: flex;
    gap: 2rem;
}

.container.centered {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.container.form {
    padding: var(--padding);
}

#about {
    background-color: transparent;
}

#about img {
    width: 200px;
    object-fit: cover;
    object-position: -140px;
}

#about img, #rsvp img, #map {
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent),
    linear-gradient(to bottom, transparent, black 20px, black calc(100% - 20px), transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent),
    linear-gradient(to bottom, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-composite: intersect;
}

#about .snow-block {
    fill: var(--background);
    z-index: 0;
    bottom: -500px;
    transform: scaleX(-1);
}

#day {
    background-color: #E5DDE4;
}

#day span {
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#day .row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

#day .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

#day .time {
    font-weight: 600;
}

#day .activity {
    font-family: Playwrite, serif;
    font-size: 1.75rem;
    font-weight: 200;
}

#day .snow-block {
    fill: #E5DDE4;
    z-index: 0;
    bottom: -1516px;
}

#location {
    background-color: #D3C8DD;
}

#location #map {
    display: block;
    width: 500px;
    height: 350px;
    flex-shrink: 0;
}

#location .snow-block {
    fill: #D3C8DD;
    z-index: 0;
    bottom: -2028px;
    transform: scaleX(-1);
}

#rsvp {
    background-color: #C0B3D7;
}

#rsvp img {
    height: 300px;
    object-fit: cover;
}

#rsvp .button {
    display: block;
    width: 200px;
    background-color: var(--secondary);
    text-align: center;
    margin-top: 2rem;
}

#rsvp .snow-block {
    fill: #C0B3D7;
    z-index: 0;
    bottom: -2480px;
}

footer {
    padding: 2rem 1rem 1rem;
    background-color: var(--accent);
    text-align: center;
    font-style: italic;
}

form, .colored {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    padding: 2rem;

    background-color: var(--secondary);
    border-radius: 1rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.colored {
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 1000px) {
    .container {
        flex-direction: column;
    }

    #about img {
        width: 100%;
        object-fit: cover;
        object-position: unset;
    }

    #about .snow-block {
        bottom: -950px;
    }

    #day .snow-block {
        bottom: -1972px;
    }

    #location #map {
        width: 100%;
        height: 350px;
        flex-shrink: 0;
    }

    #location .snow-block {
        bottom: -2796px;
    }

    #rsvp .snow-block {
        bottom: -3546px;
    }
}

form > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

form label {
    padding-bottom: .25rem;
}

form input[type="text"],
form input[type="number"],
form textarea {
    --padding: 0.5rem;
    padding: 0.5rem;
    width: calc(100% - var(--padding) * 2);
    min-width: calc(300px - var(--padding) * 2);

    border: none;
    border-bottom: 2px solid var(--background);
    background-color: transparent;

    font-family: Nunito, serif;
    outline: none;

    transition: border-bottom-color .12s ease-in-out;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form textarea:focus,
form input[type="text"]:hover,
form input[type="number"]:hover,
form textarea:hover {
    border-color: var(--accent);
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form textarea:focus {
    background-color: #AD9ED022;
}

form input[type="checkbox"] {
    width: 0;
    height: 0;
    margin: 0;
    position: relative;
    translate: -2rem;
}

form input[type="checkbox"]:after,
form input[type="checkbox"]:before {
    position: absolute;
    display: block;
    font-family: Nunito, serif;
    font-size: 1rem;
    border: 2px solid var(--accent);
    padding: 0.25rem 0.5rem;
    transform: translateY(calc(-0.25rem - 2px));
    cursor: pointer;
}

form input[type="checkbox"]:before {
    content: "Ja";
    right: 0;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;

    color: color-mix(in srgb, var(--text) 75%, transparent);
}

form input[type="checkbox"]:checked:before {
    background-color: var(--accent);
    color: #000;
}

form input[type="checkbox"]:after {
    content: "Nee";
    left: 0;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;

    background-color: var(--accent);
    color: #000;
}

form input[type="checkbox"]:checked:after {
    background-color: transparent;
    color: color-mix(in srgb, var(--text) 75%, transparent);
}

.checkbox-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.checkbox-container label {
    padding-bottom: 0;
}

form .required label:after {
    content: "*";
    color: var(--accent);
    position: relative;
    left: 2px;
}

.hidden {
    display: none !important;
}

.search-result {
    margin-bottom: 2rem;
    position: absolute;
    bottom: 4px;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    background-color: var(--background);
    border: 2px solid var(--accent);
    border-radius: 0.5rem 0.5rem 0.5rem 0;
    z-index: 999;
}

.search-result div {
    padding: .5rem .75rem;
    max-width: 300px;
    overflow-x: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    background-color: transparent;
    transition: background-color .12s ease-in-out;
}

.search-result div:not(:last-of-type) {
    border-bottom: 1px solid var(--accent);
}

.search-result div:hover {
    background-color: #AD9ED022;
}

button:not(.gm-ui-hover-effect), .button {
    padding: .5rem .75rem;
    font-family: Nunito, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    background-color: var(--background);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    transition: transform .12s ease-in-out;
}

button:not(.gm-ui-hover-effect):hover, .button:hover {
    transform: scale(1.03);
}

.gm-style-iw-ch {
    display: none;
}

.gm-ui-hover-effect {
    position: absolute !important;
    top: -10px !important;
    right: -12px !important;
    opacity: 0.8;
}

.gm-ui-hover-effect > span {
    background-color: var(--primary) !important;
    width: 16px !important;
    height: 16px !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style-iw-c {
    background: var(--background) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(74, 83, 135, 0.3) !important;
    padding: 16px !important;
}

.gm-style-iw-tc::after {
    background: var(--background) !important;
    box-shadow: 2px 2px 4px rgba(74, 83, 135, 0.2) !important;
}

.gm-bundled-control {
    box-shadow: 0 2px 8px rgba(74, 83, 135, 0.3) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.gm-bundled-control .gm-control-active {
    background: var(--background) !important;
}

.gm-bundled-control .gm-control-active:hover {
    background: var(--secondary) !important;
}

.gm-bundled-control .gm-control-active:active {
    background: var(--accent) !important;
}

.gm-bundled-control .gm-control-active img {
    filter: invert(24%) sepia(21%) saturate(1400%) hue-rotate(196deg) brightness(90%) contrast(90%);
}

.gm-bundled-control > div > div {
    border-color: var(--secondary) !important;
}

#faq p {
    line-height: 1.6;
}

.faq-q {
    --padding: 1rem;
    max-width: calc(500px - var(--padding));
    width: calc(100% - var(--padding));
    padding: 0.5rem var(--padding);
}

.faq-q > * {
    margin: 0.5rem 0;
}