:root {
    --height-header: 60px;
    --width-sidebar: 260px;

    --color-text: #0b4e53;
    --color-text-DT: #fff;

    --background-body: #dfdfdf;
    --background-body-DT: #242424;

    --color-titleHead: #ffffff;
    --color-titleHead-DT: #eff8ff;
    
    --background-main: #3c9399;
    --background-main-DT: #00585c;
    
    --background-mainShade: #2a8187;
    --background-mainShade-DT: #067076; 

    --background-sidebar: #ccc;
    --background-sidebar-DT: #00585c;

    --color-sidebar: #00656a;
    --color-sidebar-DT: #e7feff;

    --color-grayDark: #5b5b5b;
    --color-grayLight: #afafaf;  
}
  


* {
    margin: 0;
    padding: 0;
}
BODY {
    font-family: Arial, sans-serif;
    font-size: 16px;
    background: var(--background-body);
    color: var(--color-text);
}
H1 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
H2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
P {
    line-height: 1.35;
    margin-bottom: 20px;
}

UL {
    list-style-position: inside;
}

#header {
    height: var(--height-header);
    background: var(--background-main);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid var(--background-body);
}
#footer {
    margin-left: var(--width-sidebar);
    background: #131313;
    color: white;
    padding: 50px;
}

#popup {
    background: #00000021;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 5;
    top: var(--height-header);
}
#popupFull {
    background: #0000004d;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* display: flex;
    justify-content: center;
    align-items: start; */
    top: 0;
    backdrop-filter: blur(5px);
}
#popupFull > div:nth-child(1) {
    margin-top: 100px;
}
#popupFull > div:nth-child(2) {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -100;
}

#main-content {
    margin: var(--height-header) 0 0 var(--width-sidebar);
    padding: 30px 0 90px 0;
    min-height: 100vh;
    box-sizing: border-box;
}

/* blockListMenu */
#blockListMenu {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    padding: 0 4px 0 12px;
}

/* blockLogo */
#blockLogo {
    display: flex;
    flex: 0 0 var(--width-sidebar);
    align-items: center;
    gap: 6px;
    justify-content: start;
    padding: 0 8px;
    box-sizing: border-box;
    transition: 0.2s;
    font-size: 26px;
    color: var(--color-titleHead);
    text-decoration: none;
}
#blockLogo:hover {
    background: var(--background-mainShade);
}

/* blockMiddle */
#blockMiddle {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* blockRegister */
#blockRegister {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

/* blockLogin */
#blockLogin {
    display: flex;
}
#blockLogin > * {
    width: var(--height-header);
    display: flex;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}
#blockLogin img[data-type="avatar"]  {
    flex: 1;
    margin: 4px;
    border-radius: 6px;
}
#blockLogin img[data-type="notification"]  {
    flex: 1;
    margin: 14px;
}
#blockLogin > *:hover {
    background: var(--background-mainShade);
}

#blockLogin .notificationCircle {
    position: absolute;
    top: 32px;
    left: 11px;
    background: red;
    border-radius: 20px;
    padding: 7px;
    border: 2px solid var(--background-main);
}



/* userMenu */
#userMenu {
    background-color: var(--background-main);
    width: 200px;
    margin: var(--height-header) 0 0 0;
    position: fixed;
    top: 0;
    box-sizing: border-box;
    transition: right 0.5s;
    z-index: 9;
    right: -200px;
}

#userMenu ul {
    list-style-type: none;
}

#userMenu ul a {
    padding: 16px;
    text-align: center;
    color: var(--color-titleHead);
    text-decoration: none;
    display: block;
}
#userMenu ul a:hover {
    background-color: var(--background-mainShade);
}



