html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
    font-family: comic sans ms,comic-sans-w01-regular,comic-sans-w02-regular,comic-sans-w10-regular,cursive;
    background-image: url(media/main.gif);
    background-size: cover;
}
main {
    background-color: rgb(255, 255, 255);
    box-shadow: 5px 5px 5px rgb(0,0,0);
    margin: 20px auto;
    width: fit-content;
    z-index: 1;
    border: 2px solid rgb(0,0,0);
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 50px;
}
.main-content {
    width: 700px;
}
footer {
    position: relative;
    z-index: 1;
}
.main-content h1 {
    text-align: center;
    font-size: 56px;
}
.main-content h2 {
    text-align: center;
    font-weight: bold;
}
.main-content p {
    text-align: justify;
    margin-top: 10px;
}
.main-content h2, .main-content p {
    font-size: 16px;
    color: rgb(117, 117, 117);
}
nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: -20px;
}
nav a {
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: rgb(255, 255, 255);
    background-color: rgb(0,0,0);
    border: 1px solid rgb(0,0,0);
    width: 350px;
    margin-bottom: 10px;
    padding: 15px 0;
    border-radius: 30px;
    transition-duration: 0.5s;
}
nav a:first-child {
    background-color: rgb(109, 23, 23);
    border-color: rgb(109, 23, 23);
}
nav a:hover {
    background-color: rgb(109, 23, 23);
    border-color: rgb(109, 23, 23);
}
nav a:active {
    transform: scale(95%);
}
footer {
    text-align: center;
}
footer p {
    margin-bottom: -20px;
}
footer a {
    color: rgb(109, 23, 23);
    text-decoration: none;
    transition-duration: 0.5s;
}
footer a:hover {
    color: rgb(165, 101, 4);
}
.telegram-button {
    position: fixed;
    right: 13px;
    bottom: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    color: rgb(255, 255, 255);
    text-align: center;
    line-height: 53px;
    font-size: 35px;
    z-index: 9999;
}
.telegram-button a {
    color: rgb(255, 255, 255);
}
.telegram-button img {
    width: 55px;
    height: 55px;
    margin-right: 5px;
}
.telegram-button:before,
.telegram-button:after {
    content: " ";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid rgb(0, 170, 255);
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden; 
}
 
.telegram-button:after{
    animation-delay: .5s;
}
 
@keyframes animate
{
    0%
    {
        transform: scale(0.5);
        opacity: 0;
    }
    50%
    {
        opacity: 1;
    }
    100%
    {
        transform: scale(1.2);
        opacity: 0;
    }
}
.rumine-button {
    position: fixed;
    right: 13px;
    bottom: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    background-color: rgb(196, 130, 32);
    color: rgb(255, 255, 255);
    text-align: center;
    line-height: 53px;
    font-size: 35px;
    z-index: 9999;
}
.rumine-button a {
    color: rgb(255, 255, 255);
}
.rumine-button img {
    width: 45px;
    height: 45px;
    margin-top: 5px;
}
.rumine-button:before,
.rumine-button:after {
    content: " ";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid rgb(196, 130, 32);
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden; 
}
 
.rumine-button:after{
    animation-delay: .5s;
}
 
@keyframes animate
{
    0%
    {
        transform: scale(0.5);
        opacity: 0;
    }
    50%
    {
        opacity: 1;
    }
    100%
    {
        transform: scale(1.2);
        opacity: 0;
    }
}
