/* обычный фон 363940  */
/* идея 2 14171a */
/* вставка кода 303136 */
/* контур вставки 212227 */
/* вызов функции de9551 */

/* цвет значения в скобках a2caee */
/* цвет комментария */
/* цвет import e9776d */
/* d7d8dc цвет всего остального */
/* где то можно использовать зелененький 48a56c */
/* имя класса c */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;900&family=Source+Code+Pro:wght@300;400;500;600&display=swap');

* {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    /* font-size: large; */
    font-size: 12px;
    color: #d7d8dc;
}

/* В этом случае браузер при рассчитывании ширины и высоты элементов будет включать в них поля (padding) и границы (border). */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100vh;
}


body {
    background-color: #363940;
    height: 100%;
    min-height: 100%;

    /* overflow: hidden; */
}

main {
    color: #d7d8dc;
    margin-left: 15%;
    /* margin-left: 20%;
    margin-right: 20%; */



    /* height: 100vh; */
    display: flex;
    /* align-items: center; */
    justify-content: center;
    font-size: 2rem;

}


main.noswap {
    height: 100%;
    overflow: hidden;
    /* overflow: hidden; */

    /* background-color: #383888; */

    /* height: 50%;
    top: 25%; */
    /* margin:25%; */
    /* align-items: center;
    display: flex;
    flex-direction: column; 
    height: 100vh; */
    /* justify-content: flex-start; */
    /* align-items: flex-start; */
}

.area {
    display: flex;
    flex-direction: column;
    width: 30%;
    height: 30%;
    margin: auto;

    justify-content: center;
    align-items: center;
    /* gap: 2rem; */
    padding: 10px;
    background-color: #303136;
    border: 1px solid #242226;
    /* justify-content: flex-start;
    align-items: flex-start; */
}

.menu {
    background-color: #303136;
    border: 1px solid #242226;
    width: 15%;
    height: 100%;
    position: fixed;
    overflow: hidden;
}

header.mainmenu {
    padding: 40px 10px 40px 30%;
}

li.mainmenu {
    padding: 12px 0px 12px 30%;
    /*     display: flex; */
    position: relative;

    /*     left: 20px; */
}

li.secondnav {
    padding-top: 12px;
}

/*


nav.mainmenu{
} */

/* header.noswap{ */
/* display: block; */
/* width: 100%; */
/* } */

.standart {
    background-color: #383888;
    /* background-color: #d7d8dc; */
    color: #d7d8dc;
    /* color: #212227; */
    border-radius: 5px 5px 5px 5px;
    /* border: 0; */
    border: 1px solid #212227;
    font-size: 1.7rem;
    /* display: block; */
    padding: 8px 10px;
    width: 270px;
    /* margin: 16px; */
    /* box-shadow: 0 0 20px #383888; */
}


.standart:hover {
    box-shadow: 0 0 20px #383888;
}


article {
    padding-top: 80px;
    /* display: flex;
    flex-direction: column; */
    /* почитать, как сделать расстояние с помощью flex */
    width: auto;
    max-width: 80%;
    min-width: 80%;
}

h1 {
    font-weight: 500;
    font-size: xx-large;
}

h3 {
    font-weight: 500;
    font-size: 2rem;
    color: #8080FF;
}

p {
    font-size: 1.7rem;
}

img {
    max-width: 700px;
    border: 2px solid #242226;
    box-shadow: 0px 0px 20px #242226;
    margin-top: 6px;
    margin-bottom: 12px;
}


pre.code {
    border: 1px solid #242226;
    background-color: #303136;

    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px;
    /* font-size: 20px; */
    box-shadow: 0px 0px 20px #242226;
}

pre.text {
    font-size: 1.7rem;
}

/* непросмотренная ссылка */
a:link,
a:visited {
    color: #d7d8dc;
}


/* наведите указатель мыши на ссылку */
/* a:hover {
    color: #e9776d;
} */

ul {
    /*     margin-bottom: 8px;
    margin-top: 8px; */
    list-style-type: none;
    overflow: overflow;
}

li a {
    text-decoration: none;
    font-size: 2rem;
}


li.mainmenu div {
    position: absolute;
    width: 20px;
    /* width: 80%; */
    right: 0;
    height: 80%;
    top: 10%;
    bottom: 10%;
    /* padding-top: 10px;
    padding-bottom: 10px; */
    background-color: #383888;
    border-radius: 5px 0px 0px 5px;
    z-index: -1;
}

li.mainmenu:not(.active):hover a {
    /*     background-color: #242226; */
    color: #D7D8DC;
}

li:hover a {
    color: #8080FF;
}

li.mainmenu.active div {
    /*     display: block; */
    background-color: #383888;
    /*     color: #d7d8dc; */
}

li.mainmenu:not(.active) div {
    /*     display: block; */
    background-color: #303136;
    /*     color: #d7d8dc; */
}

li.mainmenu:hover:not(.active) div {
    background-color: #383888;
    color: #d7d8dc;
    width: 85%;
}



/* непросмотренная ссылка */
/* li a:link, a:visited {
    color: #d7d8dc;
} */

nav {
    display: block;
}

section {
    padding-bottom: 40px;
}


footer {
    margin-bottom: auto;
}

/* h1{
    width: 100px;
} */

input,
textarea {
    background-color: #d7d8dc;
    border: 1px solid #212227;
    color: #242226;
    font-size: 1.7rem;
    font-weight: 400;
    /* 1 */
    /* font-family: inherit;  
    font-size: inherit;  
    line-height: inherit; */
    margin: 8px 0;
    padding: 8px 10px;
    width: 100%;
    outline: none;
    resize: none;
    /* border-radius: 4px; */
    /* resize: none; */
}

*:not(code, textarea)::selection {
    background-color: #242226;
    /* color: #212227; */
}

textarea::selection,
input::selection {
    background-color: #c4c4c4;
    /* color: #212227; */
}

code::selection {
    background-color: #383888;
}

table {
    white-space: 10px;
    width: 100%;
    table-layout: fixed;
    /* margin-top: 6px;
    margin-bottom: 6px; */
    /* border-spacing: 10px; */
}

td {
    white-space: 10px;
    position: relative;
}

td>* {
    position: absolute;
    top: 0px;
    height: 100%;
    margin: 0;
    width: 100%;
}

td .hidden {
    position: relative;
    visibility: hidden;
}

/* 
img {
    width: 100px;
    height: 100px; 
    object-fit: scale-down;
}  */
/* 
img, h1{
    display: inline;
    vertical-align: middle;
} */


main {
    /* padding: 80px, 0px; */
    padding-bottom: 80px;
    padding-top: 80px;
}

article {
    padding: 0px;
}