@import url("https://fonts.googleapis.com/css2?family=Sanchez:ital@0;1&display=swap");

/* Shared site frame */

:root {
    --maincolor: rgb(73, 73, 73);
    --compcolor: rgb(127, 141, 144);
    --seccolor: rgb(237, 208, 173);
    --shadecolor: rgba(26, 26, 26, 0.25);

    --home-maincolor: rgb(50, 70, 65);
    --sort-maincolor: rgb(136, 74, 58);
    --plan-maincolor: rgb(59, 44, 61);
}

body {
    align-items: center;
    background-color: var(--home-maincolor);
    color: var(--seccolor);
    display: flex;
    font-family: "Sanchez", Arial, sans-serif;
    font-size: 18px;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    text-align: center;
}

body.home,
body.homepage {
    background-color: var(--home-maincolor);
}

body.sortification {
    background-color: var(--sort-maincolor);
}

body.plantime {
    background-color: var(--plan-maincolor);
}

.container {
    display: grid;
    gap: 20px;
    grid-template-columns: 400px 1fr;
    grid-template-rows: auto auto 1fr;
    height: 96vh;
    width: 96vw;
}

.box {
    background-color: var(--maincolor);
    border: 5px solid var(--seccolor);
    border-radius: 1.5px;
    box-shadow:
        10px 10px 0 var(--shadecolor),
        0 0 10px 5px inset var(--shadecolor);
    margin: 0;
    overflow: auto;
    padding: 15px 25px;
    position: relative;
}

.top-left {
    align-items: center;
    display: flex;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-content: center;
}

.top-right {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.bottom-left {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.bottom-right {
    display: flex;
    flex-direction: column;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.homepagebox {
    grid-column: span 2;
}

h1,
h2,
h3 {
    margin: 0;
}

hr {
    border: 0;
    border-top: 5px solid var(--seccolor);
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li ul {
    padding-left: 20px;
}

a {
    color: var(--seccolor);
    text-decoration: none;
}

.sitetitle {
    transition: 0.25s;
}

.sitetitle:hover {
    scale: 0.9;
    transition: 0.25s;
}

button {
    background-color: var(--compcolor);
    border: 0;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
    color: var(--seccolor);
    cursor: pointer;
    font-family: "Sanchez", Arial, sans-serif;
    margin: 15px;
    outline: 0;
    padding: 10px 15%;
}

button:hover {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3) inset;
    cursor: pointer;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
    text-shadow: 0 3px 0 var(--seccolor);
}

button:active {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.6) inset;
    cursor: pointer;
    -webkit-text-fill-color: rgba(255, 255, 255, 0);
    text-shadow: 0 3px 0 var(--seccolor);
}

@media screen and (max-width: 960px) {
    body {
        align-items: flex-start;
        box-sizing: border-box;
        padding: 20px;
    }

    .container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        margin: 0;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .box {
        box-sizing: border-box;
        width: 100%;
    }

    .top-left,
    .top-right,
    .bottom-left,
    .bottom-right {
        grid-column: auto;
        grid-row: auto;
    }
}
