body {
    font-family: 'MyCustomFont', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: url('images/bglg.png') no-repeat center center fixed;
    background-size: cover;
    color: #f8f8f8;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('fonts/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

header {
    background: linear-gradient(45deg, #220157, #5a13e9, #220157);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    font-size: 18px;
}

nav ul li a {
    color: #dbdbdb;
    text-decoration: none;
}

nav ul li a:hover {
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.rules {
    padding: 50px 20px;
    text-align: center;
    transition: transform 0.3s;
}

.rules-content {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.67), rgba(0, 0, 0, 0.671));
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s;
}

.rules-content:hover {
    transform: scale(1.02);
}

.rules h2 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rules ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.rules ul li {
    font-size: 18px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: background 0.3s;
}

.rules ul li:hover {
    background: rgba(0, 0, 0, 0.3);
}

.rules ul li strong {
    color: #ffffff;
}

footer {
    background: linear-gradient(45deg, #05000e, #290169, #05000e);
    padding: 20px;
    text-align: center;
    margin-top: auto; 
    transition: transform 0.3s;
}

.footer-logos {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo {
    width: 50px;
    height: auto;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars-container .star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: moveStar 10s linear infinite;
}

.stars-container .star.small {
    width: 2px;
    height: 2px;
}

.stars-container .star.medium {
    width: 4px;
    height: 4px;
}

.stars-container .star.large {
    width: 6px;
    height: 6px;
}

@keyframes moveStar {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(200px, 200px);
    }
}