* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* Default styles */

:root {
    /* colours */
    --blue: #003CBE;
    --light-blue: #DBE5F9;
    --pale-blue: #F3F7FF;

    --cyan: #30C1FF;
    --light-cyan: #EBF9FF;

    --red: #E81616;
    --light-red: #FDE8E8;

    --green: #00BE71;
    --light-green: #E6F9F1;

    --trans-black: color: rgba(0, 0, 0, 0.7);
    --grey: #5B5B5B;

    --border-radius1: 1rem;

    --transition: 0.3s ease-in-out all;

}

h1 {
    font-weight: 600;
}

button {
    all: unset;
}



/* CALENDAR -----------------------------------------------------------*/

/* Mobile */

.date-label-grid-container {
    display: none;
}

.calendar {
    background-color: var(--pale-blue);
    width: 100%;
    padding: 1.5rem;
    border-bottom-right-radius: 3rem;
    border-bottom-left-radius: 3rem;
}

.calendar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar i {
    font-size: 1.6rem;
}

.calendar-dates {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.calendar-month {
    font-weight: 500;
    color: var(--blue);
    background-color: var(--light-blue);
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius1);
    
}

.date-sequence {
    /* background-color: rgba(255, 0, 0, 0.253); */
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    /* gap: 0.5rem; */
    height: 4.5rem;
}

.date-control-container {
    height: 100%;
    /* aspect-ratio: 1 / 2; */
    /* background-color: blue; */
    display: flex;
    align-items: center;

}

.date-control {
    width: 100%;
    height: 50%;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    padding: 0.5rem;

}

.date-control i {
    color: var(--blue);
    font-size: 1.2rem;
}

.current-date {
    color: var(--blue);
    background-color: var(--light-blue);
}

