* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background: #e4d5b8;
}

::-webkit-scrollbar-track {
    border-radius: 0;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

/* Базовые стили */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    position: relative;
    font-family: sans-serif;
}

img {
    width: 100%;
}


.nav-bar {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    z-index: 200;
}
.author{
    color: #e4d5b8;
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
}
.author a{
    color: #e4d5b8;
}
.modal {
    display: none;
    position: fixed;
    justify-content: center;
    background: #e4d5b8;
    /* width: 200px; */
    /* top: 7%; */
    top: 50px;
    left: 50%;
    padding: 2%;
    z-index: 200;
    transform: translate(-50%, -50%);
}

.modal #text {
    position: relative;
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
    text-shadow: none;
    background-color: transparent;
}
.text-block-description{
    font-size: 12px;;
}
#space {
    text-align: center;
}

#frame,
.frame {
    position: absolute;
    border: 3px solid transparent;

    background-size: 100% 100%;
    background-repeat: no-repeat;
    table-layout: fixed;
}

#blend,
.blend {
    position: absolute;
    border: 3px solid transparent;
    background-color: rgb(255, 255, 80);
    mix-blend-mode: overlay;
}

#containerImg .blend {
    background-color: transparent;
}

#text,
.text {
    position: absolute;
    text-align: center;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: black;
    text-shadow: 1px 1px 0 rgb(255, 255, 128), -1px -1px 0 rgb(255, 255, 128), -1px 1px 0 rgb(255, 255, 80), 1px -1px 0 rgb(255, 255, 128);
    background-color: rgb(255, 255, 80);

}

#frame,
#blend,
#text {
    visibility: hidden;
    cursor: pointer;
}

.frame,
.blend,
.text {
    visibility: visible;
}


/* Работа переключателя */
#toggle {
   display: none;
}

#toggle:focus~.toggle-container .button-toggle {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.4), inset 0 0 0 20px rgba(0, 0, 0, 0.3);
}

#toggle:checked~.toggle-container .button-toggle {
    box-shadow: 0 0 0 330px rgba(0, 0, 0, 0.3), inset 0 0 0 20px rgba(0, 0, 0, 0.4);
}

#toggle:checked~.toggle-container .button-toggle:hover {
    box-shadow: 0 0 0 440px rgba(0, 0, 0, 0.3), inset 0 0 0 20px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 0 20px rgba(0, 0, 0, 0.3);
}

#toggle:checked~.toggle-container .button-toggle:before {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

#toggle:checked~.toggle-container .button-toggle:after {
    transform: translateY(-50%) rotate(-45deg) scale(1);
}

#toggle:checked:focus~.toggle-container .button-toggle {
    box-shadow: 0 0 0 550px rgba(0, 0, 0, 0.1), inset 0 0 0 20px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 20px rgba(0, 0, 0, 0.1);
}

#toggle:checked~.nav {
    margin-bottom: 100px;
    pointer-events: auto;
    transform: translate(40px, 50px);
    padding: 15px 0 0 0;
    margin: 0;
}

#toggle:checked~.nav .nav-item {
    color: #EC7263;
    letter-spacing: 0;
    height: 40px;
    line-height: 40px;
    margin-top: 0;
    opacity: 1;
    transform: scaleY(1);
    transition: 0.5s, opacity 0.1s;
}

#toggle:checked~.nav .nav-item:nth-child(1) {
    transition-delay: 0.15s;
}

#toggle:checked~.nav .nav-item:nth-child(1):before {
    transition-delay: 0.15s;
}

#toggle:checked~.nav .nav-item:nth-child(2) {
    transition-delay: 0.1s;
}

#toggle:checked~.nav .nav-item:nth-child(2):before {
    transition-delay: 0.1s;
}

#toggle:checked~.nav .nav-item:nth-child(3) {
    transition-delay: 0.05s;
}

#toggle:checked~.nav .nav-item:nth-child(3):before {
    transition-delay: 0.05s;
}

#toggle:checked~.nav .nav-item:nth-child(4) {
    transition-delay: 0s;
}

#toggle:checked~.nav .nav-item:nth-child(4):before {
    transition-delay: 0s;
}

#toggle:checked~.nav .nav-item:before {
    opacity: 0;
}

/* Кнопка для переключения */
.button-toggle {
    position: fixed;
    display: inline-block;
    width: 20px;
    height: 20px;
    padding: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 100%;
    transition: 0.6s;
    z-index: 200;
}

.button-toggle:hover {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.1), inset 0 0 0 20px rgba(0, 0, 0, 0.1);
}

.button-toggle:before,
.button-toggle:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 15px;
    width: 50%;
    height: 2px;
    background-color: #EC7263;
    border-radius: 5px;
    transition: 0.5s;
}

.button-toggle:before {
    transform: translateY(-50%) rotate(45deg) scale(0);
}

.button-toggle:after {
    transform: translateY(-50%) rotate(-45deg) scale(0);
}

/* Меню */
.nav {
    display: inline-block;
    padding: 25px 25px 0px;
    pointer-events: none;
    transition: 0.5s;
}

.nav-item {
    cursor: pointer;
    position: relative;
    display: inline-block;
    float: left;
    clear: both;
    color: transparent;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: -6.2px;
    height: 7px;
    line-height: 7px;
    text-transform: uppercase;
    white-space: nowrap;
    transform: scaleY(0.2);
    transition: 0.5s, opacity 1s;
}

.nav-item:nth-child(1) {
    transition-delay: 0s;
}

.nav-item:nth-child(1):before {
    transition-delay: 0s;
}

.nav-item:nth-child(2) {
    transition-delay: 0.05s;
}

.nav-item:nth-child(2):before {
    transition-delay: 0.05s;
}

.nav-item:nth-child(3) {
    transition-delay: 0.1s;
}

.nav-item:nth-child(3):before {
    transition-delay: 0.1s;
}

.nav-item:nth-child(4) {
    transition-delay: 0.15s;
}

.nav-item:nth-child(4):before {
    transition-delay: 0.15s;
}

.nav-item:nth-child(1) {
    letter-spacing: -8px;
}

.nav-item:nth-child(2) {
    letter-spacing: -7px;
}

.nav-item:nth-child(n + 4) {
    letter-spacing: -8px;
    margin-top: -7px;
    opacity: 0;
}

.nav-item:before {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #EC7263;
    transform: translateY(-50%) scaleY(5);
    transition: 0.5s;
}