body {
    font-family: 'Roller Bubble', sans-serif; /* Updated font-family */
    text-align: center;
    overflow-x: hidden;
}

header {
    /*background-color: #f2c0c0;*/
    padding: 20px;
}


h1#suu {
    font-size: 60px;
    letter-spacing: 6px;
    margin-top: 0; /* Reset the top margin */
}

p {
    font-size: 24px;
    margin-top: -30px; /* Adjust the margin to move the paragraph up */
}



h1 {
    color: white;
    font-size: 60px;
    font-family: 'Roller Bubble', sans-serif;
    letter-spacing: 6px; /* Adjust the value to your desired letter spacing */
}

main {
    padding: 20px;
    position: absolute;
    top: 1%;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 20%;
}

#access-section {
    padding: 20px;
    position: absolute;
    top: 1%;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 20%;
}

section {
    margin-bottom: 30px;
}

h2 {
    color:pink;
    font-size: 24px;
    margin-top: 25px;
}

#countdown-container {
    position: relative;
    height: 100%;
}

#countdown {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    margin-top: 20px; /* Adjust this value to control the vertical spacing */
    font-size: 24px;
    color: pink;
    font-family: 'Roller Bubble', sans-serif; /* Updated font-family */
}

#countdown-timer {
    font-size: 26px;
    color: pink;
}


.romantic-text {
    font-size: 28px;
    color: red;
    font-weight: bold;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    margin-top: 25px; /* Adjust the margin-top as needed for the upper margin */
    margin-bottom: 10px; /* Adjust the margin-bottom as needed for the lower margin */
    line-height: 25px; /* Set line-height to match the font-size */
}

#message p {
    margin-top: 5px;
    font-size: 24px;
    /*font-family: 'Roller Bubble', sans-serif;*/
    color: pink;
    line-height: 1.5;
    letter-spacing: 2px
}


/* Style for the modal dialog */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    position: absolute;
}


.modal-content {
    background: #ffffff80;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#access-section {
    position: fixed;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 30%; /* 30% of viewport width */
    height: 30%; /* 30% of viewport height */
}

/* Remove margin from the <p> element */
#access-section p {
    margin: 0;
}

#access-code-input {
    margin: 10px 0;
    padding: 5px;
    width: 100%; /* Adjust as needed */
}

#access-confirm {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#access-confirm:hover {
    background: #0056b3;
}



#imgTxt {
    position: absolute;
    display: table;
    vertical-align: middle;
    top: 20%;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 50%;
}

#Txt {
    display: inline-block;
    font-size: 17px;
    width: 100%;
    text-align: center;
    color: white;
}

#tmp {
    display: inline-block;
    font-size: 17px;
    width: 100%;
    text-align: center;
    color: white;
}

#imgTxt {
    position: absolute;
    display: table;
    vertical-align: middle;
    top: 20%;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 50%;
}

#typeDiv {
    position: absolute;
    top: 20%;
    left: 15px;
    right: 0;
    margin: auto;
    width: 100%;
    height: 10%;
    text-align: center;
    font-size: 24px;
    color: pink;
    font-family: 'Roller Bubble', sans-serif; /* Updated font-family */
    letter-spacing: 2px;
    line-height: 1.5;
}

#gift-container {
    position: absolute;
    top: 136%; /* Adjust the top position as needed */
    left: 45%; /* Position the gift container on the right side */
    width: 50%; /* Adjust the width to control the position */
    height: 10%;
    text-align: center;
    font-size: 12px;
    color: pink;
    font-family: 'Roller Bubble', sans-serif;
}

#gift-button {
    /* Add styles for the button within the gift container */
    display: inline-block; /* Display the button on the right side */
    text-align: right; /* Align text to the right within the button */
}

#gift-text p {
    font-size: 12px; /* Set your desired font size */
    margin-top: 15px;
}

#gift-text {
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
    text-align: center;
}


/* Define your base styles here for larger screens */

/* Media Query for screens up to 768px wide (typical mobile screens) */
@media only screen and (max-width: 768px) {
    /* Adjustments for smaller screens */
    body{
        font-size:8px;
    }
    main {
        height: auto;
    }

    #countdown {
        top: 10%;
    }

    #countdown-timer {
        font-size: 8px;
    }

    #message p {
        font-size: 12px; 
        font-family: initial;
    }

    #access-section {
        position: fixed;
        top: 40%;
        left: 40%;
        width: 30%;
        max-width: 100%; /* Set a maximum width to ensure it doesn't exceed the screen width */
    }
    

    .modal-content {
        background: #ffffff80;
        padding: 10px; /* Adjust padding as needed */
    }

    p {
        font-size: 16px;
    }

    input {
        width: 100%; /* Ensure the input box takes the full width of the parent container */
        padding: 8px; /* Adjust padding as needed */
    }

    button {
        padding: 10px 16px; /* Adjust padding as needed */
    }

    header {
        padding: 10px; /* Adjust padding as needed */
    }

    h1 {
        font-size: 40px; /* Adjust font size as needed */
    }
    #message {
        margin-top: 180px; /* Increase the margin-top to move the section lower */
    }
    #countdown-container {
        margin-top: 105px; /* Increase the margin-top to move the section lower */
    }
    #countdown-timer {
        font-size: 24px; /* Increase the font size for mobile screens */
    }
    a {
        font-size: 20px !important; /* Decrease the font size for mobile screens */
    }


    .modal-content {
        background: #ffffff80;
        padding: 10px; /* Adjust padding as needed */
    }

    p {
        font-size: 16px;
    }

    input {
        width: 100%; /* Ensure the input box takes the full width of the parent container */
        padding: 8px; /* Adjust padding as needed */
    }

    button {
        padding: 10px 16px; /* Adjust padding as needed */
    }

    #access-code-input {
        width: 80%; /* Set the input width to 100% to prevent overflowing */
        padding: 5px; /* Add some padding to the input element */
        font-size: 6.6px;
    }
    #gift-container {
        top: 50%;
        left: 70%; /* Adjust the left position for smaller screens if needed */
        width: 20%; /* Adjust the width for smaller screens */
    }

    #gift-button {
        display: block;
        text-align: center;
        width: 100%; /* Set to 100% to occupy the entire width */
        white-space: nowrap; /* Prevent text from wrapping */
        overflow: hidden; /* Hide overflow text */
        text-overflow: ellipsis; /* Add an ellipsis (...) for overflow text */
        height: 20%;
        line-height: 20%; /* Center text vertically within the button */
    }

    #gift-text p {
        font-size: 9px;
        margin-top: -5px; /* Adjust margin as needed */
    }

    #gift-text {
        display: block; /* Display the message text block */
        font-size: 7px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        text-align: center; /* Center the text horizontally */
    }
    /* Add any additional adjustments needed for smaller screens here */
}

