* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #121212;
    color: #eeeeee;
    min-height: 100dvh;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0.625rem 1rem 0 1rem;
}

header h1 {
    margin: 0;
    text-align: center;
}

header a {
    position: absolute;
    cursor: pointer;
    left: 0;
    line-height: 0;
}

header a object {
    pointer-events: none;
    width: 1.5rem;
    height: 1.5rem;
}

.pagination-controls {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.375rem;
    position: sticky;
    top: 0;
    background-color: #121212;
}

.pagination-controls .day-button {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    background-color: #222222;
    color: #eeeeee;
    border: none;
    padding: 1rem 0;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    transition: background-color 0.3s;
}

.pagination-controls .day-button.active {
    background-color: #313131;
    cursor: default;
}

.pagination-controls .day-button:hover:not(.active) {
    background-color: #2a2a2a;
}

.day {
    display: none;
}

.day.active {
    display: block;
}

.day-of-the-week {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 0.375rem 0.375rem;
    min-height: 4rem;
    background-color: #191919;
    border-radius: 10px;
}

.day-of-the-week span {
    font-weight: 600;
}

.lesson-hour {
    display: flex;
    align-items: center;
    min-height: 4rem;
    margin: 0.375rem 0.375rem;
    background-color: #191919;
    border-radius: 10px;
}

.lesson-hour:nth-child(even) {
    background-color: #222222;
}

.lesson-hour:nth-child(1) {
    margin-top: 0;
}

.lesson-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 4px;
    width: 6rem;
    text-align: center;
}

.lesson-info .lesson-number {
    font-weight: 700;
    font-size: 1rem;
}

.lesson-info .lesson-time {
    font-size: 14px;
}

.lessons {
    padding: 8px 20px;
    margin: 4px 0;
    min-height: 4rem;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.lesson-data {
    font-weight: 600;
}

.no-lessons {
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
}

@media screen and (min-width: 1270px) {
    .day-of-the-week {
        display: flex;
    }

    .pagination-controls {
        display: none;
    }

    .timetable {
        display: flex;
        margin-top: 1rem;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        justify-content: center;
    }

    .day {
        display: block;
    }
}
