
body {
    background-color: rgb(130, 9, 187);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(black 1px, transparent 1px),
        linear-gradient(90deg, black 1px, transparent 1px),
        linear-gradient(45deg, black 1px, transparent 1px),
        linear-gradient(135deg, black 1px, transparent 1px);
    background-size: 150px 150px;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

.gameTitle {
    color: black;
    text-align: center;
    font-family: 'Arial', sans-serif;
    margin-bottom: 30px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rcorners1 {
    border-radius: 15px;
    background: #ffffff;
    padding: 10px; 
    width: 200px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
    transition-duration: 0.4s;
}

.rcorners1:hover {
    background-color: #c3bdbd;
    color: white;
}

.link {
    border-radius: 5px;
    background: #ffffff;
    padding: 10px; 
    width: 140px;
    height: 205x;  
}

.rules-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #9403c9, #f9238e); /* Initial gradient */
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
}

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


.rules-header {
    text-align: center;
    font-size: 90px;
    font-family: 'Arial', sans-serif;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
    border-bottom: 2px solid rgb(0, 0, 0);
    padding-bottom: 10px;
}

.rules-content {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    font-size: 18px;
    text-align: left;
}

.rules-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.rules-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border: 1px solid #270c78;
    border-radius: 10px;
}

.link {
    display: block;
    text-align: center;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-top: 30px;
    font-size: 16px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s, color 0.3s;
}

.link:hover {
    background-color: #c3bdbd;
    color: white;
}
