#rules-page, #error {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    z-index: 2;
}

#rules-background {
    display: flex;
    flex-direction: column;
    width: 1000px;
    height: 650px;
    justify-content: space-evenly;
    align-items: center;
    border: solid white;
    border-radius: 20px;
    animation: none;
    opacity: 1;
}

#rules-page-exit, #error-exit {
    display: block;
    font-family: 'myFirstFont';
    font-size: 60px;
    color: black;
    font-weight: 800;
    text-decoration: none;
    background: none;
    transition: 0.4s;
    border: none;
    text-transform: uppercase;
    max-width: fit-content;
    cursor: pointer;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
    border-radius: 15px;
}

.rules-header, .error-header{
    border-radius: 20px;
    font-size: 80px;
    font-family: my-first-font;
    text-align: center;
    margin: 0px;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

.error-header{
    font-size: 60px;
}

.rules {
    font-size: 20px;
    color: white;
    padding-left: 70px;
    padding-right: 70px;
    font-family: "Inter", "Roobert", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.rules-background{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-top: 50px;
    padding-bottom: 50px;
}

