h1 {
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #ffffff !important;
    font-size: calc(1.375rem + 1.5vw);
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-top: 0;
    margin-top: 0;
    text-transform: uppercase;
}

h2 {
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #ffffff !important;
    font-size: calc(1.325rem + 0.9vw);
    text-transform: uppercase;
    padding-top: 10px;
    text-align: center;
    margin-bottom: 0px;
}

h3 {
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #ffffff;
    font-size: calc(1.3rem + 0.6vw);
    text-align: center;
    text-transform: uppercase;
}

h4 {
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #ffffff;
    font-size: calc(1.275rem + 0.3vw);
    padding-top: 10px;
    text-align: center;
    margin-bottom: 0px;
}

p {
    font-family: open-sans, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #ffffff;
    font-size: 1.1rem;
    padding-top: 0;
    text-align: center;
    margin-top: 0;
    text-transform: none;
}

/* Buttons */
.btn-primary {
    color: #EA479A;
    background-color: #ffffff;
    width: 100%;
    font-size: 1.6em;
    margin-top: 20px;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    border: 0px none;
    border-style: none !important;
    border-radius: 0px;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:hover {
    background-color: #ffffff !important;
    box-shadow: none !important;
    outline: none;
    color: #242045;
    border: 0px none;
    border-style: none !important;
    transform: scale(0.9);
}

.btn-secondary.btn-defeated,
.btn-secondary.btn-shuffle {
    color: #ffffff;
    background-color: transparent;
    width: 100%;
    font-size: 0.9em;
    margin-top: 0px;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    border: 2px #ffffff solid;
    border-radius: 0px;
}

.btn-secondary {
    color: #ffffff;
    background-color: transparent;
    width: 100%;
    font-size: 1.1em;
    margin-top: 0px;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    border: 2px #ffffff solid;
    border-radius: 0px;
}

.btn-secondary:active,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-secondary:hover {
    color: #ffffff;
    background-color: #EA479A !important;
    font-size: inherit !important;
    margin-top: 0px;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    border: 2px #ffffff solid !important;
    border-radius: 0px;
}

.btn-group {
    width: 100%;
    gap: 10px;

    /* padding: 0px 15px 0px 15px; */
}

/* Form related */
.form-check {
    display: flex;
    align-items: baseline;
    flex-direction: row;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

option {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #242045;
    color: #ffffff;
}

select.form-control,
select.form-control:focus,
select.form-control:active {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    -webkit-appearance: menulist;
    color: #ffffff;
    padding-bottom: 1.1vh;
    padding-top: 1.1vh;
    min-height: 4vh;
}

.form-control,
.form-control:focus,
.form-control:active {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    box-shadow: none;
    border-bottom: 2px solid #ffffff;
    border-left: none;
    border-right: none;
    border-top: none;
    padding-bottom: 0.8vh;
    margin: 0px;
    color: #ffffff;
    border-radius: 0px;
    background-color: transparent;
    padding-top: 0.8vh;
    min-height: 4vh;
}

.form-check-input,
.form-check-input:focus {
    background-color: transparent;
    border: 2px solid #ffffff;
    outline: 0;
    border-radius: 0px !important;
    box-shadow: none;
}

.form-check-input:checked {
    background-color: transparent;
    border: 2px solid #ffffff;
    box-shadow: none;
}

input::-webkit-calendar-picker-indicator {
    display: none !important;
}

.input-date {
    color: #ffffff;
    font-size: 1rem;
    line-height: 2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
    border-bottom: 2px solid #ffffff;
    border-radius: none !important;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

.input-date:focus-visible {
    outline: none;
}

label {
    color: #ffffff;
    padding: 0;
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 400 !important;
    font-style: normal;
    font-size: 1.15em;
    text-transform: uppercase;
    margin-top: 20px;
}

.form {
    display: block;
    margin-top: 0em;
}

/* file upload input */
#fileUpload {
    text-transform: lowercase;
    font-family: "Faktum-Regular"!important;
    border: 2px solid #ffffff;
    width: 100%;
    min-height: 5vh;
}

::file-selector-button {
    font-family: "Faktum-Regular"!important;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.8vh 2vw;
    border-radius: 0px;
    background-color: #ffffff;
    height: 100%;
}

/* placeholder text */
.form-control::placeholder,
.input-date::placeholder {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #C7D9DA;
    opacity: 1;
    font-size: 0.9em;
}

::placeholder {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #C7D9DA;
}

input[type="text"].form-control::-webkit-input-placeholder,
input[type="tel"].input-date::-webkit-input-placeholder {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #C7D9DA;
}

.aria-labelledby {
    color: #C7D9DA;
}

/* header */
.hero-desktop,
.hero-mobile {
    width: 100%;
}

.hero {
    margin-bottom: 10px;
    display: block;
}

/* Footer section */
section.footer {
    background-color: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.footer-area {
    display: flex;
    justify-content: center;
}

/* XS mobile rules */
@media (min-width:0px) and (max-width:400px){
    section.footer {
        bottom: auto !important;
    }

    .hero #desktop {
        visibility: hidden;
        display: none;
    }
}

/* Mobile rules */
@media (min-width:400px) and (max-width:767px) {
    .hero #desktop {
        visibility: hidden;
        display: none;
    }

    .body-wrapper {
        min-height: 95vh;
    }
}

/* Desktop rules */
@media (min-width:768px) {
    label {
        font-style: normal;
        font-size: 1.3em !important;
    }

    .btn-secondary.btn-defeated,
    .btn-secondary.btn-shuffle {
        color: #ffffff;
        background-color: transparent;
        width: 100%;
        font-size: 1.1em;
        margin-top: 0px;
        font-family: bebas-neue-by-fontfabric, sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        outline: none;
        border: 2px #ffffff solid;
        border-radius: 0px;
    }

    .thumb-title {
        width: 20px !important;
        font-family: bebas-neue-by-fontfabric, sans-serif;
        font-weight: 400 !important;
        font-style: normal;
        color: #000000;
        text-transform: uppercase;
        letter-spacing: 0px;
        font-size: 0.9rem !important;
    }
}

/* links */
a {
    color: #EA479A;
    text-decoration: none;
}

a:hover {
    color: #ffffff !important;
}

a:hover,
a:focus,
a:visted,
a:active {
    color: #ffffff !important;
}

/* general layout */
.body-content {
    /* min-height: 40vh */
    overflow: hidden;
    display: block;
    padding-bottom: 5vh;
}

hr {
    margin: 1rem 0;
    color: inherit;
    opacity: 1;
    border-top-width: 2px;
    border-top-color: #ffffff;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
    width: 100%;
}

.row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}

