@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");

body {
    margin: 0;
    width: 100%;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.btn {
    all: unset;
    cursor: pointer;
    background-color: rgb(240, 240, 240);
    text-align: center;
    border-radius: 13px;
    user-select: none;
    transition: background-color 0.4s;
}

.btn:focus {
    outline: rgb(200, 200, 200) 5px auto;
}

.btn:hover {
    background-color: rgb(200, 200, 200);
}

.app {
    display: flex;
    height: 100vh;
}

.start-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.start-page-title {
    padding: 50px;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
}

.start-page-group {
    padding: 25px;
}

#group-selector {
    font-size: 17px;
}

.start-page-full-name {
    padding: 35px;
}

#full_name_input {
    width: 310px;
    font-size: 17px;
    text-transform: capitalize;
}

.start-page-ready-button {
    padding: 20px 0;
    margin: 25px 0;
    width: 200px;
}

.tabs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30vw;
    min-width: 150px;
}

.tabs * {
    padding: 20px 0;
    margin: 15px 0;
    width: 70%;
}

.tabs > .active {
    background-color: rgb(200, 200, 200);
}

.tabs *:hover {
    background-color: rgb(200, 200, 200);
}

.content {
    display: flex;
    width: 100%;
}

.timetable {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.calendar {
    padding: 5%;
}

.calendar > .form-control {
    width: 98%;
}

.shortcut-buttons-flatpickr-wrapper {
    display: flex;
    justify-content: center;
}

.lessons-list {
    justify-content: center;
}

.lessons-list * {
    height: 100%;
    display: flex;
    align-items: center;
    width: max-content;
    padding: 5px 0;
}

.time {
    display: flex;
    flex-direction: column;
    padding: 15px 50px;
}

.start-time,
.time-divider,
.end-time {
    padding: 1px 0;
    text-align: center;
}

.about-subject {
    display: flex;
    padding: 10px;
    width: max-content;
    flex-direction: column;
}

.about-subject * {
    padding: 8px;
}

.subject-name {
    flex-basis: min-content;
    font-weight: bold;
    align-self: start;
}

.subject-type-and-teacher {
    display: flex;
    padding: 0;
    align-self: start;
    width: 100%;
    font-size: 14px;
}

.subject-type {
    min-width: 120px;

}

.address-or-distance {
    align-self: start;
    font-size: 14px;
}

.grade {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.semester-list-wrapper {
    padding: 5% 0 5% 5%;
}

.semester-list {
    font-size: 17px;
}

.grade-list {
    padding: 5%;
    width: 100%;
}

.grade-card {
    display: flex;
    padding: 15px 10px;
    align-items: center;
    justify-content: space-between;
}

.grade-subject-title {
    font-weight: bold;
    padding: 10px 30px;
}

.grade-date {
    font-size: 14px;
    padding: 10px 30px;
    margin-left: auto;
}

.grade-mark {
    padding: 10px 30px;
    max-width: 80px;
    min-width: 80px;
}

.grade-mark.five-or-credited {
    color: rgb(94, 156, 32);
}

.grade-mark.four {
    color: rgb(230, 194, 18);
}

.grade-mark.three {
    color: rgb(238, 137, 37);
}

.grade-mark.two-or-uncredited {
    color: rgb(238, 34, 3);
}

.settings {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 10%;
}

.reset-button {
    padding: 20px 0;
    margin: 15px 0;
    width: 90%;
}

/* mobile */

@media (max-width: 480px) {
    .tabs {
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
    }

    .tabs * {
        min-width: initial;
        border-radius: 0;
        width: 100%;
        margin: 0;
    }

    .content {
        width: 100%;
        justify-content: center;
    }

    .timetable {
        flex-direction: column;
    }

    .lessons-list {
        width: 80%;
    }

    .lessons-list > div {
        height: unset;
        width: 100%;
        margin: 2px 5px;
    }

    .time {
        padding: 10px 2px;
    }

    .about-subject {
        height: unset; 
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .about-subject * {
        padding: 6px 8px;
    }

    .subject-name {
        max-width: 70%;
    }

    .grade {
        flex-direction: column;
        justify-content: unset;
    }

    .semester-list-wrapper {
        margin-top: 10%;
    }

    .settings {
        padding-left: 0;
    }

    .settings-list {
        display: flex;
        justify-content: center;
    }
}