* {
    font-family: 'Dosis', sans-serif;
}

.background {
    position: fixed;
    right: 0;

    /* Height is in vh not dvh because dvh actually makes it weird on iOS */
    height: 100vh;
    max-height: 100vh; 

    z-index: -1;
    top: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-repeat: no-repeat;
    aspect-ratio: 549 / 778;
}

@media screen and (max-aspect-ratio: 549/778) {
    .background {
        right: 50%;
        translate: 50% 0;
    }
}

body {
    background-color: rgb(80, 80, 80);
    width: 100dvw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.index-container {
    display: grid;
    /* grid-template-columns: repeat(var(--items), calc(100dvw / var(--items))); */
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    grid-template-rows: 1fr;
    width: 80dvw;
    /* height: 60vh; */
    justify-self: left;
    justify-content: center;
    margin: 0;
    position: relative;
    left: 50%;
    translate: -50% 0;
}

@media screen and (max-width: 800px) {
    .index-container {
        grid-template-columns: 1fr;
        /* grid-template-rows: repeat(var(--items), calc(100vh / var(--items))); */
        grid-auto-rows: 1fr;
        grid-auto-flow: row;
        width: 90dvw;
        /* height: 100vh; */
    }
}

.big-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0;
    flex-grow: 1;
    z-index: 2000;
}

.big-item h2 {
    margin: 0;
    padding: 0;
    color: white;
}

.big-item {
    background-color: transparent;
    border: none;
    outline: none;
    max-width: 90%;
    max-height: 90%;
    justify-self: center;
    align-self: center;
    transition-duration: 1s;
    aspect-ratio: 1;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.big-item:hover {
    max-width: 100%;
    max-height: 100%;
}

.bottom-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100dvw;
    right: 0;
    /* translate: -50% 0; */
    text-align: center;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.1);
    font-size: 10px;
    z-index: 0;
    pointer-events: none;
    /* color: white; */
    text-decoration: none;
}

.extras-container {
    width: 100dvw;
    height: min-content;
    display: grid;
    grid-template-columns: 70%;
    grid-auto-rows: 1fr;
    margin: 0;
    padding: 0;
    justify-self: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    gap: 1vh;
}

.small-item {
    width: 100%;
    height: min-content;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(5vh, min-content) 1fr;
    grid-template-rows: min-content;
    background-color: var(--col);
    border: none;
    outline: none;
    transition-duration: 1s;
    cursor: pointer;
    /* aspect-ratio: 1; */
    justify-self: center;
    align-self: center;
    color: white;
    border-radius: .75rem;
    /* padding: .5rem 4rem; */
    padding: .7dvw 5dvw;
    gap: 1.5rem;
    opacity: 0.75;

    align-items: center;
    text-align: left;
}

.small-item:hover {
    opacity: 1;
}

.small-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin: 0;
    flex-grow: 1;
    z-index: 2000;
}

.small-item h2 {
    margin: 0;
    padding: 0;
    color: white;
}