/* Container and general layout */
.default-container {
    justify-content: space-around;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    height: auto;

}

/* Horizontal greetings section */
.horizontal-greetings {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin: 20px 0;
}

/* Card styles */
.small-image-card {
    padding: 10px;
    border-radius: 50px;
    background-color: rgba(241, 241, 241, 0.7);
    position: relative;
    min-height: 400px;
    flex: 1;
    z-index: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .small-image-card:hover {
        background-color: rgba(241, 241, 241, 0.9);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transform: scale(0.98);
        padding: 5px;
        border-radius: 45px;
    }

    .small-image-card:hover .small-image-card-content {
        border-radius: 40px;
    }

    .small-image-card:hover .small-image {
        border-radius: 40px;
    }
}

.small-image-card.horizontal {
    flex: 2;
}

.small-image-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    margin: auto;
    isolation: isolate;
    transition: width 0.3s ease, height 0.3s ease, max-width 0.3s ease,
    max-height 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}


.small-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 40px;
    transform: translateZ(0);
    backface-visibility: hidden;
    clip-path: inset(0 round 40px);
}

/* Text blocks */
.image-card-text-block {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.bottom-container {
    position: absolute;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 5;
    margin: 20px;
}

.card-text {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

.card-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}


/* Featured blocks */
.greetings-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
    height: calc(100% - 20px);
    padding: 10px;
}

.featured-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 5;
    gap: 10px;
}

.featured-block {
    border-radius: 25px;
    background: rgba(241, 241, 241, 0.70);
    z-index: 5;
    flex: 1;
    padding: 10px;
    pointer-events: none;
    transition: background 0.3s ease;
}

.small-image-card:hover .featured-block,
.small-image-card:hover .standard-button {
    background: rgba(241, 241, 241, 0.50);
}

.featured-block p {
    text-align: center;
    margin: 10px 5px;
    font-weight: 500;
}

.info-greetings-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 5;
    margin-top: 15px;
}

/* Button styles */
.standard-button {
    background: rgba(241, 241, 241, 0.7);
    border-radius: 25px;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.standard-button:hover {
    background: rgba(241, 241, 241, 0.9);
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .default-container {
        width: 95%;
        max-height: none;
        margin: 50px auto;
    }

    .horizontal-greetings {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .small-image-card-content {
        margin: 0;
        flex: 1;
    }

    .horizontal-greetings .small-image-card-content {
        height: calc(100% - 20px);

    }

    .small-image-card {
        min-height: 300px;
        max-height: 450px;
        height: calc(100% - 20px);
        width: auto;
        aspect-ratio: 3/4;
    }

    .small-image-card.horizontal {
        height: calc(100% - 20px);
        width: auto;
        min-height: 350px;
    }

    .featured-container {
        flex-wrap: wrap;
    }

    .featured-block {
        min-width: 100px;
        padding: 5px;
    }

    .info-greetings-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-greetings-block .card-text {
        font-size: 22px;
    }

    .info-greetings-block .standard-button {
        align-self: flex-start;
    }

    .card-text {
        font-size: 24px;
        line-height: 1.2;
    }

    .card-description {
        font-size: 16px;
        line-height: 1.3;
    }
}

/* Larger mobile view */
@media (min-width: 480px) and (max-width: 768px) {
    .featured-container {
        flex-direction: row;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .featured-container {
        flex-direction: column;
    }

    .featured-block {
        width: 90%;
    }

    .small-image-card {
        min-height: 250px;
    }

    .card-text {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
    }
}

/* Section 2 */
.subLabel {
    text-align: center;
}

/* Map section */
.info-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    border-radius: 50px;
    overflow: hidden;
    padding: 0;
    max-width: 1000px;
    margin: 20px 20px;
}

.info-image {
    max-width: 60vw;
    height: 100%;
    max-height: 70vh;
    flex: 1;
    z-index: 0;

}

.info-image img {
    object-fit: fill;

}

/* Text block styling */
.info-text {
    flex: 3;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: left;
    margin: auto 0;
    /*background: rgba(250, 250, 250, 0.7);*/
    background: rgba(250, 250, 250, 0.7);
    border-radius: 50px;
}

.info-text p {
    font-weight: 400;
    padding: 10px;
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.5px;
    text-align: center;
}

.image-card-text-block .subLabel {
    text-align: left;
}

@media (max-width: 500px) {
    .info-block {
        flex-direction: column;
        position: relative;
        justify-content: center;
        align-items: center;
    }

    .info-image {
        width: 100%;
        height: auto;
    }

    .info-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .info-block .links, .read-more {
        display: block;
        margin-top: 10px;
    }

    .window-optimize {
        background-size: contain;
    }
}

/* Section with dates */
.event-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 20px;
    width: 100vw;
    position: relative;
    margin: 0;

}

.horizontal-line {
    height: 2px;
    background-color: rgba(128, 128, 128, 0.30);
    margin: 0;
    border-radius: 1px;
    transform: translateY(-40px);
    position: sticky;
    top: 100px;
    width: 100%;
    z-index: -1;

}

.subLabel {
    font-size: 30px;
    padding: 0;
    pointer-events: none;
    width: auto;
}

.event-block {
    border-radius: 40px;
    border: 1px solid #FFF;
    background: rgba(241, 241, 241, 0.70);
    backdrop-filter: blur(7.5px);
    padding: 15px 25px;
    transition: background 0.3s ease;
    overflow: hidden;
}

.event-block-bg {
    border-radius: 50px;
    border: 1px solid #FFF;
    background: #B8DDFD;
    backdrop-filter: blur(7.5px);
    padding: 10px;
    transition: background 0.3s ease;
    margin: 10px 0;
}

.event-block-bg:hover {
    background: rgba(241, 241, 241, 0.90);
}

.event-block-bg:hover .event-block {
    background: rgba(var(--color-blue), 0.5);
}

.event-block-bg:hover .subLabel {
    color: white;
}

/* Dot-marker */

.dot-marker-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 0;
    margin: 20px 0 0 0;
    padding: 0;
    z-index: 2;
}

