@import url('https://fonts.googleapis.com/css?family=Hammersmith+One|Russo+One|Staatliches&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Hammersmith One', sans-serif;
}

body {
    background: #2d313f;
    color: #48ff00;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 1s ease-in-out;
}

.logo {
    font-family: 'Russo One', sans-serif;
    font-size: 2rem;
    color: #48ff00;
}

.nav .menu {
    display: flex;
    list-style: none;
}

.menuitem a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
}

.menuitem:hover {
    color: #ff0000;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in-out;
}

.content {
    width: 80%;
    max-width: 1200px;
    margin: 2rem auto;
    text-align: center;
}

.title {
    font-family: 'Staatliches', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-in-out;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rule-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border: 0.1vw solid #3ca918;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    text-align: left;
    animation: flyInRight 0.5s ease-in-out;
    animation-delay: var(--delay);
    animation-fill-mode: both;
    transition: transform 0.3s;
}

.rule-item:nth-child(1) {
    --delay: 0.1s;
}

.rule-item:nth-child(2) {
    --delay: 0.2s;
}

.rule-item:nth-child(3) {
    --delay: 0.3s;
}

.rule-item:nth-child(4) {
    --delay: 0.4s;
}

.rule-item:hover {
    transform: scale(1.05);
}
.backguy {
    position: absolute;
    bottom: 0;
    right: 2rem;
    width: 20rem;
    animation: fadeIn 1s ease-in-out;
}
.rule-title {
    font-family: 'Staatliches', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rule-description {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 1.2rem;
    color: #aaa;
}

.footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    text-align: center;
    color: #48ff00;
    animation: fadeInUp 1s ease-in-out;
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #3ca918;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#myBtn:hover {
    background-color: #2f8b12;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flyInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
