:root {
    --green: rgb(30, 230, 30);
    --red: rgb(255, 34, 34);
    --yellow: rgb(255, 255, 52);
    --blue: rgb(84, 212, 255);
    --nan: rgba(199, 199, 199, 1);
}

* {
    text-decoration: none !important;
    font-size: 0.95em;
}

html, body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

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

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

.yellow {
    background-color: var(--yellow);
}

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

.nan {
    background-color: var(--nan);
}

.green-primary {
    border-left: 0.25em solid var(--green);
    border-top: 0.25em solid var(--green);
    border-bottom: 0.25em solid var(--green);
}

.red-primary {
    border-left: 0.25em solid var(--red);
    border-top: 0.25em solid var(--red);
    border-bottom: 0.25em solid var(--red);
}

.yellow-primary {
    border-left: 0.25em solid var(--yellow);
    border-top: 0.25em solid var(--yellow);
    border-bottom: 0.25em solid var(--yellow);
}

.blue-primary {
    border-left: 0.25em solid var(--blue);
    border-top: 0.25em solid var(--blue);
    border-bottom: 0.25em solid var(--blue);
}

.nan-primary {
    border-left: 0.25em solid var(--nan);
    border-top: 0.25em solid var(--nan);
    border-bottom: 0.25em solid var(--nan);
}

.green-secondary {
    border-right: 0.25em solid var(--green);
}

.red-secondary {
    border-right: 0.25em solid var(--red);
}

.yellow-secondary {
    border-right: 0.25em solid var(--yellow);
}

.blue-secondary {
    border-right: 0.25em solid var(--blue);
}

.null-secondary, .nan-secondary {
    border-right: 0.25em solid var(--nan);
}

.event {
    margin: 2px;
    border: 2px solid white;
    padding: 4px;
    border-radius: 6px;
    text-decoration: none;
    color: black;
    background-color: lightgray;
}

.event:hover {
    border: 2px solid black;
    text-decoration: none;
    color: black;
}

a {
    color: black;
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

.student {
    display: flex;
    align-items: center;
}

.student > h2 {
    text-wrap: wrap;
    margin-bottom: 0;
}

canvas {
    max-width: 200px;
    max-height: 200px;
}

.stats {
    max-width: none;
    max-height: none;
}

.data {
    display: none;
}

.hidden {
    display: none;
}

.EXAM {
    background-color: lightyellow;
}

.MEETING {
    background-color: lightsalmon;
}

.CALL {
    background-color: cadetblue;
}

.OTHER {
    background-color: lightgrey;
}

.profile {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 50%;
    background-color: white;
}

.hideanchor {
    color: black;
}

.lesson {
    margin: 2px;
    border: 2px solid white;
    padding: 4px;
    border-radius: 6px;
    text-decoration: none;
    background-color: lightgrey;
    color: black;
}

.lesson:hover {
    border: 2px solid black;
    text-decoration: none;
    color: black;
}

.btn-selected {
    border: 2px solid black !important;
}

.calendar {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding-left: 0;
    flex-grow: 1;
    gap: 0.25em;
}

.firstday {
    grid-column-start: 4;
}

.day {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    border-radius: 0.125em;
    background-color: rgb(243, 243, 243);
    padding: 0.5em;
    text-align: right;
    min-height: 6em;
    color: rgb(28, 28, 28);
    text-decoration: none;
}

.day:hover {
    color: rgb(28, 28, 28);
    background-color: rgb(233, 233, 233);
}

.day > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    padding: 0.125em;
    text-align: left;
    border-radius: 0.125em;
    font-size: 1.25em;
}

.event-item {
    background-color: #cfc3ff;
}

.exam-item {
    background-color: #b9e2ff;
}

.assignment-item {
    background-color: #fff1b0;
}

@media (max-width: 1200px) {

    .hide-small {
        display: none;
    }
    
}

.listLink {
    margin-bottom: 5px;
    padding: 5px;
    background-color: gray;
}

.birthday {
    display: flex;
    justify-content: center;
    padding: 0.25em;
    background-color: #4158D0;
    background-image: linear-gradient(43deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    color: white;
    border-radius: 50em;
}

.birthday:hover {
    box-shadow: 0px 0px 0px 2px black inset;
}

.full-container {
    width: 100%;
    padding: 2em;
    overflow-y: scroll;
}

.full-container-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2em;
    overflow-y: scroll;
    gap: 0.5em;
    flex-grow: 1;
}

.list-profile {
    object-fit: cover;
    border-radius: 50%;
    background-color: white;
}

.profile-container {
    display: inline-block;
    padding: 0.25em;
    border-radius: 50%;
}

#studentsTable tr td:last-child {
    width: 1%;
    white-space: nowrap;
}

.student-link {
    display: block;
}

table.dataTable.no-footer {
    border-bottom: 0 !important;
}

table.dataTable thead th, table.dataTable thead td {
    border-bottom: 0 !important;
}

.lesson-day {
    display: flex;
}

.lessons-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
    position: relative;
}

.card-text img {
    max-width: 250px;
}

td img {
    max-width: 250px;
}

.notification {
    color: rgb(253, 95, 95);
}

rect:not([x="0"]) {
    cursor: pointer;
}

.navbar {
    background-color: white;
    box-shadow: 0px 0px 9px -3px rgb(210, 210, 210);
}

.vertical-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 1em;
    overflow: hidden;
}

