@font-face {
    font-family: greatVibes;
    src: url(../fonts/Great_Vibes/GreatVibes-Regular.ttf);
}

@font-face {
    font-family: gowunDodum;
    src: url(../fonts/Gowun_Dodum/GowunDodum-Regular.ttf);
}

@font-face {
    font-family: vollkorn;
    src: url(../fonts/Vollkorn/static/Vollkorn-Regular.ttf);
}

@font-face {
    font-family: petitFormal;
    src: url(../fonts/Petit_Formal_Script/PetitFormalScript-Regular.ttf)
}

:root {
    font-size: 1.125rem;
    line-height: 1.5;
    --content-width-normal: 1000px;
    --card-background-color: transparent;
    --link-color: #000000;
    --cover-background-color: #FFFFFF;
    --cover-text-color: #353535;
    --cover-joiner-color: #353535;
    --title-text-color: #000000;
    --navigation-text-color: #353535;
    --title-font-family: 'vollkorn',cursive;
    --primary-font-family: 'vollkorn',cursive;
    --secondary-font-family: 'vollkorn',sans-serif;
    --tertiary-font-family: 'vollkorn',sans-serif;
    --salutation-font-family: 'vollkorn',sans-serif;
    --primary-line-height: 0.7em;
    --secondary-font-size: 1.1em;
    --tertiary-font-size: 0.7em;
    --title-font-size: 4em;
    --salutation-font-size: 1.25em;
    --button-border-radius: 4px;
    --primary-font-size: 12em;
    --accent-color: #303030;
    --seconary-accent-color: #e6e6e6;
    --background-color: #FCFBF4;
    --body-text-color: #4e4e4e;
    --button-color: #000000;
    --background-error-color: #ffdada;
    --font-error-color: #c01c1c;
    --date-font-size: 1.25em;
    --in-section-subtitle-font-size: 3.3000000000000003em;
    --date-font-family: 'gowunDodum',sans-serif;
    --font-weight-heavy: 600;
    --slider-height-normal: 450px;
    --slider-height-small: 350px;
    --slider-height-normal-neg: -450px;
    --slider-height-small-neg: -350px;
    --slider-image-wh-ratio: 8;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--secondary-font-family), Arial,sans-serif;
    font-size: var(--secondary-font-size);
    background-color: var(--background-color);
    color: var(--body-text-color);
    margin: 0px;
    padding: 0px;
}

h1, h2, h3 {
    color: var(--title-text-color);
}

a {
    color: var(--body-text-color);
    font-weight: 700;
    text-decoration: underline;
}

form {
    margin-inline: auto;
    max-width: min(500px, 100%);
    border-color: var(--accent-color);
    padding: 0px 50px 50px 50px;
    /* box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 15px; */
    /* transition: 750ms ease; */
    border-radius: 8px;
    position: relative;
}

ul {
    list-style-type: none;
}

@media (max-width: 640px) {
    form {
        padding: 0px 10px 50px 10px;
    }
}

.container {
    margin: 1em auto;
    max-width: var(--content-width-normal);
    padding: 0px 8px 0px 8px;
    text-align: center;
}

.container-flex {
    display: flex;
    width: min(var(--content-width-normal), 100%);
}

.text-justify p {
    text-align: justify;
}

.container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.container figure {
    margin: auto 0 auto 0;
}

.container figcaption {
    font-style: italic;
    font-size: calc(var(--secondary-font-size) * 0.80);
}

.image-container {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    /* margin: 24px 0px; */
    width: 80%;
    height: 80vh;
    background-image: url('/static/img/kitten-227011_1280.jpg');
}

.navbar {
    display: flex;
    justify-content: center;
    margin: 0 auto 0 auto;
    max-width: calc(var(--content-width-normal) / 2);
}

