:root {
    --content-width: 90%;

    --bg-color: rgb(32, 32, 32);
    --primary-color: #5ace90;
    --secondary-color: #383838;
    --tertiary-color: #505050;
    --action-color: #EE6352;

    --text-dark: rgb(40, 40, 40);
    --text-light: rgb(227, 227, 227);

    /* Small devices (portrait tablets and large phones, 600px and up) */
    @media only screen and (min-width: 600px) {}

    /* Medium devices (landscape tablets, 768px and up) */
    @media only screen and (min-width: 768px) {
        --content-width: 80%;
    }

    /* Large devices (laptops/desktops, 992px and up) */
    @media only screen and (min-width: 992px) {
        --content-width: 60%;
    }

    /* Extra large devices (large laptops and desktops, 1200px and up) */
    @media only screen and (min-width: 1200px) {
        --content-width: 40%;
    }
}


html,
body {
    height: 100%;
    margin: 0px;
    padding: 0px;
}

body {
    min-height: 100dvh;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Funnel Sans", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
}

header {
    width: 100vw;
    min-width: 320px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

nav {
    width: var(--content-width);
    box-sizing: border-box;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--secondary-color);
}

main {
    width: var(--content-width);
    flex: 1;
    box-sizing: border-box;
    margin: 0px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5 {
    /* margin: 0px; */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

input,
textarea,
select,
.textarea {
    all: unset;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
    transition: all 0.1s ease-in-out;
}

input,
select {
    max-height: 40px;
}

input:hover,
textarea:hover,
select:hover,
.textarea:hover {
    filter: brightness(90%);
}

textarea {
    resize: none;
}

::placeholder {
    color: var(--text-light);
    opacity: 0.6;
    /* Firefox */
    font-style: italic;
}

::-ms-input-placeholder {
    /* Edge 12 -18 */
    color: var(--text-light);
    opacity: 0.6;
    /* Firefox */
    font-style: italic;
}

[contenteditable="true"]:empty::before {
    content: attr(placeholder);
    color: var(--text-light);
    opacity: 0.6;
    /* Firefox */
    font-style: italic;
}

button,
.btn-main,
.btn-secondary,
.btn-tertiary {
    all: unset;
    height: 40px;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
}

button,
.btn-main {
    background-color: var(--tertiary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.btn-tertiary {
    background-color: var(--action-color);
    color: var(--text-dark);
}

button:hover,
.btn-main:hover,
.btn-secondary:hover,
.btn-tertiary:hover {
    filter: brightness(90%);
}


.profile-img-preview {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    height: 28px;
    width: 28px;
    overflow: hidden;
    background-color: var(--text-light);
}

.profile-img-preview img {
    width: 100%;
    height: 100%;
}

a {
    color: var(--primary-color);
}

footer {
    width: var(--content-width);
    padding: 1rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    /* font-size: 13px; */
    color: var(--text-light);
}

footer a {
    color: var(--primary-color);

}

footer p {
    margin: 0px;
    box-sizing: border-box;
}

.col {
    display: flex;
    flex-direction: column;
    /* Extra small devices (phones, 600px and down) */
}

.row {
    display: flex;
    flex-direction: row;
}

.row.responsive {
    @media only screen and (max-width: 600px) {
        flex-direction: column;
    }
}

.row-list svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    position: relative;
    top: 0.05em;
}

.w-100 {
    width: 100%;
}

.gp-05 {
    gap: 0.5rem;
}

.gp-1 {
    gap: 1rem;
}

.js-c-c {
    justify-content: center;
}

.al-i-c {
    align-items: center;
}

.t-al-s {
    text-align: start;
}

.t-al-c {
    text-align: center;
}

.t-al-e {
    text-align: end;
}

.text-primary {
    color: #5ace90;
}

.space-between {
    justify-content: space-between;
}

.space-around {
    justify-content: space-around;
}

.border-box {
    box-sizing: border-box;
}

.hide-small {

    /* Extra small devices (phones, 600px and down) */
    @media only screen and (max-width: 600px) {
        display: none;
    }
}

#home-wrapper {
    gap: 1rem;

    @media only screen and (max-width: 600px) {
        gap: 1rem;
    }
}

.tile-main,
.tile-secondary,
.tile-tertiary {
    box-sizing: border-box;
    padding: 1rem;
    /* margin-top: 1rem;
    margin-bottom: 1rem; */
    border-radius: 8px;
    color: var(--text-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
.tile-main {
    background-color: var(--primary-color);
    color: var(--bg-color);
}
.tile-secondary {
    background-color: var(--secondary-color);
}
.tile-tertiary {
    background-color: var(--action-color);
    color: var(--bg-color);
}

.classroom-update img {
    max-width: 512px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#overlay-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

.alert {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: x-large;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    border: 3px solid var(--action-color);
    background-color: var(--action-color);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

#schedule-wrapper {
    height: 72%;
    max-height: 592px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    /* padding: 0.5rem; */
}

#schedule-wrapper::-webkit-scrollbar {
    display: none;
}

.schedule-cell {
    min-height: 96px;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--text-dark);
    border-radius: 16px;
    background-color: var(--secondary-color);
    transition: all 0.1s ease-in-out;

}

.schedule-cell:hover {
    scale: 0.99;
}

.schedule-time {
    min-height: 100%;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--tertiary-color);
    font-weight: bold;
    text-align: center;
    text-wrap: nowrap;
}

.schedule-lesson-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;

    /* Extra small devices (phones, 600px and down) */
    @media only screen and (max-width: 600px) {
        flex-direction: column;
    }

    align-items: center;
    gap: 0.2rem;
}

.schedule-lesson-wrapper a {
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: small;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    transition: all 0.1s ease-in-out;
}

.schedule-lesson-wrapper a:hover {
    filter: brightness(90%);
}

.schedule-lesson-wrapper span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.current {
    border: 2px solid var(--primary-color);
    animation-name: blink;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.current a {
    background-color: var(--action-color);
}

#pagination-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#pagination-wrapper a,
#pagination-wrapper span {
    padding: 0.5rem;
    border-radius: 8px;
    background-color: var(--tertiary-color);
    color: var(--text-light);
}

#pagination-wrapper span {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

#pagination-wrapper a {
    text-decoration: none;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--content-width);
    min-height: 456px;
    box-sizing: border-box;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 8px;
    border: 3px dashed var(--accents-color);
    background-color: var(--bg-color);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    transition: all 0.1s cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes blink {
    0% {
        border-color: hsl(148, 54%, 58%);
    }

    50% {
        border-color: hsl(148, 54%, 28%)
    }

    100% {
        border-color: hsl(148, 54%, 58%)
    }
}