* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: whitesmoke;
    color: #222;
    text-align: center;
}

/* --- HEADER --- */

.field {
    position: relative;
    z-index: 2;
    height: 34px;
    width: 100%;
    top: 10px;
}

.selector {
    position: fixed;
    left: calc(50% - 225px);
    width: 450px;
    border-radius: 10px;
    border: none;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.button {
    height: 34px;
    width: 100%;
    font-size: 22px;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0);
}

#list:not(.active) {
    display: none;
}

#list button {
    text-align: left;
    padding-left: 10px;
    height: 30px;
    width: 100%;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
    margin: 0 auto;
    display: block;
    cursor: pointer;
}

#list button:hover {
    background-color: #f3f3f3;
}

#list button:last-child {
    border-radius: 0 0 10px 10px;
}

#list hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.25);
}

/* --- SIDE --- */

@media(min-width: 1350px) {
    .field {display: none;}
    .grid section {
        min-width: 200px;
    }
    .grid {
        margin-top: 20px;
    }
    .side {display: block;}
    body {
        display: flex;
        min-height: 100vh;
    }

    .grid {
        flex-grow: 1;
    }
}

aside {
    display: none;
    width: 200px;
    box-shadow: 5px 0 10px rgba(0, 0, 0, .1);
    background-color: rgb(248, 248, 248);
}

.side h3 {
    width: 100%;
    margin: 8px 0;
    font-size: 24px;
    min-height: 27px;
}

.list {
    padding: 0 10px;
}

.list button {
    background-color: rgba(0, 0, 0, var(--transparency));
    font-size: 18px;
    text-align: left;
    user-select: none;
    margin: 5px 0;
    padding: 3px 5px;
    border-radius: 5px;
    width: 100%;
    border: none;
    outline: none;
    display: block;
    cursor: pointer;
    transition: background-color .1s;
    --transparency: 0
}

.list button:hover {
    --transparency: .1;
}

.list button:Not(.active) {
    opacity: .7;
}

/* --- MAIN --- */

main {
    margin: 24px auto 0;
    padding: 0 20px;
    max-width: 1350px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

main section {
    min-width: 240px;
}

main h2 {
    color: #2a2a2a;
    font-size: 22px;
}

main h2.active {
    text-decoration: underline #0084ff;
}


.block {
    margin: 20px auto;
    width: 160px;
    padding: 12px 16px;
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.08s, box-shadow 0.08s;
}
    
.block:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.block.active {
    outline: 1px solid #0084ff;
}

.block * {
    display: inline-block;
}

.block br {
    user-select: none;
}

.title {
    font-size: 18px;
    color: #383838;
    font-weight: 600;
    text-align: left;
    width: 95%;
}

.index {
    font-size: 16px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.1);
    text-align: right;
    width: 5%;
    position: relative;
    top: -6px;
    left: 5px;
    user-select: none;
}

.cab {
    margin-top: 6px;
    text-align: left;
    color: rgba(0, 0, 0, 0.6);
    width: 60%;
}

.time {
    margin-top: 6px;
    text-align: right;
    color: rgba(0, 0, 0, 0.4);
    width: 40%;
}