body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: "Crimson Text", serif;
    font-size: 1.1rem;
}

#hero {
    background: url('../img/hero.webp') no-repeat center bottom -100px;
    background-size: cover;
    color: white;
    display: flex;
    align-items: flex-end;
}

#hero .logo {
    width: 200px;
}

h1 {
    letter-spacing: -.8px;
    font-size: 3rem;
}

h2 {
    letter-spacing: -.8px;
    font-size: 2.5rem;
}

.small, small {
    font-size: .975em;
}

a {
    color: #405a58;
    text-decoration: none;
}

.text-dark {
    color: #1e474a !important;
}

.bg-light {
    background-color: rgb(235, 241, 239) !important;
}

.bg-warning {
    background-color: rgb(194, 156, 104) !important;
}

.badge {
    font-family: "Roboto", sans-serif;
}

.border-white {
    border-color: #ffefd3 !important;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #482818 0%, #5d4c23 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgb(87, 66, 32);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #184448 0%, #475e5b 100%);
    box-shadow: 0 0 12px rgb(87, 66, 32);
    transform: translateY(-2px);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn-primary:hover::before {
    transform: scale(1);
}

.text-primary {
    color: #1e474a !important;
}

#hero .container {
    position: relative;
}

.hero-logo-container {
    position: absolute;
    top: 20px;
    left: 150px;
    z-index: 10;
    text-align: center;
}

.hero-logo-img {
    max-height: 70px;
    display: block;
    margin: 0 auto;
}

.hero-logo-subtitle {
    display: block;
    color: #212529;
    font-size: 1.7rem;
    font-weight: bold;
    margin-top: 5px;
}

.hero-description {
    display: block;
    color: #212529;
    font-size: 1.4rem;
    margin-top: 5px;
    font-style: italic;
}

.hero-character {
    max-width: 300px;
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.separator .line {
    flex: 1;
    height: 1px;
    background-color: #000;
    max-width: 120px;
}

.separator i {
    font-size: 1rem;
}

.lottery-section {
    padding: 50px 0;
    text-align: center;
}

.email-capture {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.email-capture input[type="email"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.email-capture .btn {
    width: 50%;
}

.form-check-input:checked {
    background-color: #1d474a;
    border-color: #1d474a;
}

.archangel-section {
    padding: 50px 0;
}

.archangel-card {
    margin: 15px;
    transition: transform 0.3s;
}

.archangel-card:hover {
    transform: scale(1.05);
}

.card-angelic {
    cursor: pointer;
    width: 120px;
    height: 180px;
    position: absolute;
    left: 50%;
    top: 30px;
    transform-style: preserve-3d;
    transition: opacity 0.8s;
    transform: var(--initial-transform);
}

.card-angelic.is-floating {
    animation: float-animation 4s ease-in-out infinite;
}

@keyframes float-animation {
    0% {
        transform: var(--initial-transform) translateY(0px);
    }
    50% {
        transform: var(--initial-transform) translateY(-8px);
    }
    100% {
        transform: var(--initial-transform) translateY(0px);
    }
}

#card-deck.is-shuffling .card-angelic {
    animation: shuffle-animation 1.5s cubic-bezier(0.6, 0, 0.4, 1) forwards;
}

@keyframes shuffle-animation {
    0% {
        transform: var(--initial-transform);
    }
    40% {
        transform: translateX(-50%) translateY(20px) rotate(var(--shuffle-rotate));
    }
    60% {
        transform: translateX(-50%) translateY(10px) rotate(calc(var(--shuffle-rotate) * -0.5));
    }
    100% {
        transform: translateX(-50%) translateY(20px) rotate(var(--shuffle-rotate));
    }
}

#card-deck.is-spreading .card-angelic {
    animation: spread-animation 1s cubic-bezier(0.6, 0, 0.4, 1) forwards;
}

@keyframes spread-animation {
    from {
        transform: translateX(-50%) translateY(20px) rotate(var(--shuffle-rotate));
    }
    to {
        transform: var(--initial-transform);
    }
}

.card-angelic.is-illuminated {
    box-shadow: 0 0 40px #c29c68, 0 0 60px rgba(255, 255, 255, 0.8);
}

@keyframes flip-animation {
    from {
        transform: var(--initial-transform) translateY(-15px) rotateY(0deg);
    }
    to {
        transform: var(--initial-transform) translateY(-15px) rotateY(180deg);
    }
}

@keyframes lift-up-animation {
    to {
        transform: var(--initial-transform) translateY(-15px);
    }
}

.card-angelic.is-fading {
    opacity: 0.3;
    transform: var(--initial-transform) scale(0.95);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.card-back {
    background-image: url('../img/card-back.webp');
}

.card-front {
    transform: rotateY(180deg);
}

#result-card-image {
    max-height: 340px;
}

#interactive-area {
    position: relative;
    min-height: 350px;
}

