@font-face {
    font-family: "CormorantGaramond";
    src: url("./fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 300 700;
    font-style: italic;
}

/*@font-face {
    font-family: "CormorantGaramond";
    src: url("./fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype-variations");
    font-weight: 300 700;
    font-style: normal;
}*/

:root {
    --background: #c9c9c9;
    --overlay-color: rgba(201, 201, 201, 0.5);
    --text-color: #242323;
    --highlight-color: #555555;
    --primary-font: "CormorantGaramond", serif;
    --base-text-size: 1.5rem;
}

/*--------------------------------------------------------------------------------------------*/

/* page defaults */
body {
    font-family: var(--primary-font);
    background-color: var(--background);
    color: var(--text-color);
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

@media (max-width: 700px) {
    :root {
        --base-text-size: 1rem;
    }
}

.title {
    color: var(--highlight-color);
    font-family: var(--primary-font);
    font-size: calc(3 * var(--base-text-size));
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.01em;
    margin-bottom: -30px;
}

.subtitle {
    color: var(--highlight-color);
    font-family: var(--primary-font);
    font-size: calc(2.5 * var(--base-text-size));
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.01em;
    padding-left: 10px;
}

.highlighted-text {
    color: var(--highlight-color);
    font-family: var(--primary-font);
    font-size: calc(2 * var(--base-text-size));
    font-weight: 400;
    font-style: italic;
    line-height: 2;
}

.normal-text {
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: calc(1.5 * var(--base-text-size));
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
}

.normal-picture {
    width: 100%;
    height: auto;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
}

.normal-button {
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: calc(1.5 * var(--base-text-size));
    font-weight: 300;
    font-style: italic;
    text-decoration: none;
    border-width: 1px;
    border-radius: 5px;
    border-color: var(--text-color);
    border-style: solid;
    width: fit-content;
    margin: 0 auto;
    padding: 5px;
}

.normal-button:hover {
    outline: 3px solid var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

/*--------------------------------------------------------------------------------------------*/

/* header */
header {
    position: relative;
    width: 100%;
    background-image: url(./img/backdrop.jpg);
    background-position: center top;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/*header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    background-color: var(--overlay-color);
    pointer-events: none;
    z-index: 0;
}*/

.lang-bar {
    position: relative;
    z-index: 1;
    padding: 5px 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.hero {
    position: relative;
    z-index: 1;
    height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: center;*/
    padding-top: 100px;
}

.lang-button {
    text-decoration: none;
}

.flag {
    width: 36px;
    height: auto;
    display: block;
}

.flag:hover {
    /*outline: 3px solid var(--highlight-color);*/
    box-shadow: 0 0 10px var(--highlight-color);
}

/*--------------------------------------------------------------------------------------------*/

/* footer */
footer {
    background-color: var(--background);
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.footer-text {
    font-style: italic;
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: var(--base-text-size);
    font-weight: 300;
}

/*--------------------------------------------------------------------------------------------*/

/* main sections */
main {
    background: var(--background);
}

.section {
    width: 100%;
    max-width: 1200px;
    padding-inline: 10px;
    box-sizing: border-box;
}

/* section 1 */
.content-row {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 10px;
}

.img-block {
    flex: 0 0 round(down, calc(50% - 5px), 1px);
    align-items: center;
    min-width: 0;
}

.txt-block {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 0 0 round(down, calc(50% - 5px), 1px);
    min-width: 0;
}

@media (max-width: 700px) {
    .content-row {
        flex-direction: column;
    }

    .order-reversed {
        flex-direction: column-reverse;
    }
}

/* section 2 */
.text-list {
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* section 3 */
.long-text {
    word-break: break-word;
}

#embedded-content {
    background-color: var(--background);
    position: relative;
    padding: 20px;
}

.form-text, .text-input {
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: calc(1.2 * var(--base-text-size));
    font-weight: 300;
    font-style: italic;
    line-height: 1.3;
}

.text-input:focus {
    outline: 3px solid var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

.input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.5s ease, display 0.5s ease allow-discrete;
}

.input-row > *:first-child {
    flex: 0 0 50%;
}

.input-row > *:not(:first-child) {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.text-input {
    height: 30px;
    width: 80%;
    background: transparent;
    border-radius: 5px;
    border-width: 1px;
    border-color: var(--text-color);
    border-style: solid;
}

.radio-collective {
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.radio-button {
    text-decoration: none;
    border-width: 1px;
    border-radius: 5px;
    border-color: var(--text-color);
    border-style: solid;
    width: round(down, calc(1 * var(--base-text-size)), 1px);
    height: round(down, calc(1 * var(--base-text-size)), 1px);
    margin: 5px;
    position: relative; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.radio-button::after {
    content: "";
    background-color: var(--text-color);
    border-radius: 3px;
    width: 60%;
    height: 60%;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
}

.radio-button:hover {
    outline: 3px solid var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

.radio-button.active::after {
    transform: scale(1);
}

.radio-button.active:hover {
    outline: 0px solid var(--highlight-color);
    box-shadow: 0 0 0px var(--highlight-color);
}

.counter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.small-button {
    color: var(--text-color);
    font-family: var(--primary-font);
    font-size: calc(1.5 * var(--base-text-size));
    font-weight: 300;
    font-style: italic;
    text-decoration: none;
    border-width: 1px;
    border-radius: 10px;
    border-color: var(--text-color);
    border-style: solid;
    width: round(down, calc(2 * var(--base-text-size)), 1px);
    height: round(down, calc(2 * var(--base-text-size)), 1px);
    text-align: center;
    vertical-align: middle;
}

.small-button:hover {
    outline: 3px solid var(--highlight-color);
    box-shadow: 0 0 10px var(--highlight-color);
}

.small-button.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

#adult-counter, #child-counter {
    width: round(down, calc(3 * var(--base-text-size)), 1px);
    text-align: center;
    vertical-align: middle;
}

.hidden {
    display: none;
    opacity: 0;
}

@keyframes flash-border {
    0%, 100% { border-width: 1px;
               border-style: solid;
               border-color: var(--text-color);
               outline: 0px solid red;
               box-shadow: 0 0 0px red;
             }
    50% { border-width: 1px;
          border-style: solid;
          border-color: red;
          outline: 3px solid red;
          box-shadow: 0 0 10px red;
        }
}

.flash {
    animation: flash-border 0.5s ease 2;
}

#form-response-container {
    text-align: center;
}

#form-intro, #embedded-content, #form-response-container {
    opacity: 1;
    transition: opacity 1s ease, display 1s ease allow-discrete;
}

@starting-style {
    #form-intro, #embedded-content, #form-response-container {
        opacity: 0;
    }
}
