@font-face {
    font-family: 'Trebuchet MS';
    src: url('trebuc.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
         url('trebuc.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}  

html,
body {
    height: 100%;
    margin: 0;
    user-select: none;
}

body {
    background: linear-gradient(#2c9200b3, #9198e5);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Trebuchet MS", sans-serif;
}

footer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #ffffff;
    background-color: #04d171;
}

.bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 5rem;
    background-color: #262626;
}

#nav {
    display: flex;
    flex-wrap: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.b {
    background-color: #0475d1;
}

#time {
    margin-left: 20px;
    font-size: 24px;
}

#arr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-left: auto;
    font-size: 36px;
    font-weight: bold;
}

#alert {
    display: none;
    margin-left: auto;
    margin-right: auto;
    height: 2rem;
    line-height: 2rem;
    font-size: 18px;
    font-weight: bold;
}

#sch {
    display: grid;
    grid-gap: 10px;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 7.5rem;
    grid-template-columns: auto repeat(var(--cols), 1fr);
}

.grade {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

.num {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 5px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #ffffff;
    background-color: #262626;
    font-size: 1.15vw;
}

.label {
    font-size: 1.6vw;
    font-weight: bold;
}

.item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 10px;
    min-width: 0;
    overflow: hidden;
    background-color: #ffffff;
    font-size: 1.15vw;
}

.pass {
    background-color: #ffffff66;
}

.item div {
    max-width: 100%;
}

.item .label {
    text-align: center;
    margin: auto;
    padding: 5px;
    max-height: 50px;
}

.room {
    margin-left: auto;
}

.new {
    padding: 3px;
    border-radius: 5px;
    background-color: #0475d179;
}

.dist {
    padding: 3px;
    border-radius: 5px;
    background-color: #ffa60079;
}

.group {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(var(--cols), 1fr);
}

/* .group {
    font-size: 0.85vw;
} */

.group .label {
    font-size: 1.2vw;
}

.group .teacher {
    max-height: 20px;
}