/* sidebar */
#sidebar {
    background-color: var(--background-sidebar);
    width: var(--width-sidebar);
    margin: var(--height-header) 0 0 0;
    height: calc(100% - var(--height-header));
    position: fixed;
    top: 0;
    box-sizing: border-box;
    transition: left 0.5s;
    z-index: 10;
    overflow: auto;
    scrollbar-width: thin;
}
#sidebar ul {
    list-style-type: none;
}
#sidebar ul a {
    display: block;
    padding: 8px;
    box-sizing: border-box;
    transition: 0.2s;
}
#sidebar ul a:hover {
    background: var(--background-main);
}
#sidebar ul a .ATT {
    gap: 6px;
}
#sidebar ul a .ATT > img {
    width: 50px;
    display: block;
}
#sidebar ul a .ATT > div > div:nth-child(1) {
    font-size: 26px;
    color: var(--color-sidebar);
}
#sidebar ul a .ATT > div > div:nth-child(2) {
    color: var(--color-grayDark);
    font-size: 14px;
}
#sidebar ul a:hover .ATT > div > div:nth-child(1) {
    color: var(--color-titleHead);
}
#sidebar ul a:hover .ATT > div > div:nth-child(2) {
    color: var(--color-titleHead);
}



/* listMenu */
#listMenu {
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
    background-image: url('/public/img/menu.png');
    background-position: center top;
    filter: brightness(135%);
}
#listMenu:hover {
    background-position: center bottom;
}


/* theme-switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background-main-DT);
    transition: 0.4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--background-main);
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider:before {
    transform: translateX(26px);
}




/*/////////////////////////////////*/
/*////////// ТЁМНАЯ ТЕМА //////////*/
/*/////////////////////////////////*/
body.dark-theme {
    background: var(--background-body-DT);
    color: var(--color-text-DT);
}
body.dark-theme #blockLogo:hover {
    background: var(--background-mainShade-DT);
}
body.dark-theme #sidebar {
    background-color: var(--background-sidebar-DT);
}
body.dark-theme #userMenu {
    background-color: var(--background-main-DT);
}
body.dark-theme #sidebar ul a .ATT > div > div:nth-child(1) {
    color: var(--color-sidebar-DT);
}
body.dark-theme #sidebar ul a .ATT > div > div:nth-child(2) {
    color: var(--color-grayLight);
}
body.dark-theme #sidebar ul a:hover {
    background: var(--background-mainShade-DT)
}
body.dark-theme #header {
    background: var(--background-main-DT);
    border-bottom: 2px solid var(--background-body-DT);
}
body.dark-theme #listMenu {
    filter: none;
}
body.dark-theme #blockLogin > *:hover {
    background: var(--background-mainShade-DT);
}
body.dark-theme #userMenu ul a:hover {
    background-color: var(--background-mainShade-DT);
}
body.dark-theme .slider {
    background-color: var(--background-main);
}
body.dark-theme .slider:before {
    background-color: var(--background-main-DT);
}
body.dark-theme #blockLogo {
    color: var(--color-titleHead-DT);
}
body.dark-theme #blockLogin .notificationCircle {
    border: 2px solid var(--background-main-DT);
}




/*/////////////////////////////////*/
/*////////// АДАПТИВНОСТЬ //////////*/
/*/////////////////////////////////*/
@media screen and (max-width: 1024px) {
    #main-content {margin: var(--height-header) 0 0 0;}
    #footer {margin-left: 0;}
    #sidebar {left: calc(-1 * var(--width-sidebar));}
    
    #blockListMenu {display: flex;}
    #blockLogo {flex: 0;}
}

@media screen and (max-width: 640px) {
    H1 {font-size: 26px; margin-bottom: 24px;}
    H2 {font-size: 20px; margin-bottom: 18px;}
    P {margin-bottom: 18px;}
}

@media screen and (max-width: 480px) {
    :root{--height-header: 50px;}
    #blockLogin img[data-type="notification"] {margin: 12px;}
    #blockLogin .notificationCircle {padding: 6px; top: 26px; left: 10px;}
    BODY {font-size: 15px;}
    H1 {font-size: 22px; margin-bottom: 20px;}
    H2 {font-size: 18px; margin-bottom: 16px;}
    P {margin-bottom: 16px;}
    #main-content {padding: 22px 0 70px 0;}
    .theme-switch {width: 30px; height: 30px;}
    .slider::before {height: 22px; width: 22px;}
    input:checked + .slider::before {transform: translateX(0);}
    #blockRegister {gap: 4px; padding-right: 4px;}
    #blockLogo {gap: 2px; padding: 0 4px; font-size: 18px;}
    #blockLogo img {width: 38px !important;}
    #blockListMenu {flex: 0 0 26px; padding: 0 0px 0 4px;}
    #listMenu { background-size: 26px; width: 26px; height: 26px;}
}