body {
    margin: 0;
    font-family: Arial;
    background: radial-gradient(circle at top, #1a1a2e, #05050d);
    color: white;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(20,20,40,0.9);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 50px;
    margin-right: 10px;
}

.logo-container h1 {
    color: orange;
    text-shadow: 0 0 10px orange;
}


nav a {
    margin: 0 10px;
    color: #c77dff;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: orange;
    text-shadow: 0 0 10px orange;
}

.rules h2 {
    font-size: 36px;
    text-shadow:
        0 0 10px orange,
        0 0 20px orange,
        0 0 40px purple;
}

.rules {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rules-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.rule-box {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    width: 350px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.1);

    box-shadow: 
        0 0 25px rgba(0,200,255,0.2),
        inset 0 0 20px rgba(180,0,255,0.1);

    transition: all 0.3s ease;
}

.rule-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    z-index: -1;
}

.rule-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: orange;
    text-shadow: 0 0 10px orange;
}

.rule-box ul {
    list-style: none;
    padding: 0;
}

.rule-box li {
    margin: 12px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.rule-box li:hover {
    background: rgba(200, 0, 255, 0.2);
    transform: translateX(5px);
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    background: rgba(20,20,40,0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,200,255,0.2);
}

@media (max-width: 768px) {
    .rules-container {
        flex-direction: column;
        align-items: center;
    }

    .rule-box {
        width: 90%;
    }
}

#minecraft-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.buttons{
margin-top:10px;
}

.buttons a{

position:relative;
display:inline-block;

padding:16px 45px;
margin:12px;

font-size:18px;
font-weight:600;

color:white;
text-decoration:none;

border-radius:10px;

background:rgba(255,255,255,0.05);
backdrop-filter:blur(10px);

border:1px solid rgba(255,255,255,0.2);

overflow:hidden;

transition:0.35s;

}

.buttons a::after{

content:"";

position:absolute;

top:-50%;
left:-50%;

width:200%;
height:200%;

background:radial-gradient(circle,#3b82f6,transparent 70%);

opacity:0;

transition:0.4s;

}

.buttons a:hover::after{
opacity:0.3;
}

.buttons a:hover{

transform:translateY(-6px) scale(1.03);

box-shadow:
0 15px 40px rgba(0,0,0,0.5),
0 0 25px rgba(59,130,246,0.6);

border-color:#3b82f6;

}