.date {
    border-radius: 12px;
    height: 100%;
    padding: 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-icons {
    /* background-color: var(--blue); */
    width: 100%;
    height: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.event-icon {
    background-color: var(--green);
    height: 4px;
    width: 4px;
    border-radius: 100px;
}

.blue-bg {
    background-color: var(--blue);
}

.green-bg {
    background-color: var(--green);
}

.cyan-bg {
    background-color: var(--cyan);
}

.date-number {
    font-weight: 600;
    font-size: 1.2rem;
}

.day {
    font-size: 0.6rem;
}

.not-current-week {
    display: none;
}

.desktop-calendar {
    display: none;
}

.calendar-arrows { 
    display: none;
}

/* Tablet */

@media screen and (min-width: 750px) {

    .date-label-grid-container {
        display: block;
    }

    main {
        display: grid;
        grid-template-columns: 1.5fr 3fr;
        /* height: 200vh; */
    }

    .calendar i {
        display: none;
    }

    .calendar {
        padding: 2rem;
        height: 100vh;
        border-bottom-left-radius: unset;
        border-top-right-radius: 3rem;
    }

    .mobile-calendar {
        display: none;
    }

    .desktop-calendar {
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
    }

    .day-label {
        color: var(--trans-black);
    }

    .calendar-dates {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .calendar-arrows { 
        display: flex;
        width: 5rem;
        /* background-color: red; */
        gap: 1rem;
    }

    .calendar-arrow {
        background-color: var(--light-blue);
        display: flex;
        width: 2.5rem;
        border-radius: 7px;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .calendar-arrow:hover {
        cursor: pointer;
        transform: scale(1.1);
    }

    .calendar-arrow i {
        color: var(--blue);
        display: block;
        font-size: 1rem;
    }

    .calendar-month {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .past-month {
        color: var(--blue);
        opacity: 0.3;
    }

    .date-number {
        font-size: 1rem;
    }

    .date {
        padding: 0.2rem 0.5rem;
        transition: var(--transition);
    }

    .date:hover {
        transform: scale(1.3);
        cursor: default;
    }
  
}

/* Desktop */
@media screen and (min-width: 1200px) {

    main {
        display: grid;
        grid-template-columns: 1fr 3fr;
    }

    .calendar {
        padding: 3rem;
    }
}

/* CLASS DISPLAY ----------------------------------------------------*/

/* Small mobile devices */

.desktop {
    display: none;
}

.page-content {
    padding: 1.5rem;
}

.day-block {
    margin-top: 2rem;
}

.class-display-buttons button {
    padding: 1rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.class-display-buttons button:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.class-display-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.class-display-buttons i {
    display: none;
}

.blue-btn {
    color: var(--blue);
    background-color: var(--pale-blue);
}

.red-btn {
    color: var(--red);
    background-color: var(--light-red);
}

.class-display-buttons button i {
    margin-right: 4px;
}

.class-display {
    margin-top: 1.5rem;
}

.day-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.class-entry {
    padding: 2rem 0rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1rem;
}

.line {
    height: 4rem;
    position: absolute;
}

.level {
    font-size: 0.7rem;
    font-weight: 600;
}

.student-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.time p {
    font-size: 1rem;
    font-weight: 600;
}

.seaweed {
    background-color: var(--light-green);
}

.shark {
    background-color: var(--light-blue);
}

.seaslug {
    background-color: var(--light-cyan);
}

.seaweed .name-level .level {
    color: var(--green);
}

.shark .name-level .level {
    color: var(--blue);
}

.seaslug .name-level .level {
    color: var(--cyan);
}

.seaweed .line {
    border: 0.3px solid var(--green);
}

.shark .line {
    border: 0.3px solid var(--blue);
}

.seaslug .line {
    border: 0.3px solid var(--cyan);
}


/* Regular Mobile */

@media screen and (min-width: 380px) {

    .time p {
        font-size: 1.1rem;
    }

    .student-name {
        font-size: 1.1rem;
    }

    .level {
        font-size: 0.8rem;
    }

    .class-display-buttons i {
        display: unset;
    }

    .class-display-buttons button {
        padding: 1.2rem;
        border-radius: 7px;
        font-size: 0.8rem;
        font-weight: 500;
    }
    

}

/* Tablet */

@media screen and (min-width: 750px) {

    .page-content {
        padding: 2rem;
    }

    .class-display-buttons {
        display: flex;
        gap: 1rem;
        justify-content: flex-start;
    }

    .mobile {
        display: none;
    }

    .desktop {
        display: block;
        overflow-x: auto;
        height: 60vh;

    }

    .class-display-grid {
        width: 200%;
        display: grid;
        grid-template-columns: 0.5fr repeat(7, 1fr);
        /* gap: 5px; */
    }

    .date-label-grid {
        display: grid;
        grid-template-columns: 0.5fr repeat(7, 1fr);
        width: 200%;
    }

    .cel {
        aspect-ratio: 1.2 / 1;
        border: 0.3px solid var(--pale-blue);
    }

    .date-cel {
        aspect-ratio: 1.2 / 1;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    } 

    .date-cel .date-number {
        font-size: 1.4rem;
    }

    .date-cel .date-day {
        font-size: 0.8rem;
    }

    .date-text {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0.5rem 1rem;
        border-radius: 7px;
    }

    .time-cel {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .class {
        height: 100%;
        width: 100%;
        border-radius: 15px;
        padding: 0.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: var(--transition);
    }

    .class:hover {
        transform: scale(1.05);
    }

    .class .name-level .level {
        font-size: 0.6rem;
    }

    .class .name-level .student-name {
        font-size: 0.8rem;
    }

    .class .time p {
        font-size: 0.7rem;
    }

    .date-label-grid-container {
        overflow-x: auto;
    }

    .class-display {
        margin-top: unset;
    }

}

/* Larger tablet */
@media screen and (min-width: 900px) {
    .class .name-level .level {
        font-size: 0.7rem;
    }

    .class .name-level .student-name {
        font-size: 0.8rem;
    }

    .class .time p {
        font-size: 0.7rem;
    }

    .class-display-grid {
        width: 155%;
    }

    .date-label-grid {
        width: 155%;
    }

    .cel {
        aspect-ratio: 1 / 1;
    }
}

@media screen and (min-width: 1000px) {
    .class-display-grid {
        width: 140%;
    }

    .date-label-grid {
        width: 140%;
    }

    .cel {
        aspect-ratio: 1 / 1.2;
    }
}

@media screen and (min-width: 1100px) {
    .class-display-grid {
        width: 130%;
    }

    .date-label-grid {
        width: 130%;
    }
}

/* Desktop */
@media screen and (min-width: 1200px) {

    .class-display-grid {
        width: 100%;
    }

    .date-label-grid {
        width: 100%;
    }
}

/* Desktop */
@media screen and (min-width: 1350px) {
    .cel {
        aspect-ratio: 1 / 0.8;
    }

    .cel .class {
        padding: 1rem;
    }
}


/* Notify absences */

/* Mobile */

.absences-title h1 {
    font-size: 1.7rem;
}

.absences-title p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--grey);
}

.submit-btn {
    background-color: var(--light-blue);
    display: flex;
    width: calc(100% - 2rem);
    align-items: center;
    justify-content: center;
    color: var(--blue);
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 7px;
    font-weight: 500;
    font-size: 1rem;
}

.submit-btn span {
    margin-left: 1rem;
    color: white;
    background-color: var(--blue);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.absent {
    border: 0.3px solid var(--red);
}

/* Tablet */

@media screen and (min-width: 768px) {
    .submit-btn {
        width: 30%;
        min-width: 10rem;
        transition: var(--transition);
    }

    .submit-btn:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

    .submit-btn-container {
        display: flex;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Desktop */
@media screen and (min-width: 1200px) {
    .absences-title h1 {
        font-size: 2rem;
    }
}





/* Mobile */

/* Tablet */

@media screen and (min-width: 768px) {
}

/* Desktop */
@media screen and (min-width: 1200px) {
}