@import url('https://fonts.googleapis.com/css2?family=Licorice&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


html {
    height: 100%;
}

body {
    margin: 0;
    width: 99vw;
    overflow-y: auto;
    background-image: url('../flower_pattern.svg');
    background-repeat: repeat;
    background-size: 600px 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px; /* Add some top padding */
}

.center-square {
    background-color: #fff8dd;
    width: 34vh;
    height: 34vh;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.flower-image-up {
    position: absolute;
    width: 72%; /* Adjust as needed */
    height: auto;
    bottom: 71%; /* Adjust to make it appear from behind the white square */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.flower-image-down {
    position: absolute;
    width: 72%; /* Adjust as needed */
    height: auto;
    top: 71%; /* Adjust to make it appear from behind the white square */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.inner-square {
    background-color: #FFFFFF;
    width: 23vh;
    height: 23vh;
    border-radius: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Licorice', cursive;
    font-size: 5.4vh; /* Adjust font size as needed */
}

.saveit {
    padding: 1vh 0;
    line-height: 1;
}

.date-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em; /* Adjust as needed */
    color: #333; /* Darker color for readability */
    font-weight: 300;
}

.year-text {
    font-size: 0.9em;
    padding-top: 2px;
    padding-bottom: 0.5vh;
}


.month-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.6em; /* Even smaller */
    line-height: 1em; /* Compact line height */
    color: #333;
    white-space: nowrap;
}

.invite-text {
    font-size: 0.22em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 250;
    padding: 0.2rem 0;
}

.names-text {
    font-family: 'Licorice', cursive;
    font-size: clamp(5rem, 18vw, 9em); /* Adjust size as needed */
    color: #333; /* Or a color that fits the design */
    margin-bottom: 20px; /* Space between names and yellow box */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.87) 40%, rgba(255, 255, 255, 0.2) 100%);
    padding: 10px 34px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners for the background */
}

.info-box {
    background-color: #FFFFFF;
    margin-top: 7vh;
    margin-bottom: 1vh;
    border: 2px solid #88925e;
    width: 40vh;
    border-radius: 20px;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    gap: 12px;
    font-size: 0.8em;
}


#important-info {
    font-size: 1.105em;
}

.schedule-table {
    border-spacing: 18px 5px;
}

.schedule-table td:first-child {
        text-align: right;
    }

#dresscode {
    margin-top: 0.5em;
    margin-bottom: auto;
    font-size: 1.18em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.textsplit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 20px;
    background-color: #fff8dd;
}

.textsplit p {
    margin: 5px 0;
}

.textsplit .split-box-l {
    display: none;
}

.textsplit .split-box-r {
    padding: 5px;
    text-align: left;
    grid-column: 2;
}

.textsplit .split-icon {
    text-align: center;
    padding: 10px;
    grid-column: 1;
}

#hotel-line {
    margin-top: 0.5em;
    font-size: 1.18em;
}

.hotel-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    width: 98%;
}

.hotel-icon {
    height: 2.2em;
}

.hotel-entry > * {
    flex: none;
}


@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
    .center-square {
        width: min(51vh, 99vw);
        height: 51vh;
    }

    .inner-square {
        width: 34.5vh;
        height: 34.5vh;
        font-size: 7.05vh;
    }

    .info-box {
        width: min(51vh, 99vw);
        font-size: 0.7em;
    }
    
    #important-info {
        font-size: 1.18em;
    }
}

@media (min-resolution: 2dppx) and (orientation: portrait), (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
    body {
        width: 100vw;
    }
    .names-text {
        font-size: 9.5em;
    }
    .info-box {
        width: min(51vh, 99vw);
        font-size: 1.5em;
    }
    #important-info {
        font-size: 1.16em;
    }
    #hotel-line {
        font-size: 1.16em;
    }
    .hotel-entry {
        gap: 12px
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .center-square {
        width: 42vw;
        height: 42vw;
    }

    .flower-image-up {
        bottom: 73%;
    }

    .flower-image-down {
        top: 74%;
    }

    .inner-square {
        width: 31vw;
        height: 31vw;
        display: flex;
        font-size: 13.7vh;
    }
    
    .names-text {
        font-size: 7em;
    }
    
    .info-box {
        width: 42vw;
        font-size: 2.9vh;
    }
}