* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial";
}

:root {
    --white-color: #f8faf8;
    --accent-color: #009846;
    --accent-darker-color: #007637;

    --text-color: #1b201b;
    --muted-color: #5b655b;
    --bebebe-color: #bebebe;

    --lesson-height: 80px;
}

a:link {
  text-decoration: none;
  outline: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

select, button {
    text-decoration: none;
    outline: none;
    font-size: 100%;
    padding: 5px;
}

html, body {
    overflow-x: hidden;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.placeholder {
    flex: 1;
}

#menu {
    z-index: 1001;
    position: fixed;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
    width: 100%;
    padding: 30px;
}

#date {
    z-index: 666;
    display: none;
    position: sticky;
    top: 0;
    right: 0;
    padding: 30px 20px;
    background: var(--white-color);
}

#date_day {
    font-size: 230%;
    text-align: center;
}

#date_year {
    color: var(--muted-color);

}

#date_weekday {
    font-size: 250%;
    line-height: 30px;
    color: var(--accent-color);
}

#btn_search {
    display: none;
    z-index: 1001;
    position: fixed;
    top: 20px;
    right: 20px;
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
    font-size: 120%;
    border: none;
    padding: 15px;
    cursor: pointer;
    user-select: none;
    transition: scale 0.3s ease;
}

#btn_search::selection {
    background: var(--muted-color) !important;
}

input::-webkit-datetime-edit-day-field:focus,
input::-webkit-datetime-edit-month-field:focus,
input::-webkit-datetime-edit-year-field:focus {
    background-color: var(--bebebe-color)
}

/*#btn_search:hover {
    scale: 1.1;
}*/

#schedule_header {
    display: none;
}

#schedule {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

#schedule_list {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 4px;
}

.lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:30px;
    border-bottom: 1px solid var(--bebebe-color);
    overflow: hidden;
    height: 100px;
    padding: 30px;
    transition: background 0.5s ease;
}

.lesson:active {
    background: var(--bebebe-color);
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55px;
}

.time_start {
    font-size: 130%;
}

.time_end {
    font-size: 80%;
    color: var(--muted-color);
}

.separator {

    position: -webkit-sticky;

    font-size: 170%;
    padding: 30px;
    margin-top: 30px;
    color: var(--accent-color);
    background: var(--white-color);
}

.separator, .lesson {
    margin-left: 30px;
}

.no_lessons {
    font-size: 120%;
}

.selected {
    color: var(--accent-color);
}

.group {
    width: 130px;
    font-size: 120%;


}

.teacher {
    width: 200px;
}

@media (max-width: 640px) {

    #menu {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 16px;
    }

    #menu select,
    #menu button {
        flex: 1 1 auto;
        min-width: 0;
        padding: 8px 6px;
        font-size: 90%;
    }

    #date {
        position: static;
        top: var(--menu-h, 110px);
        padding: 16px;
    }

    #date_day {
        font-size: 190%;
    }

    #date_weekday {
        font-size: 190%;
        line-height: 1.2;
    }

    #schedule {
        margin: 6px;
    }

    .separator {
        padding: 16px;
        margin: 16px 0 0 16px;
        font-size: 140%;
    }

    .separator,
    .lesson {
        margin-left: 16px;
        margin-right: 16px;
    }

    .lesson {
        display: grid;
        grid-template-columns: 55px 1fr auto;
        grid-template-areas:
            "time discipline discipline"
            "time group location"
            "time teacher teacher";
        align-items: start;
        column-gap: 14px;
        row-gap: 6px;
        height: auto;
        padding: 14px 16px;
    }

    .lesson.no_lessons {
        display: block;
    }

    .lesson .time {
        grid-area: time;
        width: auto;
        align-self: center;
    }

    .discipline {
        grid-area: discipline;
        white-space: normal;
        word-break: break-word;
    }

    .lesson .placeholder {
        display: none;
    }

    .group {
        grid-area: group;
        width: auto;
        font-size: 95%;
        color: var(--muted-color);
    }

    .lesson .location {
        grid-area: location;
        width: auto;
        flex-direction: row;
        justify-self: end;
        gap: 6px;
        font-size: 95%;
        color: var(--muted-color);
    }

    .teacher {
        grid-area: teacher;
        width: auto;
        font-size: 95%;
        color: var(--muted-color);
        white-space: normal;
    }
}
