*{
    box-sizing: border-box;
    background-color: #272B3B;
    font-family: Helvetica;   
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'roboto'; /* Name for your font */
    src: url('../fonts/Roboto/Roboto-VariableFont_wdth\,wght.ttf') format('truetype'); /* Path to the font file */
}

/* General Page Styles */
body {
    
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 1.6;
   
}



.rules-container {
    max-width: 600px; /* Set maximum width */
    margin: 0 auto; /* Center-align the content */
    padding:  30px; /* Added padding to create space from the sides */
    padding-top: 0;
    margin-bottom: 30px;
    text-align: center;
}

.rules-container h1 {
    color: #a8dce7;
    font-size: 1.58rem;
    margin: 30px 0;
    padding: 0;
    font-family: robato;
}

/* Rules container paragraph styling */
.rules-container p {
    font-size: 1rem;
    color: #d0d0d0;
    margin: 20px auto;
    padding: 10px 15px; /* Fixed padding syntax */
    max-width: 900px; /* Limit the width for better readability */
    text-align: justify;
    text-align: center;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly below */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
    
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active class for animation */
.rules-container p.active {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Move to original position */
}

.divider {
    display: block;
    margin: 0 auto; /* Automatically centers horizontally */
    margin-top: 7vh;
    margin-bottom: 7vh;
  }

/* Button Styles */
button {
    background-color: #a8dce7;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Added margin-top for more space between text and button */
}

button:hover {
    background-color: #88c1d2;
}

.pdf-download-button {
    display: inline-block;
    background-color: #a8dce7;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 20px; /* Added margin-top for space between text and button */
}

.pdf-download-button:hover {
    background-color: #7bb8c4;
}

/* Layout Adjustments for Devices */

/* Mobile Styles */
@media screen and (max-width: 600px) {
    .container {
        padding: 0 10px; /* More space on small screens */
    }

    h1 {
        font-size: 2rem;
        margin: 20px 0;
    }

    p {
        font-size: 0.9rem;
    }

    .divider img {
        width: 60px;
    }

    button, .pdf-download-button {
        padding: 10px 20px;
    }
}

/* Tablet Styles */
@media screen and (min-width: 601px) and (max-width: 768px) {
    .container {
        padding: 0 20px; /* Add padding for tablets */
    }

    h1 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1rem;
    }

    .divider img {
        width: 80px;
    }

    button, .pdf-download-button {
        padding: 10px 25px;
    }
}

/* Desktop Styles */
@media screen and (min-width: 769px) {
    .container {
        padding: 0 30px; /* More padding on larger screens */
    }

    h1 {
        font-size: 3rem;
    }

    p {
        font-size: 1.1rem;
    }

    .divider img {
        width: 100px;
    }

    button, .pdf-download-button {
        padding: 12px 30px;
    }
}