#card-deck,
#result-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 250px;
    transition: opacity 0.8s ease-in-out;
}

#result-display.is-visible {
    position: static;
    opacity: 1;
    pointer-events: auto;
}

#card-deck.is-hidden {
    display: none;
}

#draw-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
}

#result-display {
    opacity: 0;
    pointer-events: none;
}

.guidance-card {
    display: flex;
    align-items: center;
    padding: .5rem;
}

.guidance-symbol {
    width: 50px;
    margin-right: 1rem;
}

.guidance-text {
    margin: 0;
    font-size: 1.5rem;
    font-style: italic;
    color: #333;
}

.registration {
    background-color: #fff7e9;
    border: 1px solid #cab285;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.form-control, .form-select, .dropdown-toggle {
    border: var(--bs-border-width) solid #574220;
}

#email-input {
    font-size: 1.3rem;
}

#wishDropdown {
    width: 151px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#wishDropdown.btn:hover {
    border-color: rgb(87, 66, 32, 1) !important;
}

.dropdown-menu {
    width: 100%;
    padding-left: 10px;
}

.form-check .form-check-input {
    margin-left: 0;
    margin-right: 10px;
}

.form-check {
    padding-left: 0;
}

.form-check-input {
    border: var(--bs-border-width) solid #4a2c19;
}

label {
    font-size: 1.2rem;
    letter-spacing: -.1px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#result-display.is-visible #result-archangel-name {
    animation: fadeInUp 0.8s ease-out forwards;
}

#result-display.is-visible .guidance-card {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

#result-display.is-visible #email-form {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

#result-display #result-archangel-name {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#result-display #result-archangel-symbol {
    margin-left: 1rem;
}

#result-display .separator .line,
#result-display .separator i {
    display: none;
}

.angel-card-grid {
    text-align: center;
}

.angel-card-grid .card-img-top {
    width: 100%;
    display: block;
    transition: filter 0.6s ease-out, transform 0.6s ease-out;
}

.angel-card-grid.is-blurry .card-img-top {
    filter: blur(8px);
    transform: scale(1.05);
}

.angel-card-grid .card-title {
    margin-top: 0.5rem;
    font-weight: 700;
    color: #333;
    font-size: 1.3rem;
}

.angel-card-grid .card-text {
    font-style: italic;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1rem;
}

@keyframes float-animation {
    0% {
        transform: var(--initial-transform) translateY(0px);
    }
    50% {
        transform: var(--initial-transform) translateY(-6px);
    }

    100% {
        transform: var(--initial-transform) translateY(0px);
    }
}

summary {
    font-weight: bold;
    font-size: 1.3rem;
}

#infoIcon {
    cursor: pointer;
}

.gift {
    max-width: 400px;
}

.form {
    max-width: 550px;
    margin: -80px auto 0;
}

@media (min-width: 2000px) {
    #hero {
        background: url('../img/hero.webp') no-repeat center bottom -160px;
        background-size: cover;
    }
}

@media (min-width: 992px) {
    #result-display #result-archangel-name {
        justify-content: flex-start;
    }
}

@media (max-width: 1199px) {
    #hero {
        background: url('../img/hero.webp') no-repeat center bottom 20px;
        background-size: cover;
    }
}

@media (max-width: 991px) {
    #hero {
        background: url('../img/hero-mobile.webp') no-repeat center bottom -70px;
        background-size: cover;
    }

    .hero-character {
        max-width: 180px;
    }

    .hero-logo-img {
        max-height: 50px;
    }

    .hero-logo-container {
        top: 10px;
        right: 10px;
    }

    .hero-logo-subtitle {
        font-size: 1.4rem;
        font-weight: bold;
        margin-top: 0px;
    }

    .hero-description {
        display: none;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    #card-deck {
        min-height: 300px;
    }

    .card-angelic {
        width: 85px;
        height: 136px;
    }

    #result-display #result-archangel-name {
        font-size: 1rem !important;
    }

    #result-card-image {
        max-height: 130px;
    }

    .guidance-card {
        padding: .5rem;
    }

    .guidance-text {
        font-size: 1.3rem;
    }

    .guidance-symbol {
        width: 40px;
        margin-right: 1rem;
    }

    #draw-button {
        width: 100%;
    }

    #email-form .btn {
        width: 100%;
    }

    #draw-button {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        margin-top: .5rem;
    }

    .form {
        max-width: 550px;
        margin: -40px auto 0;
    }
}

@media (max-width: 767px) {
    #hero {
        background: url('../img/hero-mobile.webp') no-repeat center bottom -30px;
        background-size: cover;
    }
}

@media (max-width: 575px) {
    #hero {
        background: url('../img/hero-mobile.webp') no-repeat center bottom;
        background-size: cover;
    }

    .small, small {
        font-size: .875em;
    }
}