/* Card holder */
.card-holder {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-width: 250px;
    width: 40%;
    gap: 20px;
    margin: 20px 0;

}

/* horizontal scroll */

.event-container .small-image-card {
    width: 300px;
    margin-bottom: 20px;
}

/* Keep this structure */
.timeline-container {
    position: relative;
    max-width: 1600px;
    margin: 0;
    min-height: 400vh;
    width: 100%;
    overflow: clip;

}

/* Sticky label - keep outside the overflow container */
#timeline .subLabel.frosted-glass {
    position: sticky;
    top: 60px;
    z-index: 10;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    margin-bottom: 20px;
}

/* Wrapper for horizontal scroll content */
.horizontal-scroll-wrapper {
    position: sticky;
    width: 100%;
    top: 150px;
}

/* Horizontal container with absolute positioning */
.horizontal-scroll-container {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 0; /* Position at the top of clip container */
    left: 0;
    z-index: 5;
    margin-bottom: 100px;
}

/* ==== HOBBIES ==== */

.hobbies-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    margin: 30px 0;
    justify-items: center;
}

@media (max-width: 768px) {
    .hobbies-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .hobbies-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

.hobby-block {
    border-radius: 50px;
    background: rgba(241, 241, 241, 0.70);
    transition: background 0.3s ease;
    min-height: 150px;
    min-width: 100px;
    max-width: 300px;
    max-height: 450px;
    aspect-ratio: 280/180;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hobby-block-content {
    position: relative;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.hobby-text {
    position: absolute;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 1.8rem;
    z-index: 6;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.hobby-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 280/180;
    z-index: 2;
}

.hobby-image svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.hobby-block svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.3s ease;
}

.hobby-block svg path {
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .hobby-block:hover .hobby-block-content {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        margin: 5px;
        border-radius: 45px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }

    .hobby-block:hover .hobby-text {
        transform: scale(1.1);
    }

}

.hobby-block:hover .hobby-block-content {
    background: rgba(255, 255, 255, 0.2);
}

.hobby-block:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hobby-block:hover .to-yellow path {
    fill: rgba(var(--color-yellow-pastel), 1);
}

.hobby-block:hover .to-green path {
    fill: rgba(var(--color-green-pastel), 1);
}

.hobby-block:hover .to-mint path {
    fill: rgba(var(--color-mint-pastel), 1);
}

.hobby-block:hover .to-pink path {
    fill: rgba(var(--color-pink-pastel), 1);
}

.hobby-block:hover .to-blue path {
    fill: rgba(var(--color-blue-pastel), 1);
}

.hobby-block:hover .to-red path {
    fill: rgba(var(--color-red-pastel), 1);
}

