@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

body {
    background-color: #000000;
    color: #ffffff;
    font-family: "Comfortaa";
}

/* For desktop users, or larger screens */
@media (min-width: 768px) {
    #timetable {
        display: flex;
    }

    div.timetable-container {
        max-width: 280px;
        margin-bottom: 10px;
        padding: 5px;
    }

    div.timetable-container::after {
        height: 20px;
    }
}
  
#timetable {
    align-content: space-around;
    gap: 50px;
    justify-content: center;
}

div.timetable-container {
    --coolor: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--coolor);
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    min-height: 20px;
    max-height: 80px;
    font-family: Comfortaa;
    font-size: 13px;
    color: #333;
    overflow-y: scroll;
    scrollbar-width: none;
    padding: 2px;
}

.filter-container {
    background-color: rgba(7, 134, 30, 0.5);;
    padding: 1px;
}

div.timetable-container::after {
    content: "";
    position: sticky;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 5px;
    z-index: 1;
    display: block;
    pointer-events: none;
    background-image: linear-gradient(transparent, var(--coolor));
}

div.timetable-container span.placeholder {
    color: #aaa;
    font-style: italic;
}

div.timetable-container .time {
    font-weight: bold;
    color: #444;
}

div.timetable-container .teacher.state-regular {
    color: #0066cc;
    font-weight: bold;
}

div.timetable-container .room.state-regular,
div.timetable-container .subject.state-regular {
    color: #555;
}

div.timetable-container .state-substituted {
    color: red;
}

div.exam {
    display: table;
    align-content: flex-start;
}

div.exam>* {
    padding-left: 1em;
}

div.type-event {
    --coolor: #C19AB7;
    border: 1px solid #896880;
}


div.type-inbox {
    --coolor: #04E762;
    border: 1px solid #896880;
}

div.type-homework {
    --coolor: #33A1AA;
    border: 1px solid #1c5a8e;
}

.teacher + .teacher::before {
    content: ' | ';
    color: black;
}


div.type-exam, div.is-exam {
    --coolor: #2176FF;
    border: 1px solid #164ea8;
}

div.type-weather {
    --coolor: #F79824;
    border: 1px solid #965c15;
}

div.type-holiday {
    --coolor: #99B041;
    border: 1px solid #3a5620;
}

div.type-absence {
    --coolor: red;
    border: 1px solid #3a5620;
}

div.type-other {
    --coolor: #76B041;
    border: 1px solid #3a5620;
}

.spinner {
    border: 2px solid rgba(0, 0, 0, 0.1); /* Smaller border width */
    border-left-color: #09f; /* Spinner color */
    border-radius: 50%;
    width: 20px; /* Smaller width */
    height: 20px; /* Smaller height */
    animation: spin 1s linear infinite;
    display: inline-block; /* Make it inline */
    vertical-align: middle; /* Align it properly with text */
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

.pills {
    padding: 0.1em;
    float: right;
}

.pill {
    background-color: lightcoral;
    color: white;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: .9em;
    white-space: nowrap;
}

.filter-student + .filter-student {
    margin-top: 20px;
  }