body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

.panel {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

#one {
    background-color: rgb(184, 184, 224);
}

.bite-panel {
    background-color: rgb(184, 184, 224);
    display: flex;
    flex-direction: row;   
    justify-content: flex-start;
    align-items: center; /* Vertically aligns children in the middle */
    height: 100vh;
    width: 100vw;
    position: relative; /* Ensures proper positioning context */
}

.dedication-container {
    background-color: rgb(184, 184, 224);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.dedication-container .two-text-container {
    width: 60%;
    height: 100vh;
    display: flex;
    flex-direction: row; /* Ensures vertical stacking */
    justify-content: center;
    align-items: center; /* Align items to the left */
    padding-left: 10px;
}

.onboarding-form {
    width: 100%;
    margin-bottom: 20px; /* Space between form and dedication text */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.form-group input[type="date"] {
    font-family: Arial, Helvetica, sans-serif;
    -webkit-min-logical-width: calc(100% - 16px);
    color: black;
}

#onboarding-live {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    align-items: flex-start;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.dedication {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
}


.dedication-container .image-container {
    width: 40%;
    height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
    left: 0;
}

.dedication-container .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #888;
}

.onboarding-form button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin-top: 10px;
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.onboarding-form button:hover {
    background-color: #354ea1;
}

.bite-panel .image-container {
    width: 40%;
    height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
    left: 0;
}

.bite-panel .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-container {
    width: 60%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

.text-container h1, .text-container h2, .text-container h3, .text-container p {
    margin-top: 0;
}

.text-container h1 {
    font-size: 4em;
    margin-bottom: 0;
    padding-bottom: 0;
}

.text-container h2 {
    margin-top: 30px;
    font-size: 2em;
    text-align: center;
}

.text-container h3 {
    font-size: 1.5em;
    text-align: center;
}

#last-h3 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.text-container h4 {
    font-size: 1em;
    text-align: center;
}

.description {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 0;
}

.next-action {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    margin-top: 20px;
    padding-top: 0;
}

.next-action button {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 0px 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease-in-out;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    color: black;
}

.next-action button:hover, .next-action button:focus {
    background-color: #354ea1;
    border: none;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    color: black;
}

.input-container input[type="date"], .input-container #sunset, .input-container button, #sunset-0 {
    padding: 10px 20px;
    font-size: 1.2em;
    margin: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease-in-out;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
}

.input-container button {
    background-color: #4169e1;
    color: white;
    cursor: pointer;
    border-color: #4169e1;
    
}

.input-container button:hover, .input-container button:focus {
    background-color: #354ea1;
    border-color: #2a3b80;
}

.input-container input[type="date"]:hover, .input-container input[type="date"]:focus {
    border-color: #888;
}

#two {
    background-color: rgb(239, 199, 199);
}

#three {
    background-color: rgb(184, 184, 224);
}

.container {
    height: 100vh;
    width: 100vw;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

#sunset-0 {
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    padding-right: 10px;
    padding-left: 10px;
    margin: 0;
}

#loading-spinner {
    display: none;
    margin-top: 20px;
    text-align: center;
}

#dob {
    padding-right: 0;
}

.form-group input, .form-group select {
    padding: 10px;
}

@media (max-width: 1000px) {
    
    .text-container .description {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        display: flex;
        text-align: center;
    }

    .text-container .description .title-container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-top: -50px;
        text-align: center;
    }
    .text-container .description .title-container h1 {
        font-size: 2.25em;
        text-align: center;
    }

    .text-container .description h2 {
        font-size: 1.5em;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .text-container .description h3 {
        font-size: 1.2em;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .next-action {
        margin-top: 15px;
        width: 80%;
    }

    .next-action h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .next-action button {
        font-size: 1em;
        padding: 5px 10px;
    }

    #last-h3 {
        margin-bottom: 10px;
    }

    .input-container input[type="date"], .input-container #sunset, #sunset-0, .input-container button {
        padding: 5px 10px;
        font-size: 1em;
        margin: 5px;
    }

    .input-container input[type="date"] {
        color: black;
    }
}

@media (max-width: 768px) {
    .input-container input[type="date"] {
        color: black;
    }

    .bite-panel, .dedication-container {
        flex-direction: column;
        justify-content: center; /* Aligns children to the start */
    }

    .bite-panel .image-container, .dedication-container .image-container {
        width: 40%;
        margin-top: 20px;
        height: 40%;
    }

    .dedication-container .image-container {
        width: 30%;
        height: 30%;
    }
    .bite-panel .image-container img, .dedication-container .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .text-container {
        width: 80%;
    }
    .text-container .description {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        display: flex;
        text-align: center;
    }

    .text-container .description .title-container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        margin-top: -50px;
    }
    .text-container .description .title-container h1 {
        font-size: 2.25em;
    }

    .text-container .description h2 {
        font-size: 1.5em;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .text-container .description h3 {
        font-size: 1.2em;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .next-action {
        margin-top: 15px;
        width: 80%;
    }

    .next-action h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .next-action button {
        font-size: 1em;
        padding: 5px 10px;
    }

    #last-h3 {
        margin-bottom: 10px;
    }

    .input-container input[type="date"], .input-container #sunset, .input-container #sunset-0, .input-container button {
        padding: 5px 10px;
        font-size: 1em;
        margin: 5px;
    }
    .dedication-container .two-text-container {
        order: 2; /* Place the text below the image */
        width: 80%;
        text-align: center; /* Center align the text */
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Aligns children to the start */
        text-align: center; /* Center align the text */
    }
    .dedication-container .onboarding-form {
        order: 2; /* Place the form above the image */
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .dedication {
        order: 3; /* Place the dedication text below the image */
    }
    .form-group label {
        font-size: 1em;
        text-align: left;
    }
    .form-group input{
        padding: 5px;
    }
    .dedication-container .onboarding-form #onboarding-live button{
        align-self: center;
        margin-top: 0;
    }
}
@media (max-width: 600px) {
    .input-container input[type="date"] {
        color: black;
    }

    .bite-panel {
        flex-direction: column;
        justify-content: center; /* Aligns children to the start */
    }
    .input-container {
        flex-direction: column;
        justify-content: center; /* Aligns children to the start */
    }
    .input-container input[type="date"], .input-container #sunset, .input-container #sunset-0, .input-container button, .input-container select {
        width: 100%;
        box-sizing: border-box;
    }

    #birthday, #join {
        width: 100%;
    }

    
    .bite-panel .image-container {
        width: 35%;
        margin-top: 10px;
        height: 30%;
    }

    .bite-panel .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .next-action {
        margin-top: 15px;
        width: 100%;
    }
    .next-action button {
        width: 100%;
        font-size: 1em;
        padding: 10px 20px;
        box-sizing: border-box;
    }
}
@media (max-width: 425px) {
    .input-container input[type="date"] {
        -webkit-min-logical-width: calc(100% - 16px);
        color: black;
    }
    .bite-panel {
        flex-direction: column;
        justify-content: center; /* Aligns children to the start */
    }
    .bite-panel .image-container {
        width: 30%;
        margin-top: 10px;
        height: 25%;
    }

    .bite-panel .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
}

@media (max-height: 700px) {
    .input-container input[type="date"] {
        -webkit-min-logical-width: calc(100% - 16px);
        color: black;
    }
    .bite-panel .image-container {
        display: none;
    }

    .dedication-container .image-container {
        width: 30%;
        height: 30%;
        margin-bottom: -25px;
    }

    #first-p {
        margin-bottom: 0;
        margin-top: 5px;
    }

    #second-p {
        margin-top: 0;
    }
}