:root{
    --primary: #4682b4;
    --secondary: #77896F;
}

body {
    margin: 0;
}

@font-face {
    font-family: "WebsiteFontReg";
    src: url('../fonts/Agdasima-Regular.ttf');
}

@font-face {
    font-family: "WebsiteFontBold";
    src: url('../fonts/Agdasima-Bold.ttf');
}

@font-face {
    font-family: "WebsiteAirport";
    src: url('../fonts/Skyfont-NonCommercial.otf');
}

@font-face {
    font-family: "HandWriting";
    src: url('../fonts/MsMadi-Regular.ttf');
}

html, body{
    font-family: "WebsiteFontReg", serif, sans-serif, Helvetica, Arial;
}

h1{
    font-family: "WebsiteAirport", serif, sans-serif, Helvetica, Arial;
    font-size: 5rem;
}

h2, h3, h4, h5, h6 {
    font-family: "WebsiteFontBold", serif, sans-serif, Helvetica, Arial;
}

.field-text
{
    font-family: "WebsiteFontBold", serif, sans-serif, Helvetica, Arial;
    color: black;
}

.field-value
{
    font-family: "WebsiteFontReg", serif, sans-serif, Helvetica, Arial;
}

@media (max-width: 600px) {
    html {
        font-size: 12px;
    }
    .title {
        font-size: 2.5rem;
    }

    section {
        font-size: 1rem;
    }
}

.center-spinner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    gap: 12px;
}

.pl {
    display: block;
    width: 9.375em;
    height: 9.375em;
}

.pl__arrows,
.pl__ring-rotate,
.pl__ring-stroke,
.pl__tick {
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.pl__arrows {
    animation-name: arrows42;
    transform: rotate(45deg);
    transform-origin: 16px 52px;
}

.pl__ring-rotate,
.pl__ring-stroke {
    transform-origin: 80px 80px;
}

.pl__ring-rotate {
    animation-name: ringRotate42;
}

.pl__ring-stroke {
    animation-name: ringStroke42;
    transform: rotate(-45deg);
}

.pl__tick {
    animation-name: tick42;
}

.pl__tick:nth-child(2) {
    animation-delay: -1.75s;
}

.pl__tick:nth-child(3) {
    animation-delay: -1.5s;
}

.pl__tick:nth-child(4) {
    animation-delay: -1.25s;
}

.pl__tick:nth-child(5) {
    animation-delay: -1s;
}

.pl__tick:nth-child(6) {
    animation-delay: -0.75s;
}

.pl__tick:nth-child(7) {
    animation-delay: -0.5s;
}

.pl__tick:nth-child(8) {
    animation-delay: -0.25s;
}

/* Animations */
@keyframes arrows42 {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

@keyframes ringRotate42 {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(720deg);
    }
}

@keyframes ringStroke42 {
    from,
    to {
        stroke-dashoffset: 452;
        transform: rotate(-45deg);
    }

    50% {
        stroke-dashoffset: 169.5;
        transform: rotate(-180deg);
    }
}

@keyframes tick42 {
    from,
    3%,
    47%,
    to {
        stroke-dashoffset: -12;
    }

    14%,
    36% {
        stroke-dashoffset: 0;
    }
}

.wrapper {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 12px;
}

.wrapper.no-scroll {
    height: 100vh;
    overflow: hidden;
    perspective: none;
}

.wrapper.no-scroll header {
    height: 100vh;
}

.wrapper.no-scroll .background,
.wrapper.no-scroll .foreground {
    transform: none !important;
}

header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transform-style: preserve-3d;
    min-height: 100svh;
    padding: clamp(12px, 2.5vh, 28px) 16px;
}

.background {
    transform: translateZ(-10px) scale(2);
}

.foreground {
    transform: translateZ(-5px) scale(1.5);
}

.background,
.foreground {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: -1;
}

.title {
    font-family: "HandWriting", serif, sans-serif, Helvetica, Arial;
    font-size: clamp(2.25rem, 10vh, 7rem);
    color: white;
    line-height: 1.05;
    text-shadow: 0 0 30px black;
}

