.button .close {
    position: absolute;
    right: 35px;
    top: 35px;
    width: 30px;
    height: 30px;
    opacity: 1;
}
.button .close:hover {
    opacity: 1;
}
.button .close:before, .button .close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
}
.button .close:before {
    transform: rotate(45deg);
}
.button .close:after {
    transform: rotate(-45deg);
}


.popup{
    background: #262523;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    padding: 40px 40px;
    color: #818181;
    visibility: hidden;
    transition: all 0.4s ease-in-out;

}

.popup.open-popup{
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
    box-shadow: 0 0 5px 5px rgba(161, 161, 161, 0.2);
    border-radius: 10px;


}

.popup .themes{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-content: center;

    border-radius: 10px;
}

.popup .theme{
    width: 15rem;
    height: 75%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.popup .themes .box{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    border-radius: 10px;
    height: 14rem;
    width: 15rem;
    transition: transform 0.2s;
}

.popup .themes .box .text{
    width: 100%;
    height: 25%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.popup .themes .box .text h2{
    color: #818181;
    font-size: 1.3rem;
}




.popup .themes .box .theme img{
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    transition: transform 0.2s;
    object-fit: fill;

}

.popup .theme:hover{
    transform: scale(1.02);
}

.popup .theme:focus{
    outline: none;
    transform: scale(1);
}



.rules-btn .close {
    position: absolute;
    right: 35px;
    top: 10px;
    width: 30px;
    height: 30px;
    opacity: 1;
}
.rules-btn .close:hover {
    opacity: 1;
}
.rules-btn .close:before,
.rules-btn .close:after {
    position: absolute;
    left: 15px;
    content: " ";
    height: 33px;
    width: 2px;
    background-color: #484848;
}
.rules-btn .close:before {
    transform: rotate(45deg);
}
.rules-btn .close:after {
    transform: rotate(-45deg);
}

.rules-popup {
    background: #262523;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    text-align: center;
    width: 800px;
    height: 400px;
    color: #818181;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.open-rules-popup {
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
}
.rules {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 0 5px 5px rgba(161, 161, 161, 0.2);
    text-align: center;
    color: white;
}

.rules h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.rules h2::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.rules ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.rules li {
    margin-bottom: 15px;
    color: #ddd;
    font-size: 16px;
    line-height: 1.5;
}

.rules li strong {
    color: #fff;
    font-weight: bold;
}
    