@import url('colors.css');


.agenda-wrapper {
    height: var(--agendaHeight);
    width: var(--agendaWidth);
    overflow-y: scroll;
    overflow-x: hidden;

    padding-left: 5vw;
    padding-top: 20px;

    border-radius: 0 0 16px 16px;

    position: relative;

}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(7, calc((var(--agendaWidth) - 7vw) / 7));
    grid-template-rows: repeat(96, var(--quarter-hour-height));

    overflow-y: visible;
    overflow-x: visible;

    position: absolute;
    padding-left: 5vw;
    left: 0;
}

header {
    overflow: hidden;

    display: flex;
    justify-content: space-around;
}

.header-current-week {
    text-align: center;
    height: 1.5rem;
    line-height: 0;
}

.control-date {
    position: absolute;
    top: 0;
    left: 50%;

    transform: translateX(-50%);
    width: 30vw;
    margin-top: 10px;
}

.week-button-wrapper {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.this-week,
.change-week-button {
    height: 4vh;
    width: 20%;

    background: var(--call-to-action);

    border: none;

    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;

    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-week-button a {
    color: var(--text);
    text-decoration: none;

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

.this-week {
    width: 40%;
    border-radius: 10px;
}

.prev-week {
    border-radius: 16px 10px 10px 16px;
}

.next-week {
    border-radius: 10px 16px 16px 10px;
}

.this-week:hover,
.change-week-button:hover {
    background-color: var(--call-to-action-hover);
    border-radius: 5px;
}

.agenda-days {
    display: grid;
    grid-template-columns: repeat(7, calc((var(--agendaWidth) - 7vw) / 7));
    width: var(--agendaWidth);

    font-weight: bold;
    text-align: center;
    position: relative;

    padding: 1% 0;

    padding-left: 5vw;
}

.agenda-day {
    height: 100%;

    width: 80%;

    background-color: var(--one-deep-background);
    border-radius: 10px;
    margin: auto auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.today {
    background-color: var(--call-to-action) !important;
    color: var(--text) !important;
}

.agenda-item {
    border-radius: 5px;
    width: 95%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--call-to-action);

    z-index: 3;
    height: calc(100% - 1px);

    font-size: 1.75vw;
    line-height: 1em;
}

@media screen and (min-width: 700px) {
    .agenda-item {
        font-size: smaller !important;
    }
}

.add-lesson {
    color: var(--text);
    background-color: var(--call-to-action);
    text-decoration: none;
    border-radius: 5px;
    padding: 0.5% 1%;
    position: absolute;
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 199;
}

body {
    overflow: hidden;
    margin: 0;

    display: flex;
    flex-direction: column;
    font-size: 1.75vw !important;
}

@media screen and (min-width: 700px) {
    body {
        font-size: 1em !important;
    }
}

header {
    height: 10vh;
    width: 96vw;

    margin: 0% 1% 0 1%;
    padding: 0 1%;

    border-radius: 16px;
}

main {
    height: var(--agendaHeight);
    width: 96vw;

    margin: 0 1% 0 1%;
    padding: 0 1%;

    font-size: 1em;
    overflow: hidden;

    display: flex;
    justify-content: space-around;
}

.main-agenda-wrapper {
    position: relative;
    width: var(--agendaWidth);
}

.day-line-wrapper {
    width: 100%;
    height: 100%;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;

    display: grid;
    grid-template-columns: repeat(7, calc((var(--agendaWidth) - 7vw) / 7));

    padding-left: 5vw;
}

.day-line {
    background-color: var(--one-deep-background);
    height: 100%;
    width: 2px;
}

.day-line:last-child {
    position: absolute;
    right: 0;
}

.time-line-wrapper {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;

    display: grid;
    grid-template-rows: repeat(24, calc(var(--quarter-hour-height) * 4));
}

.time-line {
    background-color: var(--one-deep-background);
    width: calc(100% - 4vw);
    height: 2px;

    margin-left: 4vw;
}

.time-line>p {
    margin-left: -3vw;
    margin-top: -.5rem;
}

.time-name {
    width: 2.5rem;
    position: relative;
}

.current-time-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: calc((var(--agendaWidth) - 7vw) / 7);
    height: 2px;

    background-color: var(--call-to-action);
    z-index: 5;
}

.current-time-wrapper::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 10px;
    height: 10px;
    background-color: var(--call-to-action);
    border-radius: 50%;
    z-index: 5;
}

body {
    background-color: var(--background-color);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}


::-webkit-scrollbar {
    display: none;
}