
body {
    font-family: "Eczar", serif;
    margin: 0;
    padding: 0;
    background: url('https://ik.imagekit.io/aoe2tournaments/AoZY96i.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4.5rem;
}

h1 {
    text-align: center;
    font-size: 3em;
    margin-top: 6.25rem;
    color: white;
}

h2 {
    font-size: 2em;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
    color: white;
}

h3 a {
    text-decoration: none;
    color: black;
}

    h3 a:visited {
        color: black;
    }

p a {
    text-decoration: none;
}

html {
    overflow-y: scroll;
}

.event-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    margin-bottom: 9.4rem;
    gap: .9rem;
    width: 100%;
    max-width: 94rem;
    min-height: 400px;
}

.event {
    background: url('https://ik.imagekit.io/aoe2tournaments/eventbg.webp') no-repeat center center;
    background-size: cover;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    color: black;
}

    .event h3 {
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 1.5em;
        text-align: center;
    }

    .event p {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 20px;
        line-height: 1.2;
    }

    .event img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 200px;
        border-radius: 5px;
    }

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0);
    overflow: visible;
}

    .topnav a {
        background: url('https://ik.imagekit.io/aoe2tournaments/select%20sign.png') no-repeat center center;
        background-size: 100% auto;
        color: #f2f2f2;
        text-align: center;
        padding: 14px 50px;
        margin-right: 50px;
        text-decoration: none;
        font-size: 17px;
        position: relative;
        background-repeat: no-repeat;
        background-position: center;
        text-decoration: none;
        z-index: 1;
        display: flex; 
        align-items: center;
        justify-content: center;
    }

.topnav a::before,
.topnav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: url('https://ik.imagekit.io/aoe2tournaments/metal%20strip.png?updatedAt=1746374542469') repeat-x;
    z-index: -1;
}

.topnav a::before {
    top: 0;
}

.topnav a::after {
    bottom: 0;
}

        .topnav a:hover {
            opacity: .9;
        }

        .topnav a.active {
            background: url('https://ik.imagekit.io/aoe2tournaments/sign%202.png?updatedAt=1746369913935') no-repeat center center;
            background-size: 100% auto;
            color: rgb(255, 255, 255);
            padding: 14px 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }



/* phone bp */
@media (max-width: 480px) {
    h2 {
                text-align: center;
            }
    .topnav a.active {
            padding: 14px 10px;
        }

    .event-container {
        grid-template-columns: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .event {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding: 15px;
        color: black;
    }

    .main-content {
        flex-direction: column;
    }

    .topnav {
        margin: 0px;
        width: 100%;
        background: black;
    }

    .topnav a {
        background: none;
        background-size: 100% auto;
        color: #ffffff;
        padding: 14px 10px;
        margin: 0px;
        text-align: center;
        text-decoration: none;
        font-size: 15px;
        position: relative;
        background-repeat: no-repeat;
        background-position: center;
        text-decoration: none;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .topnav a::before,
    .topnav a::after {
        content: '';
        position: absolute;
        width: 0px;
        height: 0px;
        background: none;
        z-index: -1;
    }
    
            .topnav a.active {
                background: black;
                background-size: 100% auto;
                color: rgb(255, 255, 255);
                display: flex;
                align-items: center;
                justify-content: center;
                text-align: center;
            }
    
}
