@font-face {
    font-family: 'Regular';
    src: local('Poppins-Regular'), url(../fonts/Poppins-Regular.ttf) format('woff');
}
@font-face {
    font-family: 'Bold';
    src: local('Poppins-Bold'), url(../fonts/Poppins-Bold.ttf) format('woff');
}

@font-face {
    font-family: 'SemiBold';
    src: local('Poppins-SemiBold'), url(../fonts/Poppins-SemiBold.ttf) format('woff');
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(45,45,45);
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: Regular;
    overscroll-behavior-x: none;
    touch-action: none;
}

/*Joint Instances*/
/*Navbar*/
/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 0;
    width: 100%;
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0);
    /* Black fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/opacity */
    overflow: hidden;
    /* Disable horizontal scroll */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Centered text/links */
    overflow: overlay;
    /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.overlay-content #back {
    margin-top: 2.5rem;
}

.menuHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 40px;
    user-select: none;
}

.menuTitle {
    font-size: 2rem;
    color: #8c8c8c;
    font-family: SemiBold;
    user-select: none;
}

.menuTitleBold {
    font-size: 2.5rem;
    color: #e74823;
    font-family: Bold;
    user-select: none;
}

/* The navigation links inside the overlay */
.overlay a {
    text-decoration: none;
    transition: 0.3s;
    /* Transition effects on hover (color) */
}

.navItem {
    color: #6d6d6d;
    text-decoration: none;
    font-size: 2rem;
    margin-top: 14px;
    font-family: SemiBold;
    padding: 0!important;
    user-select: none;
    cursor: default;
}
.navItem:active {
    color: #e74823;
}

@media(hover: hover) and (pointer: fine) {
    .navItem:focus,
    .navItem:hover {
        color: #e74823;
    }
    .navItem:active {
        color: white;
    }
}


#getMobileApp{
    transform: scale(1);
    animation: pulse 2s infinite;
}

@media(hover: hover) and (pointer: fine) {
    #getMobileApp:hover {
        animation: none;
    }
}

#login{
    display: auto;
    transform: scale(1);
    animation: pulse 2s infinite;
}
@media(hover: hover) and (pointer: fine) {
    #login:hover {
        animation: none;
    }
}

#logout {
    display: none;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 50px;
    height: 50px;
    user-select: none;
    color: #474747;
}

.overlay .closebtn svg {
    width: 100%;
    height: 100%;
}

.overlay .closebtn:active {
    color: #e74823;
}

@media(hover: hover) and (pointer: fine) {
    .overlay .closebtn:focus,
    .overlay .closebtn:hover {
        color: #e74823;
    }

    .overlay .closebtn:active {
        color: white;
    }
}

/* Position the back button (top left corner) */
.overlay .backbtn {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 37px;
    height: 37px;
    user-select: none;
    color: #474747;
}

.overlay .backbtn svg {
    width: 100%;
    height: 100%;
}

.overlay .backbtn:active {
    color: #e74823;
}

@media(hover: hover) and (pointer: fine) {
    .overlay .backbtn:focus,
    .overlay .backbtn:hover {
        color: #e74823;
    }

    .overlay .backbtn:active {
        color: white;
    }
}

#header-con {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    top:0;
    padding: 0.5rem;
    border-bottom: 2px  solid #6d6d6d;
    height: 55px;
}

#header-con .header-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family: SemiBold;
}

#header-con .header-title h2{
    text-align: center;
    user-select: none;
    color: #e74823;
}

#header-con .header-title img {
    height: 25px;
    margin-right: 3px;
    user-select: none;
    pointer-events: none;
}

#header-con .menu-btn {
    width: 40px;
    height: 40px;
    padding: 5px;
    background-color: transparent;
    color: #e74823;
    border: none;
    /* border: 2px solid orangered; */
    position: absolute;
    right: 0;
    margin-right: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
}

#header-con .menu-btn svg {
    width: 100%;
    height: 100%;
}

#header-con .menu-btn:active {
    color: white;
    background-color: rgb(60,60,60);
}

