/*pretty parts of web-site*/
.glow-on-hover {
    width: 100px;
    border: none;
    outline: none;
    color: var(--main-bg);
    background: var(--background);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover:before {
    content: '';
    background: -o-linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    -webkit-filter: blur(5px);
            filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    -webkit-animation: glowing 20s linear infinite;
            animation: glowing 20s linear infinite;
    opacity: 0;
    -webkit-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;
    
    border-radius: 10px;
}

.glow-on-hover:active {
    color: var(--background);
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--background);
    left: 0;
    top: 0;
    border-radius: 10px;
}

.d1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    width: 40px;
    height: 40px;
    border: 2px solid;
    border-color: var(--main-color);
    border-radius: 50%;
    z-index: 1;
    cursor: pointer;
    -webkit-transition: transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
    -moz-transition: transform 0.5s ease;
    -ms-transition: transform 0.5s ease;
}

.d1:hover {
    -webkit-transform: scale(1.3);
        -ms-transform: scale(1.3);
            transform: scale(1.3);
}

.d2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: -1px;
    margin-right: -1px;
    width: 20px;
    height: 38px;
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
    background-color: var(--background);
    z-index: 1;
}
.smiley:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
}
section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-left: 5%;
    padding-right: 5%;
}

.sectionTitle {
    margin-top: 40px;
    margin-bottom: 15px;
    width: 100%;
    font-family: Verdana;
    font-size: 175%;
    text-align: center;
}
section p:nth-of-type(odd) {
    margin-top: 5px;
    margin-bottom: 10px;
    width: 100%;
    color: var(--main-color);
    font-family: Verdana;
    line-height: 1.5;
}
section p:nth-of-type(2n) b {
    color: greenyellow;
    
}
section p:nth-of-type(odd) b {
    color: red;
}

/* Additions for modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.3);
    -webkit-animation: slidein 0.5s forwards;
            animation: slidein 0.5s forwards;
}

.modal-content {
    background-color: var(--main-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 70%;
    height: 50%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    text-align: center;
}
.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="file"],
.modal-content button {
    display: block;
    width: calc(70%); /* Уменьшаем ширину полей ввода и кнопки загрузки */
    margin: 10px auto; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-content input[type="file"] {
    width: calc(60%);
}

.modal-content button {
    width: calc(50%);
    margin: 10px auto;
    padding: 10px;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    font-size: 20px;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-color);
    color: var(--main-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 0 0 5px white;
}

.custom-file-upload:hover {
    background-color: var(--button-hover-color);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal.slide-out {
    -webkit-animation: slideout 0.5s forwards;
            animation: slideout 0.5s forwards;
}

@-webkit-keyframes slidein {
    from { -webkit-transform: translateX(+100%); transform: translateX(+100%); }
    to { -webkit-transform: translateX(0); transform: translateX(0); }
}

@keyframes slidein {
    from { -webkit-transform: translateX(+100%); transform: translateX(+100%); }
    to { -webkit-transform: translateX(0); transform: translateX(0); }
}

@-webkit-keyframes slideout {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to { -webkit-transform: translateX(+100%); transform: translateX(+100%); }
}

@keyframes slideout {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to { -webkit-transform: translateX(+100%); transform: translateX(+100%); }
}

@-webkit-keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}