/* General Styles */

body {
    background-color: #f5f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures the body takes the full height of the screen */
    margin: 0;
    /* Remove any default margin */
}

.hidden {
    display: none;
}

.newyear {
    font-family: 'Brush Script MT', cursive;
}

.vassilopita-btn {
    background-color: #d81616;
    border: 0px;
    color: #fff;
    font-size: 16px;
}

.vassilopita-btn:hover {
    background-color: #ad1414;
    color: #fff;
}

.top-cont {
    padding-top: 5%;
    flex: 1;
    /* Pushes the footer to the bottom */
}

.one_piece {
    width: 60px;
    padding-right: 10px;
}

.header-img {
    width: 70%;
    padding-left: 20%;
}

.bite-img {
    width: 200px;
}

.powered-logo {
    width: 120px;
}

.green-class {
    background-color: #d81616;
}

.info_box {
    width: 200px;
    height: 100px;
    background-color: #fff;
    padding-right: 10%;
}

.header-bar {
    background-color: #fff;
    z-index: 100;
}


/* Base Button Styles */

.btn-vassilopita {
    background-color: #ad1414;
    /* Main background color */
    color: #fff;
    /* Text color */
    font-size: 1rem;
    /* Font size */
    padding: 0.75rem 1.5rem;
    /* Padding for a balanced look */
    border: none;
    /* Remove default border */
    border-radius: 4px;
    /* Rounded corners */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    transition: all 0.3s ease;
    /* Smooth transitions for hover/focus */
    cursor: pointer;
    /* Pointer cursor on hover */
}


/* Hover Effect */

.btn-vassilopita:hover {
    background-color: #9c1212;
    /* Slightly darker red */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow */
    transform: translateY(-2px);
    /* Lift effect */
}


/* Focus Effect */

.btn-vassilopita:focus {
    outline: none;
    /* Remove default outline */
    box-shadow: 0 0 0 3px rgba(173, 20, 20, 0.5);
    /* Focus ring */
}


/* Active State */

.btn-vassilopita:active {
    background-color: #8b1010;
    /* Even darker red */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    /* Reduce shadow */
    transform: translateY(0);
    /* No lift */
}


/* Disabled State */

.btn-vassilopita:disabled {
    background-color: #d3d3d3;
    /* Light gray */
    color: #a1a1a1;
    /* Dimmed text */
    cursor: not-allowed;
    /* Disabled cursor */
    box-shadow: none;
    /* Remove shadow */
}


/* Ripple Effect (Optional, using pseudo-elements) */

.btn-vassilopita::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-vassilopita:active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
}


/* CTA Button */

.cta-button {
    float: left;
    margin-top: 20px;
}


/* Steps Section */

.steps-section {
    background: #fff;
    padding: 50px 0;
}

.step-icon {
    width: 60px;
    margin-bottom: 10px;
}


/* Final CTA Section */

.final-cta {
    background: #f1f1f1;
    text-align: center;
    padding: 30px 0;
}


/* Footer Styles */

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    /* Pushes the footer to the bottom */
}

.participant {
    padding-top: 10px;
}

.control-icon {
    width: 21px;
    filter: brightness(0) invert(1);
}

#typing_effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    background-color: rgba(255, 255, 255, 1);
    /* Fully transparent background */
    border: 2px solid rgba(200, 200, 200, 1);
    /* Light border */
    border-radius: 10px;
    /* Smooth rounded corners */
    padding: 20px;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    z-index: 1050;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    /* Fade-in animation */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
}


/* Adjusting image */

#typing_effect img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
    /* Spacing between image and text */
}


/* Typing text styles */

#typing_effect span,
#typing_effect strong {
    font-size: 1.4rem;
    color: #333;
    text-align: center;
    display: block;
}


/* Optional fade-in animation */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Optional: Fade-in animation */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Override Bootstrap's default active styles */

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    color: inherit !important;
    background-color: transparent !important;
    border-color: inherit !important;
    box-shadow: none !important;
}


/* General card styles */

.cake-card {
    min-height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-img-top {
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* Add shadow and scaling on hover */

.cake-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Add red border and shadow when selected */

.btn-check:checked+.btn {
    border: 2px solid red!important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    /* Red shadow for focus */
    transform: scale(1.05);
    /* Slightly enlarge the card when selected */
}


/* Add subtle bounce effect on click */

.btn-check:checked+.btn img {
    animation: bounce 0.5s ease;
}


/* Focus style for keyboard navigation */

.cake-card:focus-within {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    /* Blue shadow for focus */
}


/* Keyframes for bounce effect */

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.pie-style-title {
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 700;
}

.form-label {
    font-size: 20px;
    padding: 15px;
    padding-left: 0px;
    font-weight: 700;
}

.parent-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Adjust if needed for vertical centering */
}

.cake-piece {
    width: 60px;
    margin-right: 20px;
}


/* Define the slide-in animation */

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Slide-in animation for the image */

.slide-in {
    animation: slideInFromRight 0.8s ease-out;
}


/* Optional fade-in effect for typing */

@keyframes typingFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Typing animation */

.typing {
    animation: typingFade 0.5s ease-in;
}