@media(hover: hover) and (pointer: fine) {
    #header-con .menu-btn:focus,
    #header-con .menu-btn:hover {
        background-color: rgb(60,60,60);
        color: white;
    }

    #header-con .menu-btn:active {
        background-color: rgb(60,60,60);
        color: #e74823;
    }
}

#header-con .toggleSwitchContainer {
    position: absolute;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-left: 15px;
}

#header-con .toggleSwitchContainer .toggleSwitch {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 40px;
    height: 20px;
    background-color: #6d6d6d;
    border-radius: 30px;
    border: 1px solid #474747;
}

#header-con .toggleSwitchContainer .toggleSwitch .switchHandle {
    height: 22px;
    width: 22px;
    border-radius: 30px;
    background: white;
    position: relative;
    left: -13px;
    border: 1px solid #cbcbcb;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    color: #e74823;
}

#header-con .toggleSwitchContainer .toggleSwitch .switchHandle-active {
    height: 22px;
    width: 22px;
    border-radius: 30px;
    background: white;
    position: relative;
    right: -13px;
    border: 1px solid #cbcbcb;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    color: #e74823;
}

#header-con .toggleSwitchContainer .toggleSwitch .switchHandle #me {
    display: none;
}

#header-con .toggleSwitchContainer .toggleSwitch .switchHandle-active #me {
    display: block;
}
#header-con .toggleSwitchContainer .toggleSwitch .switchHandle-active #all {
    display: none;
}

.content {
    height: calc(100vh - 55px);
    overflow-y: auto;
}

/*Pulse Effect [REUSABLE]*/
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
        color: white;
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.bold {
    /* font-weight: bold; */
    font-family: Bold;
    color: #e74823;
}

/* The Overlay (background) */
.settings {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 0;
    width: 100%;
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0);
    /* Black fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/opacity */
    overflow-y: auto;
    /* Disable horizontal scroll */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.settings-content {
    position: relative;
    top: 25%;
    /* 25% from the top */
    width: 100%;
    /* 100% width */
    text-align: center;
    /* Centered text/links */
    margin-top: 30px;
    /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.col-settings-content {
    position: relative;
    top: 18%;
    /* 25% from the top */
    width: 100%;
    /* 100% width */
    text-align: center;
    /* Centered text/links */
    margin-top: 30px;
    /* 30px top margin to avoid conflict with the close button on smaller screens */
}

.stu-settings-content {
    position: relative;
    top: 25%;
    /* 25% from the top */
    width: 100%;
    /* 100% width */
    text-align: center;
    /* Centered text/links */
    margin-top: 30px;
    /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.settings a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    /* Display block instead of inline */
    transition: 0.3s;
    /* Transition effects on hover (color) */
}

.col-div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-top: 15px;
    /* gap: 1rem; */
}

.col-div p {
    width: 10px;
    margin-left: 10px;
    color: #6d6d6d;
    font-family: SemiBold;
    user-select: none;
    font-size: 1.3rem;
}

.col-picker {
    width: 80px;
    height: 35px;
    background-color: transparent;
    border-radius: 10px;
    padding: 0px;
}

@media(hover: hover) and (pointer: fine) {
    input[type="color"]:focus,
    input[type="color"]:hover {
        border: 1px solid #e74823;
    }
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0px;
    
}
input[type="color"]::-webkit-color-swatch {
	border: 1px solid #6d6d6d;
    border-radius: 10px;
}


.stuInput {
    padding: 8px;
    height: 50px;
    width: 200px;
    font-size: 1.3rem;
    border-radius: 5px;
    border: 1px solid #6d6d6d;
    color: white;
    background-color: #474747;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-top: 10px;
}

@media(hover: hover) and (pointer: fine) {
    .stuInput:focus,
    .stuInput:hover {
        border: 1px solid #e74823;
    }
}

.stuInputLabel {
    color: #6d6d6d;
    font-family: SemiBold;
    user-select: none;
    font-size: 1.3rem;
}

.desc {
    color: #6d6d6d;
    font-family: SemiBold;
    user-select: none;
    font-size: 1.3rem;
    text-decoration: none;
}

