@font-face {
    font-family: "Rubik";
    src: url("../fonts/Rubik/Rubik-VariableFont_wght.6d3102fa3319.ttf");
}


:root {
    font-size: 16px;
    font-family: "Rubik", sans-serif;
}

.test-static-error {
    color: red;
    background: red;

}


/*@keyframes color-rotate {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }
}

.logo:hover {
    animation: color-rotate 6s;
    animation-iteration-count: infinite;
}*/


.light {

    --color-text-main: black;
    --color-text-secondary: #666666;
    --color-text-main-hover: rgba(0, 0, 0, .75);

    --color-body-solid: rgb(111,255,255);
    --color-body-grad: linear-gradient(90deg, rgba(111,255,255,1) 0%, rgba(186,131,252,1) 100%);

    --color-wrapper-main: rgba(255, 255, 255, 1);
    --color-wrapper-secondary: rgba(240, 240, 240, 1);

    --color-hr: #dddfe0;


/*  
    МБ потом пригодится (нет)
    --color-green: rgb(56, 214, 141);
    --color-red: rgb(214, 56, 56);
    --color-gray: rgb(150, 150, 150);
    --color-purple: rgb(106, 90, 205);
    --color-blue: rgb(56, 145, 214);
*/
}

.dark {

    --color-text-main: white;
    --color-text-secondary: #999;
    --color-text-main-hover: rgba(255, 255, 255, .75);

    --color-body-solid: rgb(0,111,111);
    --color-body-grad: linear-gradient(90deg, rgba(0,111,111,1) 0%, rgba(94,0,128,1) 100%);
    
    --color-wrapper-main: rgb(33,37,41, 1);
    --color-wrapper-secondary: rgba(51, 51, 51, 1);

    --color-hr: #dddfe0;
    

/*  
    МБ потом пригодится (нет)
    --color-green: rgb(40, 150, 100);
    --color-red: rgb(150, 40, 40);
    --color-gray:  rgb(100, 100, 100);
    --color-purple: rgb(86, 70, 185);
    --color-blue: rgb(40, 100, 150);
*/
}


body {

    margin: 0;
    padding: 0;

    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
/*    -webkit-text-size-adjust: 100%;*/

    background: var(--color-body-solid);
    background: var(--color-body-grad);
    color: var(--color-text-main);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



a {
    color: currentColor;
    text-decoration: none;
    white-space:nowrap;
    cursor: pointer;
}

hr {
    border: 0;
    height: 1px;
    background: var(--color-hr);
}


.utka-spinner {
    background: url("/static/core/img/utka-loading.8e9a3762ce9a.svg") center no-repeat;
    background-size: contain;
    width: 100%;
    height: 100%;
    display: inline-block;
}

.dark .logo {
    filter: brightness(0) invert(1);
}

.dark .footer-line .logo {
/*    https://codepen.io/sosuke/pen/Pjoqqp*/
    filter: brightness(0) invert(75%) sepia(0%) saturate(1632%) hue-rotate(172deg) brightness(86%) contrast(69%);
}

#alert-danger, #alert-success {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 20px;
    background-color: #f44336;
    color: white;
    z-index: 10;

    opacity: 0;
    display: none;
    transition: opacity 0.6s;
    min-width: 30%;
    width: 90%;
}

#alert-success {
    background-color: #04AA6D;
}

.alert-close {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
  padding: 0 5px;
}

.alert-close:hover {
  color: black;
}

.label-new, .label-mobile-new {
    position: relative;
}

.label-new::after {
    content: "new";
    background: #f44336;
    color: white;
    padding: 1px 2px;
    border-radius: 4px;

    position: absolute;
    top: 15px;
    right: -22px;
    font-size: 12px;
    font-weight: 400;
/*    transform: rotate(45deg);*/

}

