/* home */

.hero {
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("../img/cover.jpg");
    background-size: cover;
    width: 100%;
    height: 100%;
}

.hero__content {
    background-color: white;
    opacity: 90%;
    width: 100%;
}

.template-homepage .partner {
    padding: 10px
}

.template-homepage .partner__wrapper {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center
}

.template-homepage .partner__image {
    max-height: 100%;
    max-width: 100%
}

#photos-carousel .carousel-image {
    height: 600px;
    background-size: cover;
    background-position: center center;
}

/* registration */

.form-floating .ts-control {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.form-floating .ts-wrapper.form-control, .form-floating .ts-wrapper.form-select {
    height: 0 !important;
}

.ts-control input::placeholder {
    color: black;
    opacity: 1; /* Firefox */
}

/* partners */


.template-partnerspage .partner__wrapper {
    padding: 10px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center
}

.template-partnerspage .partner__image {
    max-height: 100%;
    max-width: 100%
}

/* Wagtail CSS overrides */

img.richtext-image.full-width {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: auto;
}

@media (max-width: 768px) {
    img.richtext-image.full-width {
        width: 100%;
        height: auto;
    }
}

.participant--volunteer td {
    background-color: #fedc95;
}

.participant--teacher td {
    background-color: #6fdc87;
}

/* YouTube */
iframe {
    width: 100%;
    height: 400px;
}

/* Schedule */
.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.schedule-hour {
    text-align: center;
    background-color: #DAF4FB;
    border: 1px solid #dee2e6;
}


.tile-link {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    background-size: cover;
}

.tile-link:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.tile {
    position: relative;
    background-size: cover;
    background-position: center;
    aspect-ratio: 3 / 1;
    color: white;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}