.desc:active {
    color: #e74823;
}

@media(hover: hover) and (pointer: fine) {
    .desc:focus,
    .desc:hover {
        color: #e74823;
    }

    .desc:active {
        color: white;
    }
}

#always-displayed-groups {
    margin-bottom: 10px;
}

#about-text{
    margin-left: 4rem;
    margin-right: 4rem;
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #6d6d6d;
    user-select: none;
}

.vers-info {
    margin-top: 50px;
    font-size: 0.8rem!important;
}

.info-text {
    margin: 0 2.5rem 2.5rem 2.5rem;
    font-size: 1.2rem;
    color: #6d6d6d;
    user-select: none;
}

#always-displayed-groups{
    font-size: 1.1rem;
}

.timetable-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100% - 90px);
    overflow: hidden;
}

#timetable {
    display: grid;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.grid {
    width: 100%;
    display: grid;
    grid-template-rows: 30px repeat(13, calc((100% - 30px)/13));
    overflow: hidden;
    grid-row-start: 1;
    grid-column-start: 1;
}

.trow {
    height: 100%;
    display: grid;
    grid-template-columns: 30px repeat(5, calc((100% - 30px)/5));
}

.trow.thead {
    font-weight: 700;
    justify-content: center;
    color: white;
    background: rgb(60,60,60)!important;
    user-select: none;
    font-family: SemiBold;
    font-size: 14px;
    border-top: 1px solid #6d6d6d;
}

.thead .cell {
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-right: 1px solid #6d6d6d;
    background-color: rgb(60,60,60)!important;
    border-bottom: 1px solid #6d6d6d;
}

.thead :last-child {
    border-right: none;
}

.trow :first-child {
    font-weight: 700;
    justify-content: center;
    color: white;
    background: rgb(60,60,60);
    border-bottom: 1px solid #6d6d6d;
    border-right: 1px solid #6d6d6d;
    user-select: none;
    font-family: SemiBold;
    font-size: 14px;
}

.trow :last-child {
    border-right: none;
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #474747;
    border-right: 1px solid #474747;
    user-select: none;
    overflow: hidden;
}

.trow .currentDay {
    background-color: rgb(52, 52, 52);
}

.entries {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 30px repeat(5, calc((100% - 30px)/5));
    grid-template-rows: 30px calc(100% - 30px);
    overflow: hidden;
    grid-row-start: 1;
    grid-column-start: 1;

}

.weekNavButtons {
    display: grid;
    grid-row-start: 1;
    grid-column-start: 1;
    width: 100%;
    height: 100%;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr;
}

.weekNavButton {
    display: flex;
    height: 100%;
    width: 100%;
}

.timeline {
    display: none;
    position: relative;
    height: 0px;
    width: calc(100% + 1px);
    left: -1px;
    border-top: 1px solid #e74823;
}


/* (D) ENTRY CELLS */
.entry {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-entry {
    position: relative;
    color: white;
    background: red;
    right: 0;
    left: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border: 1px solid #474747;
    user-select: none;
    font-size: 14px;
}

@media(hover: hover) and (pointer: fine) {
    .new-entry:hover {
        border: 1px solid white;
    }
}

@media(hover: hover) and (pointer: fine) {
    #testevent:hover {
        background: blue;
    }
}

.info-panel {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 10px;
    padding: 5px;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgb(60,60,60);
    height: 70px;
    border: 1px solid #6d6d6d;
    user-select: none;
    font-size: 14px;
}

.info-left {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 35px;
    margin-left: 10px;
}

.info-left svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.info-right {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 5px;
    padding-right: 41.8px;
    overflow: hidden;
}

.info-panel .info {
    width: 100%;
    text-align: center;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

#we-courses-div {
    display: none;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 10px;
}

#we-courses-div p {
    font-family: Regular;
    color: white;
    margin-left: 10px;
    user-select: none;
}

