*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #111;
    font-family: Roboto, "Noto Sans Arabic", Arial, sans-serif;
    font-size: 16px;
}

a {
    color: rgb(0, 120, 0);
}

.preview-about-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    margin: 0 auto;
    padding: 1em 1.25em;
    width: 100%;
    font-size: 1.125rem;
    line-height: 1.5;
}

#clock {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-top: 0;
    width: 100%;
}

#clock > * {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    max-width: 100%;
}

.clock {
    overflow: hidden;
}

.clock > iframe {
    width: 100%;
    aspect-ratio: 1.77 / 1;
    display: block;
    border: 0;
}

#gallery {
    width: 100%;
    aspect-ratio: 16 / 9.04;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    display: none;
    width: 100%;
    height: 100%;
}

.gallery-image.current {
    display: block;
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-image .caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0.5em;
    color: rgb(0, 120, 0);
    background: rgba(255, 255, 255, 0.85);
}

.gallery-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.gallery-controls .prev,
.gallery-controls .next {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translate(0, -50%);
    cursor: pointer;
}

.gallery-controls .prev { left: 0; }
.gallery-controls .next { right: 0; }

.gallery-controls .prev img,
.gallery-controls .next img {
    display: block;
    width: 100%;
    height: 100%;
}

.about {
    margin-top: 1.25em;
}

.about h1,
.about b {
    color: rgb(0, 120, 0);
}

#about-todo {
    background-color: rgb(0, 120, 0);
    color: #fff;
    padding: 1em;
    font-size: 1.0625em;
}

#about-todo > p:last-of-type {
    margin-bottom: 0;
}

.about p {
    margin: 0 0 1em;
}

.embed-container {
    position: relative;
    padding-bottom: 56.5%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#trio {
    margin-top: 1.25em;
}

#trio .embed-container {
    padding-bottom: 18.95%;
}

.deafcity-marker {
    background: rgb(0, 120, 0);
    border-radius: 15px;
    height: 15px;
    position: relative;
    width: 15px;
}
.deafcity-marker::before {
    animation: sign-language-map-blink 1s infinite ease-out;
    border-radius: 90px;
    box-shadow: inset 0 0 0 1px rgb(0, 120, 0);
    content: '';
    height: 15px;
    left: 50%;
    opacity: 1;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
}
@keyframes sign-language-map-blink {
    100% {
        height: 45px;
        opacity: 0;
        width: 45px;
    }
}

#sign-language-map {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    grid-template-rows: minmax(28rem, auto) auto;
    gap: 0;
    margin-top: 1.25em;
    border: 1px solid #111;
    min-height: 28rem;
}
#sign-language-map-filter {
    grid-column: 1;
    grid-row: 1;
    background: #fff;
    color: #111;
    padding: 1rem 1rem 1.25rem;
    overflow: auto;
    border-right: 1px solid #ddd;
}
.sign-language-map-filter-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.85rem;
    color: rgb(0, 120, 0);
}
.sign-language-map-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}
.sign-language-map-filter-item label {
    display: grid;
    grid-template-columns: 1.5rem 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.35rem;
    margin: 0 -0.35rem;
    border-top: 1px solid #e8e8e8;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.08s;
}
.sign-language-map-filter-item label:hover {
    background: #e8f5e9;
}
.sign-language-map-filter-item .map-filter-checkbox {
    accent-color: rgb(0, 120, 0);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}
.sign-language-map-filter-icon img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.sign-language-map-filter-icon .deafcity-marker {
    display: inline-block;
    vertical-align: middle;
}
#sign-language-map #map-filter-dummy {
    display: none !important;
}
#sign-language-map-canvas {
    grid-column: 2;
    grid-row: 1;
    min-height: 28rem;
    height: 70vh;
}
.sign-language-map-attribution {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border-top: 1px solid #ddd;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #555;
    background: #fafafa;
}
.sign-language-map-attribution a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

#credits {
    margin-top: 1.25em;
    font-size: 90%;
}

#credits .credits-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em 1.5em;
}

#credits .credits-logos img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

#credits img.logos {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 720px) {
    #clock {
        flex-direction: column;
    }

    #clock > * {
        flex: 1 1 auto;
        width: 100%;
    }

    .gallery-controls .prev,
    .gallery-controls .next {
        width: 25px;
        height: 25px;
    }

    .gallery-image .caption {
        padding: 0.35em 0.5em;
        font-size: 0.875rem;
        line-height: 1.3;
    }

    #sign-language-map {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    #sign-language-map-filter {
        grid-column: 1;
        grid-row: 1;
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }
    #sign-language-map-canvas {
        grid-column: 1;
        grid-row: 2;
        height: 50vh;
        min-height: 18rem;
    }
    .sign-language-map-attribution {
        grid-column: 1;
        grid-row: 3;
    }
}