.sub-title{
    font-family: "HandWriting", serif, sans-serif, Helvetica, Arial;
    font-size: clamp(1.1rem, 4.2vh, 3rem);
    color: white;
    line-height: 1.15;
    text-shadow: 0 0 30px black;
}

.nav-text {
    max-width: 18rem;
    font-size: 1.5rem;
}

section {
    position: relative;
    font-size: 2rem;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

#switch {
    display: none;
}

.sign-up-form,
.log-in-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rsvp-form-container,
.boarding-group-container {
    flex-direction: column;
    color: white;
    padding: 1rem;
    border-radius: 2rem;
    outline: 1px solid black;
    background-image: url('../img/World-map.svg');
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.form-title {
    font-size: x-large;
    font-weight: bold;
}

.rsvp-form-container {
    animation: hello 0.5s linear forwards;
}

.boarding-group-container {
    animation: unhello 0.5s linear forwards;
}

#switch:checked ~ .rsvp-form-container {
    animation: unhello 0.5s linear forwards;
}

#switch:checked ~ .boarding-group-container {
    animation: hello 0.5s linear forwards;
}

@keyframes hello {
    0% {
        transform: rotateY(-90deg);
        display: none;
    }
    50% {
        transform: rotateY(-90deg);
        display: flex;
    }
    100% {
        transform: rotateY(0deg);
        display: flex;
    }
}

@keyframes unhello {
    0% {
        transform: rotateY(0deg);
        display: flex;
    }
    50% {
        transform: rotateY(90deg);
        display: flex;
    }
    100% {
        transform: rotateY(90deg);
        display: none;
    }
}

input[type='radio']
{
    accent-color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border: none;
}

.submit-button{
    border-radius: 5px; 
    background-color: var(--primary); 
    border: none;
}

.button-text{
    font-family: "WebsiteFontBold", serif, sans-serif, Helvetica, Arial;
    color: white;
}

.line-separator {
    background-color: white;
    border-bottom: 3px solid var(--primary);
}

.form-check-input[type=checkbox]{
    border-radius: 2rem;
}

.sub-text{
    font-size: medium;
}

input::placeholder{
    color: var(--primary);
}

textarea::placeholder{
    color: var(--primary);
}

.form-control{
    color: steelblue;
}

.form-control:focus{
    color: var(--primary);
}

.form-control::placeholder{
    color: steelblue;
}

.group-b {
    --primary: var(--secondary);
}

.group-a .form-control,
.group-a .form-control::placeholder {
    color: var(--primary);
}

.group-b .form-control,
.group-b .form-control::placeholder {
    color: var(--secondary);
}

.domain-tooltip-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.domain-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 5px 15px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: sans-serif;
    white-space: nowrap;
}

.domain-icon:hover {
    color: white;
    border-color: white;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.domain-popup {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 45px;
    right: 0;
    width: auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-10px);
    text-align: center;
}

.domain-popup h6 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.domain-popup img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Show popup on hover */
.domain-tooltip-container:hover .domain-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.title:focus { outline: none; }

.domain-popup img {
    width: 90vw;
    height: auto;
}

@media (min-width: 768px) {
    .domain-popup img {
        width: 50vw;
    }
}

@media (max-height: 568px) {
    .domain-tooltip-container {
        display: none;
    }
}

@media (max-height: 700px) {
    footer {
        position: static !important;
        width: auto !important;
    }
}

/* When height is tight (SE landscape), don't vertically center the whole stack */
@media (max-height: 420px) {
    /* Tooltip tends to collide with the top lines in this layout */
    .domain-tooltip-container {
        display: none;
    }

    /* Fixed footer will overlap content on SE landscape */
    footer {
        position: static !important;
        width: auto !important;
    }
}

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg, #fff);
}

.splash__text {
    text-align: center;
    margin-top: 0;
    font-size: 1rem;
    color: #6c757d;
}

.splash--hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.blur {
    filter: blur(10px);
}

.validation-message{
    color: red;
}