
* {
    box-sizing: border-box;
    margin: 0;
}

html, body {
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background-color: var(--background-color);
}
.link-text, a {
    color: var(--link-color);
}
.main-content {
    background-color: var(--center-color, transparent);
}

grid {
    display: grid;
}

.main-content {
    width: 65%;
    height: 100%;
}

.horizontal {
    display: grid;
    grid-auto-flow: column;
}

@media only screen and (max-width: 1400px) {
    .main-content {
        width: 100% !important;
        height: 100%;
    }
}

padbox {
    padding: 20px;
}

.relative {
    position: relative;

}

.top-text {
    position: absolute;
    left: 50%;
    top: 0;

    transform: translate(-50%, -50%);
}

.bold {
    font-weight: bolder;
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;

    gap: 5px;
}
.center-content-single {
    display: grid;
    justify-content: center;
    align-items: center;
}
.center-horizontally {
    display: grid;
    justify-content: center;
}

.span-grid {
    grid-column-start: 1;
    grid-column-end: 4;
    justify-self: center;
}

.button-box {
    cursor: pointer;
}
.button-box:hover {
    transform: scale(98%);
}
.button-box:hover * {
    transform: scale(104%);
}


/* Boxes */
.button-grid {
    --rows: 3;
    --rows-override: 3;

    width: 100%;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(min(var(--rows), var(--rows-override)), calc(80vw / (min(var(--rows), var(--rows-override)))));
    max-height: 82%;
    gap: 10px;
}

.top-content {
    height: 100px;
    top: 15px;
    width: 70%;

    display: grid;
    grid-auto-flow: column;
    
    grid-template-columns: 100px 2fr 100px;
}

@media only screen and (max-width: 1200px) {
    .button-grid {
        --rows-override: 2;
        max-height: 100%;
        grid-template-columns: repeat(min(var(--rows), var(--rows-override)), calc(90vw / (min(var(--rows), var(--rows-override)))));
    }
}

@media only screen and (max-width: 800px) {
    .button-grid {
        --rows-override: 1;
        max-height: 100%;
    }

    .PC-button {
        display: none;
    }
    .top-content {
        grid-template-columns: 1fr;
    }
    .mobile-images {
        height: 100px;
        position: absolute;
        top: 5px;
    }
}
@media only screen and (min-width: 800px) {
    .mobile-images {
        display: none;
    }
}

.test-box {
    height: 350px;
    width: 100%;
    max-height: 100%;

    border: 2px solid red;
}

/* Text */
h1, h2, h3, h4, h5, p, a {
    text-align: center;

    max-width: 100vw;

    font-weight: 400;
    font-style: normal;
    font-family: "Pangolin", cursive;

    color: var(--text-color, black)
}
h1, h2, h3, h4, h5 {
    font-family: "Rock Salt", cursive;
    font-weight: 700;
    line-height: 150%;
}
h1 {
    font-size: 2.3em;
}
h2 {
    font-size: 2em;
}


p, a {
    font-size: 1.25em;
    font-style: italic;
}

h1.main-title {
    font-size: 4em;
}
h2.main-title {
    font-size: 2em;
}