.label-mobile-new::after {
    content: "new";
    background: #f44336;
    color: white;
    padding: 1px 2px;
    border-radius: 4px;

    position: absolute;
    line-height: 16px;
    margin-left: 5px;
    font-size: 12px;
    font-weight: 400;
    text-transform: lowercase;
/*    transform: rotate(45deg);*/

}


.navbar {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: var(--color-wrapper-main);
    color: var(--color-text-main);

    font-weight: 500;

    box-shadow: 0 0 20px 0 rgba(85, 85, 85, 0.5);
    border-radius: 0 0 8px 8px;
}



.navbar-line {
    list-style: none;
    width: 90%;
    margin: 0 auto;
    padding: 0;

    min-height: 80px;
    height: 80px;

    display: flex;
    align-items: center;
    gap: 3rem;

}

.navbar .navbar-line + .navbar-line {
    border-top: 1px solid var(--color-hr);
    gap: 2rem;
    font-size: 0.9rem;
}

#navbar-lg {
    display: none;
}

#navbar-sm .navbar-line {
    justify-content: space-between;
    font-size: 1.5rem;
    gap: 0;
}

#navbar-sm a {
    padding: 0 10px;
}


.nav-item:not(#user-dropdown) {
    height: 100%;
}

.nav-item a {
    height: 100%;
    text-transform: uppercase;

    display: flex;
    align-items: center;
    justify-content: center;
    
    
}

.nav-item a:hover {
    color: var(--color-text-main-hover);
}



.nav-item.active {
    font-weight: 800;
}


.navbar-last-item {
    margin-left: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.theme-checkbox {
    width: 50px;
    height: 25px;
    border-radius: 50px;
    border: 2px solid var(--color-hr);
    cursor: pointer;
    background-color: var(--color-text-main);
}

.light .theme-checkbox::before {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;

    content: '\f186';
    background-color: var(--color-wrapper-main);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 2.5px;

    font-family: 'Font Awesome 5 Free';
    font-weight: 900;

    transition: 0.2s;
}

.dark .theme-checkbox::before {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;

    content: '\f185';
    background-color: var(--color-wrapper-main);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 2.5px;

    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;

    transition: 0.2s;
    transform: translate(25px);
}


#user-window {
    border: 1px solid;
    box-sizing: border-box;
    border-radius: 2px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#user-notifications {
    position: relative;
    border-right: 1px solid;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

#user-notifications a {
    padding: 15px 15px;

    z-index: 2;
}

#user-notifications span {
    z-index: 1;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f44336;
    font-size: 11px;

    min-width: 17px;

    aspect-ratio: 1;

    box-sizing: border-box;
    border-radius: 50%;

    transform: translate(60%, -60%);
}

#user-notifications-sm {
    position: relative;
}

#user-notifications-sm::after {
    content: '';
    position: absolute;
    top: 25px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: #f44336;
    border-radius: 50%;
    border: 2px solid var(--color-wrapper-main);
}


#user-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    position: relative;
}

#user-dropdown a {
    padding: 15px 5px;
}


#user-dropdown-wrapper {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    background-color: var(--color-wrapper-main);
    border-radius: 2px 2px 4px 4px;
    border: 1px solid;
    box-sizing: border-box;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 50;
    width: 100%;
}

#user-dropdown-content {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    margin-left: 10px;
}


#user-dropdown a span {
    margin-left: 10px;
}



.sidebar {
    padding: 24px 18px 0 18px;
    width: calc(100% - 36px);
    height: 100vh;
    background: var(--color-wrapper-main);
    color: var(--color-text-main);
    box-shadow: 0 0 20px 0 rgba(85, 85, 85, 1);
    position: fixed;
    top: 0;

    z-index: 100;
    overflow-y: scroll;
    font-weight: 500;

}


#navbar-left {
    display: none;
    left: 0;    
}

#navbar-left-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#navbar-left-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    text-transform: uppercase;
    width: 100%;
    margin-top: 20px;
}

.menu-item {
    padding: 6px;
}

.menu-item.active {
    font-weight: 800;
}

