@import url('https://fonts.cdnfonts.com/css/bubble-letters');
body {
    font-family: Tahoma, sans-serif, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to bottom, #ed9de9, rgba(237, 157, 233, 0.9), rgba(237, 157, 233, 0.7), rgba(237, 157, 233, 0.5), rgba(237, 157, 233, 0.3), rgba(237, 157, 233, 0));
    padding: 1em;
    height: 70px; /* Increase the height of the navbar */
    position: relative;
    z-index: 1;
}

.navbar-gif {
    height: 100px; /* Adjust this value to change the height */
    width: auto; /* Adjust this value to change the width */
    margin-right: auto; /* Push the GIF to the left */
}


.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 1em;
    right: 1em;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 5px;
    background: #ed9de9;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.nav-toggle-label span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}

.nav-toggle:checked + .nav-toggle-label span {
    transform: translate(-50%, -50%) rotate(90deg);
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.nav-button {
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    height: 55px;
    width: 200px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border: none;
    background-color: #ed9de9;
    border-radius: 50px;
    margin: 0.5em;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    line-height: 55px; /* Center text vertically */
    text-decoration: none; /* Remove underline */
}

.nav-button:hover {
    background-color: white;
    color: #ed9de9;
}

.reload-button {
    height: 55px;
    width: 55px;
    background-color: #ed9de9;
    border-radius: 50%;
    display: inline-block;
    margin: 0.5em;
    border: none; /* Remove border */
    color: white; /* Text color */
    font-size: 16px; /* Text size */
    line-height: 55px; /* Center text vertically */
    text-align: center; /* Center text horizontally */
    text-decoration: none; /* Remove underline */
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        background: #ed9de9;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        transform: translateY(-100%);
        transition: transform 0.3s;
        z-index: 1;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
    }

    .nav-button {
        width: 100%;
        margin: 0.5em 0;
    }

    .nav-menu {
        display: none; /* Hide the nav-menu by default on mobile */
    }

    .nav-toggle:checked ~ .nav-menu {
        display: flex; /* Show the nav-menu when checked */
    }
}


main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    text-align: center;
}

.birthday-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff5ee; /* Seashell color */
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2em;
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.birthday-message {
    text-align: center; /* Center align text */
    margin-bottom: 20px; /* Add space between the text box and the image */
}

.birthday-box {
    background-color: #fff;
    border: 6px solid #ff6347;
    font-family: 'Bubble Letters', sans-serif;
    border-radius: 35px;
    padding: 30px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
    position: relative; /* Add this to make it a positioning context for balloons */
}


/* Media query for smaller screens */
@media (max-width: 600px) {
    .birthday-box {
        max-width: 95%;
        font-size: clamp(1.0rem, 3vw, 1.6rem);
        padding: 5vw 4vw;
    }
}

/* Media query for larger screens */
@media (min-width: 1200px) {
    .birthday-box {
        max-width: 90%;
        font-size: clamp(1.6rem, 2.5vw, 2.8rem);
        padding: 2vw 3vw;
    }
}

.below-box {
    margin-top: 20px;
    text-align: center; /* Center align text */
}

.birthday-box h1 {
    margin: 0;
    color: #ff6347; /* Tomato color */
    font-size: 3em; /* Increase the font size */
    text-align: center; /* Center align text */
}

.birthday-box h1 span {
    display: inline-block;
    animation: wave 2s infinite;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

@media (max-width: 1200px) {
    .birthday-box h1 {
        font-size: 2.5em; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 992px) {
    .birthday-box h1 {
        font-size: 2em; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 768px) {
    .birthday-box h1 {
        font-size: 1.5em; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 576px) {
    .birthday-box h1 {
        font-size: 1.2em; /* Adjust font size for smaller screens */
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 90%, #fff5ee 80%);
    pointer-events: none;
    z-index: 1;
}

.birthday-image-container {
    position: relative;
    display: inline-block;
    max-width: 600px; /* Adjust as needed */
    width: 100%;
}

.birthday-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(255, 245, 238, 0.7); /* Light seashell color shadow */
}

.birthday-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle, transparent 30%, #fff5ee 60%);
    z-index: 1;
}

.birthday-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

.overlay-image {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    pointer-events: none;
    z-index: 3;
}

.birthday-message p {
    margin-top: 10px;
}

.birthday-button {
    background-color: #ff6347;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.birthday-button:hover {
    box-shadow: #422800 2px 2px 0 0;
    transform: translate(2px, 2px);
}

@media (min-width: 768px) {
    .birthday-button {
        min-width: 120px;
        padding: 0 25px;
    }
}

.additional-content {
    background-color: #fff5ee; /* Seashell color */
    font-family: 'Bubble Letters', sans-serif;
    color: #ff6347;
    padding: 2em;
    margin-top: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#gameCanvas {
    border: 8px solid; 
    border-image: linear-gradient(45deg, #FF69B4, #87CEFA) 1;
    display: block;
    margin: 0 auto;
    background-color: #fff5ee; /* Seashell color */
    width: calc(100% - 60px);
    max-width: 1200px;
    height: auto;
    box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    overflow: hidden; /* Hide overflowing content */
    border: 10px solid #ff6347; /* Tomato color border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    float: left; /* Align the slideshow to the left */
    margin-right: 20px; /* Add some space between the slideshow and the text box */
}

@media (max-width: 600px) {
    .slideshow-container {
      width: 100%;
      height: auto;
    }
  }

/* Slideshow images */
.mySlides {
    display: none; /* Hide all slides initially */
}

.mySlides img {
    width: 100%; /* Adjust width to fit the container */
    height: 100%; /* Adjust height to fit the container */
    display: block;
}

#passwordPrompt {
    text-align: center;
    margin-top: 50px;
}

#protectedContent {
    display: none;
}

/* Dot indicators */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active {
    background-color: #717171;
}

/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Centering the dots */
.dot-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9; /* Same background color as body */
}

/* Text box */
.text-box {
    /* width: calc(100% - 700px); Adjust width to fit beside the slideshow */
    height: 650px; /* Match height with the slideshow */
    background-color: #fff5ee; /* Seashell color */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    float: left; /* Align the text box to the left */
    padding: 20px; /* Add padding inside the text box */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    position: relative; /* To position the GIF inside */
}

/* Birthday shark GIF */
.birthday-shark {
    position: absolute;
    bottom: 10px;
    width: 150px; /* Adjust size as needed */
    height: auto;
    animation: moveShark 5s linear infinite;
}

/* Hearts GIF */
.hearts-gif {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px; /* Double the size */
    height: auto;
}

/* Taffy GIF */
.taffy-gif {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
}

@keyframes moveShark {
    0% { left: 0; }
    50% { left: calc(100% - 150px); }
    100% { left: 0; }
}

footer {
    background-color: #333;
    color: white;
    padding: 1em;
    text-align: center;
    width: 100%;
    margin-top: auto; /* Push the footer to the bottom of the page */
}