.container-fluid {
    padding-right: 0px;
    padding-left: 0px;
}

body {
    background-color: #242045;
    min-height: 90vh;
}

.body-wrapper {
    background-image: url('assets/bg-img.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
    min-height: 93vh;
}

body.puzzle-game {
    background-color: #C7D9DA;
    min-height: 90vh;
    background-image: url('assets/bg-img-opt2.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.overlay {
    background-color: rgba(36, 32, 69, 0.8);
    margin-top: 5vh;
    margin-bottom: 5vh;
    padding-left: 0 !important;
    padding-right: 0;
    margin-left: 0 !important;

    /* border: 2px solid #ffffff; */
    position: relative;
}

/* Outer glow + outer yellow border */
.overlay::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 4px solid #FFBF3E;
    border-radius: 0px;
    box-shadow: 0 0 10px #FFBF3E,
        0 0 30px rgba(255, 191, 62, 0.6),
        0 0 60px rgba(255, 191, 62, 0.2);
    z-index: -2;
}

/* Inner white border */
.overlay::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid white;
    border-radius: 0px;
    z-index: -1;
}

/* game section */
.backdrop {
    background-color: #ffffff;
    padding: 15px;
    position: relative;
    width: 100%;
}

/* 2 columns × 3 rows, responsive */
.puzzle-blocks {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    border: 4px solid #ffffff;
    box-sizing: border-box;
}

/* Puzzle tiles */
.pieces {
    width: 50%;
    position: relative;
    cursor: pointer;
    border: 1px #ffffff solid;
}

.pieces img {
    width: 100%;
    height: auto;
    display: block;
}

.pieces.blank {
    cursor: default;
}

.pieces.blank img {
    opacity: 0.3;
}

.puzzle-blocks.solved .blank img {
    opacity: 1;
}

/* controls */
.controls {
    background-color: #242045CC;
    display: flex;
    align-items: center;
    padding: 15px;
}

/* Puzzle variation pick */
.options {
    width: 32.33%;
    display: inline-grid;
}

.thumb {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* White vertical panel */
.thumb-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: bebas-neue-by-fontfabric, sans-serif;
    font-weight: 400 !important;
    font-style: normal;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0px;
    font-size: 0.7rem;
    z-index: 3;
}

/* Dark overlay (inactive thumbnails) */
.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Base scale */
.thumb {
    transform: scale(0.9);
}

/* Active thumbnail */
#flavour-1:checked + .thumb,
#flavour-2:checked + .thumb,
#flavour-3:checked + .thumb {
    transform: scale(1.25);
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    z-index: 5;
}

/* Remove dark overlay on active */
#flavour-1:checked + .thumb::after,
#flavour-2:checked + .thumb::after,
#flavour-3:checked + .thumb::after {
    opacity: 0;
}

/* Slight zoom on active image */
#flavour-1:checked + .thumb img,
#flavour-2:checked + .thumb img,
#flavour-3:checked + .thumb img {
    transform: scale(1.03);
}

/* Hide radio buttons */
.flavour-selector input[type="radio"] {
    display: none;
}

/* Thumbnail layout */
.flavour-selector {
    display: flex;
    gap: 2em;
    justify-content: center;
    padding: 20px 0 30px;
}

.thumb {
    width: 220px;
}

/* Puzzle variation pick end */
/* Modal */
#puzzle-completed .modal-content,
#puzzle-completed .modal-footer {
    border-radius: 0;
}

.form-control:disabled {
    background-color: #e9ecef29 !important;
    opacity: 1;
}