.chat-messages {
    display: flex;
    flex-direction: column-reverse;
    flex-grow: 1;
    width: 100%;
    overflow-y: scroll;
    gap: 0.75em;
    background-color: rgb(243, 243, 243);
    border-radius: 0.5em;
    padding: 1em;
    position: relative;
}

.chat-type-area {
    display: flex;
    width: 100%;
    gap: 0.5em;
}

.chat-type-area > textarea {
    flex-grow: 1;
    resize: none;
    background-color: rgb(243, 243, 243);
    padding: 1em;
    border: none;
    border-radius: 0.5em;
    outline: none;
    outline-offset: -3px;
}

.chat-type-area > textarea:hover {
    background-color: rgb(237, 237, 237);
}

.chat-type-area > textarea:focus {
    background-color: rgb(231, 231, 231);
    outline: 2px solid #2c8dd3;
}

.chat-type-area > button {
    width: fit-content;
    background-color: #2c8dd3;
    border: none;
    padding: 1em;
    border-radius: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-type-area > button:hover {
    background-color: #1c668d;
}

.chat-type-area > button:active {
    background-color: #164861;
}

.chat-type-area>button:disabled {
    background-color: #5f6f76;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    background-color: white;
    box-shadow: 0px 0px 6px -2px rgb(200, 200, 200);
    padding: 1.5em;
    max-width: 80%;
    border-radius: 2em;
    border-top-left-radius: 0.75em;
    width: fit-content;
}

.message:hover {
    background-color: white;
}

.message-user {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.message-user > img {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    object-fit: cover;
}

.message-user > span {
    font-weight: bold;
    font-size: 1.125em;
}

.message-text {
    padding-right: 5em;
}

.message-timestamp {
    text-align: right;
    color: rgb(194, 194, 194);
    font-size: 0.875em;
}

.user-role {
    padding: 0.25em;
    border-radius: 0.25em;
}

.loading-state {
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    border: 0;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.loading {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ddd;
    border-top-color: #164861;
    border-right-color: #1c668d;
    border-bottom-color: #2c8dd3;
    animation: loading 1s linear infinite;
}

.participants-img-list {
  display: flex;
  padding: 0.5em;
  gap: 0.5em;
  align-items: center;
}

.chat-participant-img {
  width: 2em;
  height: 2em;
  border-radius: 50%;
  object-fit: cover;
}

.user-link {
    display: flex;
    align-items: center;
    color: black;
    gap: 0.5em;
}

.own-message {
    margin-left: auto;
    background-color: #ffffe7;
    border-top-left-radius: 2em;
    border-top-right-radius: 0.75em;
}

.new-message {
    animation: newMessageAnimation 0.125s ease;
}

@keyframes newMessageAnimation {

    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}

.message:hover {
    animation: messageScale 0.125s ease;
}

@keyframes messageScale {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }

}

.panel-student {
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    gap: 1em;
    box-shadow: 0px 0px 6px -2px rgb(189, 189, 189);
    border-radius: 0.5em;
}

.panel-student:hover {
    box-shadow: 0px 0px 6px -2px rgb(127, 127, 127);
}

.panel-student-header {
    display: flex;
    gap: 1em;
    align-items: center;
    color: #212529;
}

.panel-student-image-container {
    position: relative;
}

.panel-student-image {
    width: 4em;
    height: 4em;
    object-fit: cover;
    border-radius: 50%;
}

.panel-student-notification {
    position: absolute;
    top: -0.25em;
    left: -0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em;
    background-color: red;
    color: white;
    font-weight: bold;
    border-radius: 50%;
}

.panel-student-name {
    font-size: 1.5em;
    font-weight: bold;
    text-wrap: wrap;
    flex-shrink: 1;
    margin-right: auto;
}

.panel-student-absence {
    display: flex;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 1.5em;
    width: 2em;
    height: 2em;
    justify-content: center;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.panel-student-absence:hover {
    border-color: #686868;
}

.panel-student-body {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.panel-student-exam {
    display: flex;
    gap: 0.25em;
    text-decoration: none;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 1.5em;
}

.event-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 1em;
    border: 1px solid rgb(201, 201, 201);
    color: black;
    text-decoration: none;
    border-radius: 0.5em;
}

.event-list-item:hover {
    color: black;
}

.exam-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 1em;
    color: black;
    text-decoration: none;
    border-radius: 0.5em;
}

.exam-list-item:hover {
    color: black;
}

.exam-list-item-header {
    display: flex;
    align-items: center;
    gap: 1em;
    color: black;
}

.exam-list-item-header > h4 {
    margin-bottom: 0;
}

.exam-list-item-img {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    object-fit: cover;
}

.exam-list-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.student-scroll-options {
    display: flex;
    width: 100%;
    gap: 0.75em;
    align-items: center;
    overflow-y: scroll;
    flex-shrink: 0;
    padding: 0.25em;
}

.student-scroll-item {
    background-color: white;
    border-radius: 0.5em;
    padding: 0.5em;
    text-wrap: nowrap;
    box-shadow: 0px 0px 0.25em -0.0625em rgb(125, 125, 125);
    border: none;
}

.student-scroll-item:hover, .student-section-btn-active {
    background-color: #2c8dd3;
    color: white;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {

    * {
        font-size: 0.98em;
    }
    
}

@media (min-width: 960px) {

    * {
        font-size: 1em;
    }
    
}