.we-lv-con {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: 10px 10px 0px 10px;
    padding: 5px;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgb(60,60,60);
    height: 70px;
    border: 1px solid #6d6d6d;
    user-select: none;
    font-size: 14px;
}
.we-lv-con-left {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 35px;
    margin-left: 10px;
}

.we-lv-con-left svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.we-lv-con-right {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 5px;
    padding-right: 41.8px;
}

.we-lv {
    color: white;
    text-align: center;
    font-size: 14px;
    margin-left: 0px!important;
}

#settings-button {
    color: white;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e74823;
    margin-top: 0.2rem;
}

@media(hover: hover) and (pointer: fine) {
    #settings-button:hover{
        color: #e74823;
        background-color: rgb(60,60,60);
    }
}

.changeWeek{
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    width: 100%;
    height: 30px;
}

.weekDisplay {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    align-content: center;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
}

.weekDisplay svg {
    margin-right: 10px;
    height: 16px;
    width: 16px;
}

.weekDisplay #date-header {
    user-select: none;
    font-size: 1.2rem;
/*     font-weight: bold; */
    font-family: SemiBold;
}

.weekDisplay:active {
    color: #e74823;
    background-color: rgb(60 60 60);
}

@media(hover: hover) and (pointer: fine) {
    .weekDisplay:focus,
    .weekDisplay:hover {
        color: #e74823;
        background-color: rgb(60 60 60);
    }
    
    .weekDisplay:active {
        color: white;
        background-color: rgb(60 60 60);
    }
}


.lastWeekBtn {
    width: 25px;
    height: 25px;
    padding: 5px;
    background-color: transparent;
    border: none;
    color: white;
    margin-left: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.lastWeekBtn svg {
    width: 100%;
    height: 100%;
}

.btn-disabled {
    color: #6d6d6d;
    pointer-events: none;
}

.nextWeekBtn {
    width: 25px;
    height: 25px;
    padding: 5px;
    background-color: transparent;
    border: none;
    color: white;
    margin-right: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.nextWeekBtn svg {
    width: 100%;
    height: 100%;
}

.lastWeekBtn:active{
    color: #e74823;
    background-color: rgb(60 60 60);
}

@media(hover: hover) and (pointer: fine) {
    .lastWeekBtn:focus,
    .lastWeekBtn:hover{
        color: #e74823;
        background-color: rgb(60 60 60);
    }
    
    .lastWeekBtn:active{
        color: white;
        background-color: rgb(60 60 60);
    }
}

.nextWeekBtn:active{
    color: #e74823;
    background-color: rgb(60 60 60);
}

@media(hover: hover) and (pointer: fine) {
    .nextWeekBtn:focus,
    .nextWeekBtn:hover{
        color: #e74823;
        background-color: rgb(60 60 60);
    }
    
    .nextWeekBtn:active{
        color: white;
        background-color: rgb(60 60 60);
    }
}


@media only screen and (max-width:450px){
    .day {
        font-size: 3.5vw;
    }
}

/*Mobile*/
@media only screen and (max-width:340px) {
    /*Navbar*/
    .overlay a {
            font-size: 26px
        }
    
        .overlay .closebtn {
            font-size: 40px;
            top: 15px;
            right: 35px;
            color: white;
            user-select: none;
        }

    .overlay p {
        font-size: 30px;
    }
    /*----- NAVBAR -----*/

        .settings p{
            font-size: 30px;
        }

        .settings a {
            font-size: 30px
        }
    
        .settings .setclosebtn {
            font-size: 40px;
            top: 15px;
            right: 35px;
        }

        .change-week {
            font-size: 0.9rem;
        }

        #always-displayed-groups{
            font-size: 0.9rem;
        }

}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 1px 0 3px #6d6d6d;
    border: 0.5px solid #6d6d6d;
    border-top: none;
    border-bottom: none;
    border-right: none;
    background-color: rgb(47 47 47);
    border-radius: 0px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 2px #6d6d6d;
    background: #aeaeae;
    border-radius: 0px;
}

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

@media only screen and (max-height: 700){
    .col-settings-content {
        top: 15%;
    }
}

/*Desktop*/