@font-face {
    font-family: 'dogica';
    src: url('./fonts/dogica-webfont.woff2') format('woff2'),
    url('./fonts/dogica-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'dogica';
    src: url('./fonts/dogicabold-webfont.woff2') format('woff2'),
    url('./fonts/dogicabold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

.preload {
    opacity: 0;
}

#active {
    opacity: 100%;
    transition-timing-function: ease-out;
    transition-duration: 0.5s;
}

#active-box {
    top: 50%;
    transition-timing-function: ease-out;
    transition-duration: 0.5s;
}

body {
    font-family: "dogica", sans-serif;
    background-color: #8774a1;
    line-height: 1.2;
}

#myVideo {
    position: fixed;
    right: 0;
    top: -20%;
    min-width: 100%;
    min-height: 100%;
    pointer-events: none;
    user-select: none;
}

.outline { /* old I just made it invis cuz I'm too lazy to remove */
    display: flex;
    border-radius: 20px;
    width: 390px;
    height: 540px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 400px) {
    .outline {
        transform: translate(-50%, -50%) scale(0.8);
        top: 52%;
        left: 50%;
        position: absolute;
        width: 390px;
        height: 540px;
        transform-origin: center center;
    }
}

.main-box {
    display: flex;
    flex-direction: column;
    border: 5px solid rgba(203, 194, 239, 1);
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.75);
    width: 380px;
    height: 525px;
    margin: auto;
}

.navbar {
    display: flex;
    list-style: none;
    padding: 15px 0;
    margin: 0 auto;
    gap: 15px;
    justify-content: center;
}

.navbar a {
    background-color: #EFC9DE;
    color: #6C5081;
    font-size: 7px;
    font-weight: 700;
    border-radius: 20px;
    padding: 8px 13px;
    box-shadow: 3px 3px #b495be;
    text-decoration: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    transition-duration: 0.1s;
}

.navbar a:hover {
    filter: brightness(85%);
    transition-duration: 0.1s;
}

.divider {
    background-color: #b495be;
    margin: 5px auto;
    border-radius: 3px;
    width: 300px;
    height: 3px;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(180, 149, 190, 0);
    border-radius: 100vw;
}

.desc:hover::-webkit-scrollbar-thumb {
    background: #b495be;
}

@-moz-document url-prefix() {
    .desc {
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    .desc:hover {
        scrollbar-color: #b495be transparent;
    }
}

.desc {
    display: flex;
    flex-direction: column;
    height: 406px;
    width: 320px;
    padding: 15px 15px 0;
    margin: 0 auto 15px;
    gap: 10px 15px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable both-edges;
}

@supports selector(:-moz-focusring) {
    .desc {
        width: 310px;
    }
}

.desc p {
    margin: 0;
    padding: 0;
    font-size: 10px;
    color: #6C5081;
}

.title {
    color: #6C5081;
    margin: 0 auto;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 2px;
}

.banner {
    margin: 0 auto;
    width: 300px;
}

#subtitle, .info {
    text-align: center;
}

#subtitle {
    font-size: 12px;
}

.gallery {
    display: grid;
    justify-content: center;
    grid-template-rows: repeat(7, 55px);
    grid-template-columns: repeat(6, 46px);
    gap: 5px;
}

.gallery-item-1 {
    grid-row: 1 / 4;
    grid-column: 1 / 4;
}

.gallery-item-2 {
    grid-row: 1 / 4;
    grid-column: 4 / 7;
}

.gallery-item-3 {
    grid-row: 4 / 6;
    grid-column: 1 / 3;
}

.gallery-item-4 {
    grid-row: 4 / 6;
    grid-column: 3 / 5;
}

.gallery-item-5 {
    grid-row: 4 / 6;
    grid-column: 5 / 7;
}

.gallery-item-6 {
    grid-row: 6 / 8;
    grid-column: 1 / 3;
}

.gallery-item-7 {
    grid-row: 6 / 8;
    grid-column: 3 / 5;
}

.gallery-item-8 {
    grid-row: 6 / 8;
    grid-column: 5 / 7;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    opacity: 0.7;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s linear;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 50vh;
    transform: scale(0.9);
    transition: transform 0.2s ease-in;
}

.modal-content.zoom {
    transform: scale(1);
    transition: transform 0.2s ease-out
}

.close {
    font-family: Calibri, sans-serif;
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 80%;
    }
}

.footer {
    display: flex;
    height: 10px;
    justify-content: center;
    align-items: center;
}

.footer p {
    color: #6C5081;
    opacity: 0.5;
    font-size: 8px;
}

.footer a {
    color: #a27ac1;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
