#main {
    position: relative;
    display: flex;
    background: gray;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100svw;
    height: 100svh;

    background-color: var(--background);

    .dec { /* The corner decorations those... corner things at the corners idk */
        position: absolute;
        width: calc(100% - 3vmax);
        height: calc(100% - 3vmax);
        pointer-events: none;

        img {
            position: absolute;
            width: 2vmax;
            aspect-ratio: 1/1;

            &:nth-child(1) {
                top: 0;
                left: 0;
            }
            &:nth-child(2) {
                top: 0;
                right: 0;
                rotate: 90deg;
            }
            &:nth-child(3) {
                bottom: 0;
                left: 0;
                rotate: 270deg;
            }
            &:nth-child(4) {
                bottom: 0;
                right: 0;
                rotate: 180deg;
            }
        }
    }
}
.thing {
    position: absolute;
    text-align: center;
    width: 100%;
    top: calc(100% + 15px);
}


#grid { /* This is the main part. its basically in general whats both in desktop and mobile */
    position: relative;
    background: transparent;

    .cardBig {
        background: var(--background2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
        }
    }
    .cardsmall {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;

        h2 {
            opacity: 0.8;
        }

        h3 {
            font-weight: bold;
        }
    }
    .cardmedium {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;

        .button {
            display: flex;
            background: var(--background2);
            flex-direction: row;
            align-items: center;
            justify-content: center;
            flex: 1;
            width: 100%;

            &:hover {
                translate: 0 -0.25vmax;
                box-shadow: 0px 0.25vmax 0px 0px rgba(0, 0, 0, 0.2);
            }

            .image {
                aspect-ratio: 1/1;

                img {
                    width: 100%;
                    aspect-ratio: 1/1;
                }
            }

            h3 {
                font-weight: bold;
            }
        }
    }
}

#grid.desktop { /* This is desktop specific */
    height: 50svh;
    aspect-ratio: 2/1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;

    .cardBig {
        grid-row: 1 / span 3;
        height: 100%;
        aspect-ratio: 1/1;
        justify-self: end;
    }

    .cardsmall {
        h3 {
            font-size: 2vmax;
        }
        h2 {
            font-size: 1.5vmax; 
        }
    }

    .cardmedium {
        grid-row: span 2;
        gap: 10px;

        .button {
            gap: 10px;

            .image {
                width: 3vmax;
            }

            h3 { 
                font-size: 1.5vmax;
            }
        }
    }
}

#grid.mobile { /* This is mobile specific */
    max-height: 80svh;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;

    .cardBig {
        height: 20vmax;
        aspect-ratio: 1/1;
    }

    .cardsmall {
        h3 {
            font-size: 3.5vmax;
        }

        h2 {
            font-size: 3vmax;
        }
    }
    .cardmedium {
        width: 100%;
        gap: 1vmax;

        .button {
            gap: 1vmax;

            .image {
                width: 3vmax;
            }

            h3 {
                font-size: 2vmax;
                margin: 2vmax 0;
            }
        }
    }
}
.watermark {
    position: absolute;
    opacity: 0.5;
    bottom: 1vmax;
    padding: 10px;
    text-decoration: none;
    color: var(--text);
}