@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@100;300;500&family=Poppins:wght@300;400;500;600&display=swap");
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #141414 !important;
    color: #f1f1f1 !important;
}

.logo-ctf-point {
    margin-right: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #520100; /* Set the initial background color */
    transition: background-color 0.3s ease; /* Add a smooth transition effect for the background color */
}

header:hover {
    background: rgba(82, 1, 0, 0.8); /* Set the desired background color with transparency on hover */
}

header:hover ~ section {
    margin-top: 100px; /* Adjust the margin to accommodate the height of the navigation bar */
}

.nav-links {
    display: flex;
    justify-content: flex-end;
}

.nav-links li a {
    color: #808080;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: rgba(255, 255, 255, 0.3);
}

li,
a,
button {
    list-style: none;
    text-decoration: none;
    color: white;
}

button {
    background-color: #212529;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

header button:hover {
    background-color: rgba(33, 37, 41, 0.7);
}

.title {
    pointer-events: none;
}

.buttons {
    display: flex;
    margin-top: 20px;
    padding: 0 5%;
    transition: color 0.3s ease;
}
.button-container {
    padding: 100px 5% 1.5rem 5%;
}

.buttons .upcomming {
    background-color: #d1c9b4;
    color: #301b0f;
    font-weight: 900;
    margin-right: -2px;
    margin-left: -2px;
}

.buttons .upcomming:hover {
    background-color: rgba(209, 201, 180, 0.7);
}

.buttons .orange {
    background-color: #4a3930;
    border: 1px solid orange;
    color: orange;
}

.buttons .orange:hover {
    border: 1px solid rgba(255, 165, 0, 0.7);
}

@keyframes slideInFromLeft {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

h1 {
    margin: 0;
}

hr {
    margin: 0 !important;
    height: 2px !important;
    padding: 0 5%;
    animation: 3s ease-out 0s 1 slideInFromLeft;
    background-color: #f4f4f4;
}

.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-right: 25px;
    padding: 0px 5%;
}

.flex-box .parent-box {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 20rem;
    margin-bottom: 40px;
    background-color: #141414;
    border-radius: 8px;
}

.child-box {
    width: 70%;
    display: flex;
    flex-direction: column;
    bottom: 0;
    height: 100%;
    background-color: #4c4c4c;
    border-radius: 0 8px 8px 0;
    justify-content: flex-start;
}

.title,
.button {
    margin: 1.5rem 2rem 0px 2rem;
}

.description {
    margin: 2rem 2rem 1.5rem 2rem;
}

.material-symbols-outlined {
    font-size: inherit;
}

.schedule {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0 2rem 0px 2rem;
}
.child-box .button {
    margin-top: 20px;
    margin-left: 0;
}

.child-box .button button {
    background-color: rgba(31, 69, 252, 1);
}

.child-box .button button:hover {
    background-color: rgba(31, 69, 252, 0.8);
}

.image {
    width: 30%;
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header .logo-ctf-point {
        margin: 0;
    }

    header button {
        margin-top: 20px;
    }

    .nav-links {
        margin-top: 10px;
        justify-content: center;
    }

    .child-box {
        border-radius: 0 0 8px 8px;
        width: 100%;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .buttons button {
        margin: 10px;
    }

    .flex-box {
        padding: 0 5%;
    }

    .flex-box .parent-box {
        flex-direction: column;
        width: 100%;
        height: 40rem;
    }

    .image {
        width: auto;
        height: 30vh;
    }

    .child-box .button {
        margin-bottom: 20px;
    }
}

.footer {
    background-color: #212529;
    color: white;
    padding: 2px;
}

.footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.footer li {
    margin: 0 10px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: gray;
}

footer.website-footer {
    height: 100%;
}

footer.website-footer .footer {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

footer.website-footer .footer ul {
    margin: 1rem 0 !important;
}

footer.website-footer .footer li.mt-3 {
    margin: 0 !important;
    font-size: min(1.4rem, 6vw);
    padding: 0 min(3vw, 10px) !important;
}

footer.website-footer .footer li.mt-3 a {
    color: white;
    -webkit-transition-duration: 300ms;
    transition-duration: 300ms;
}

footer.website-footer .footer li.mt-3 a.btn-floating:hover {
    color: #b61616 !important;
}