#navbar-left-menu ul {
    list-style: none;
}


#navbar-right {
    display: none;
    right: 0;
}


#navbar-right-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#navbar-right-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#navbar-right-info img {
    margin-top: 30px;
    margin-bottom: 12px;
}

#navbar-right-info .shcool-name{
    font-weight: 700;
    font-size: 2rem;
    line-height: 2rem;
}

#navbar-right-info .sub-shcool-name{
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: -0.4px;
}

#navbar-right-info .secret{
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    white-space: nowrap;

}


#navbar-right-buttons {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
}

#navbar-right-buttons a {
    width: 250px;
    font-size: 1rem;
}



#body-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 90;
    background-color: rgba(0, 0, 0, .5);

}


#wrapper {
    width: calc(100% - 32px);
    margin: 50px auto;
    background-color: var(--color-wrapper-main);
    box-shadow: 0 0 20px 0 rgba(85, 85, 85, 0.5);
    border-radius: 16px;
    padding: 16px;
}


#footer {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: var(--color-wrapper-main);
    color: var(--color-text-main);
    box-shadow: 0 0 20px 0 rgba(85, 85, 85, 0.5);
    border-radius: 10px 10px 0 0;

/*    margin-top: auto;*/
}

.footer-line {
    list-style: none;
    margin: 0;
    padding: 0;

    min-height: 80px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    flex-direction: column;
    font-weight: 400;
}


.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.footer-title-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;

    color: var(--color-text-secondary);
}

.footer-logo-title {
    font-size: 3rem;
    line-height: 3rem;
    font-weight: 500;
}

.footer-logo-subtitle {
    font-size: 0.9rem;
    line-height: 0.5rem;
    font-weight: 400;
    white-space: nowrap;
}






/* Screen xxl (Extra extra large) */
@media (min-width: 1400px) {
    #wrapper {
        max-width: 1320px;
    }
    .navbar {
        max-width: 1728px;
    }

    #navbar-sm {
        display: none;
    }
    #navbar-lg {
        display: block;
    }

    .footer-line{
        flex-direction: row;
        gap: 4rem;
    }

    #navbar-left {
        width: 314px;
    }
    #navbar-right {
        width: 314px;
    }
    #footer .theme-checkbox {
        display: none;
    }

    #alert-danger, #alert-success {
        width: auto;
    }
}

/* Screen xl (Extra large) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    #wrapper {
        max-width: 1140px;
    }
    .navbar {
        max-width: 1493px;
    }

    #navbar-sm {
        display: none;
    }
    #navbar-lg {
        display: block;
    }

    .footer-line{
        flex-direction: row;
        gap: 4rem;
    }

    #navbar-left {
        width: 314px;
    }
    #navbar-right {
        width: 314px;
    }
    #footer .theme-checkbox {
        display: none;
    }

    #alert-danger, #alert-success {
        width: auto;
    }
}

/* Screen lg (Large) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #wrapper {
        max-width: 960px;
    }
    .navbar {
        max-width: 1258px;
    }

    #navbar-sm {
        display: none;
    }
    #navbar-lg {
        display: block;
    }

    .footer-line{
        flex-direction: row;
        gap: 4rem;
    }

    #navbar-left {
        width: 314px;
    }
    #navbar-right {
        width: 314px;
    }
    #footer .theme-checkbox {
        display: none;
    }

    #alert-danger, #alert-success {
        width: auto;
    }
}

/* Screen md (Medium) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #wrapper {
        max-width: 720px;
    }
    .navbar {
        max-width: 943px;
    }

    #navbar-left {
        width: 314px;
    }
    #navbar-right {
        width: 314px;
    }

}

/* Screen sm (Small) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #wrapper {
        max-width: 540px;
    }
    .navbar {
        max-width: 707px;
    }

    #navbar-left {
        width: 314px;
    }
    #navbar-right {
        width: 314px;
    }

}