.navbar-section {
    display: flex;
    padding: 0px;
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar li {
    display: block; /* default option, so remove? */
    padding: 8px 15px;
    margin: 0px auto;
    text-decoration: none;
}

.navbar a {
    text-decoration: none;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: #4E4E4E;
    transition: opacity 300ms, transform 300ms;
}

.navbar a:hover::after,
.navbar a:focus::after {
    transform: scale(1);
}
.navbar a::after {
    transform: scale(0);
    transform-origin: center;
}

.iframe-container {
    padding-bottom: 50%;
    position: relative;
    background-color: #e4e4e4;
    margin: auto auto 20px auto;
}

.iframe-container iframe {
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    border: 0;
}

.iframe-container .disabled-text {
    font-size: calc(var(--tertiary-font-size) * 2.00);
    opacity: 0.6;
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    align-content: center;
    margin: 0;
}

.google-maps {
    max-width: 550px;
    min-height: 75px;
}

.countdownTimer {
    font-weight: var(--font-weight-heavy);
}

.slider {
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  margin: 0px auto 50px auto;
  max-width: 2500px;
  height: var(--slider-height-normal);
}

.slider-images {
  background: url(/static/img/slider_header.jpg);
  background-repeat: repeat-x;
  background-size: auto 100%;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(var(--slider-height-normal) * calc(var(--slider-image-wh-ratio) * 2));
  animation: slideshow-normal 45s linear infinite;
}

@keyframes slideshow-normal {
  0%    { left: 0; }
  100%  { left: calc(var(--slider-height-normal-neg) * var(--slider-image-wh-ratio)); }
}

@keyframes slideshow-small {
  0%    { left: 0; }
  100%  { left: calc(var(--slider-height-small-neg) * var(--slider-image-wh-ratio)); }
}

@media (max-width: 640px) {
    .slider {
        height: var(--slider-height-small);
    }

    .slider-images {
        width: calc(var(--slider-height-small) * calc(var(--slider-image-wh-ratio) * 2));
        animation: slideshow-small 45s linear infinite;
    }
}

header h1 {
    font-family: petitFormal;
    font-size: 4em; /* TODO put this to var(--title-font-size) */
}

header p,
header h1 {
    margin: 0 0;
}

header.container {
    padding: 0px;
}

@media (max-width: 640px) {
    header h1 {
        font-size: 2.35em;
    }

    header p.collapsable {
        display: none;
    }

    .navbar-section {
        margin: 0 auto 10px auto;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 0.5; }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/throbber.gif');
    background-position: center;
    background-size: 50px;
    background-repeat: no-repeat;
    z-index: 100;
    background-color: grey;
    opacity: 0.5;
    animation: fadeIn 1s;
}

.header-intro-text, .header-intro-subtext {
    margin-left: 2px;
    margin-right: 2px;
    text-align: right;
}

.container h2 {
    text-align: center;
}

.content-separator {
    height: 1px;
    border-bottom: solid 1px;
    margin: 0px auto;
    width: 50%;
}

.schedule-item {
    text-align: left;
    max-width: 500px;
    margin-inline: auto;
}

.schedule-item-container {
    display: flex;
    position: relative;
    padding: 0px 0px 20px 60px;
}

.schedule-item-time {
    width: 250px;
    font-weight: var(--font-weight-heavy);
}

.schedule-item-detail {
    flex-grow: 2;
    text-align: left;
    padding-left: 20px;
    width: 100%;
}

.schedule-item-detail-header {
    font-weight: var(--font-weight-heavy);
}

.schedule-item-container::after {
    width: 1px;
    background: transparent;
    border-right: solid 2px var(--accent-color);
    left: 12px;
    top: 10px;
    height: 100%;
    opacity: 0.7;
    z-index: 1;
}

.schedule-item-container::before, .schedule-item-container::after {
    content: " ";
    position: absolute;
}

.schedule-item-container::before {
    background: var(--accent-color);
    border-radius: 10px;
    border: var(--accent-color);
    height: 8px;
    left: 10px;
    top: 10px;
    width: 8px;
    z-index: 2;
}

.schedule-item-container:last-child::after {
    display: none;
}

.step {
    display: none;
}
.step.active {
    display: block;
}

.form-field {
    margin-top: 20px;
    padding: 5px;
}
.form-field input[type="text"],
.form-field input[type="textbox"],
.form-field input[type="submit"],
.form-field input[type="email"],
.form-field textarea {
    font-family: var(--tertiary-font-family);
    font-size: var(--tertiary-font-size);
    width: 100%;
    border: 1.5px solid rgba(128, 128, 128, 0.418);
    padding: 10px 5px;
    margin-top: 5px;
    border-radius: 4px;
    box-sizing: border-box;
    /* background: transparent; */
    transition: ease, 750ms;
}

.form-field textarea {
    resize: none;
    overflow: hidden;
}

.form-field input:disabled,
.form-field textarea:disabled,
.form-field input:read-only,
.form-field textarea:read-only {
    background-color: rgb(224, 224, 224);
}

.form-field input.error {
    background-color: var(--background-error-color);
}
 
.form-field label,
.form-field input[type="radio"] {
    cursor: pointer;
    padding-top: 10px;
    padding-bottom: 10px;
}
 
.form-field label {
    margin: auto 15px auto auto;
}
 
.inviteCodeErrorMsg {
    visibility: hidden;
    font-size: 0.7em;
    color: var(--font-error-color);
    transition: 750ms ease;
}

button.submit-btn {
    margin: 10px auto;
    display: block;
    min-width: 40%;
    min-height: 40px;
    border: 1px solid;
    border-radius: 8px;
    cursor: pointer;
}

.image-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: dense;
    gap: 6px;
}

.image-mosaic img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: ease-in 200ms;
}

.image-mosaic .tall-img {
    grid-row: span 2 / auto;
    grid-column: span 2 / auto;
}

.image-mosaic .large-img {
    grid-row: span 2 / auto;
    grid-column: span 2 / auto;
}

.image-mosaic .wide-img {
    grid-column: span 2 / auto;
}

@media (max-width: 500px) {
    .image-mosaic {
        display: block;
    }
}

.image-mosaic img:hover {
    transform: scale(1.01);
    transition: ease-in 200ms;
}