html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body {
    background-color: purple;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 0 auto;
    align-items: center;
    width: 100%;
    max-width: 870px;
    padding: 20px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: purple;
    z-index: 1;
    opacity: 0.5; /* adjust the opacity as needed */
}

h1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    -webkit-text-stroke: 0.75px black;
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 2rem;
    margin: 20px 0 10px; /* Reduce bottom margin to push up the content */
    border: solid 5px rgba(255, 255, 255);
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-shadow: 
    -1px -1px 0 purple,
    1px -1px 0 purple,
    -1px 1px 0 purple,
    1px 1px 0 purple;
}

.countdown {
    color: red; /* Set countdown timer text color to red */
}

#contact-form {
    background-color: rgba(0, 0, 0, 0.7);
    height: 680px; /* Reduced height to accommodate new section */
    width: 100%;
    border: solid 5px rgba(255, 255, 255);
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* This makes the div scrollable */
    box-sizing: border-box;
    z-index: 2;
}

#contact-form img {
    width: 100%;
    height: auto;
}

.flyer {
    opacity: 0.7; /* 50% opacity */
}

.container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.discord-section {
    text-align: center;
    margin-bottom: 25px;
}

.discord-section p {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.discord-section a {
    color: #7289da;
    text-decoration: none;
    font-size: 1.2rem;
}

#events, #phone, #social, #discord {
    color: white;
    margin-top: 20px;
}

.footer {
    position: absolute;
    top: 100%;
    flex-shrink: 0; /* Ensure footer does not shrink */
    width: 100%;
    font-family: cursive;
    background-color: transparent;
    color: white;
    text-align: center;
    border: solid 1px rgba(225, 255, 255, 0.5);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 2;
}


a.footertabs:link, a.footertabs:visited, a.footertabs:hover, a.footertabs:active {
    margin: 10px;
    color: rgb(255, 255, 255);
    background-color: rgba(226, 147, 255, 0.5);
    border: solid 1px rgb(226, 147, 255);
    text-decoration: none;
    padding: 3px;
    transition: background-color 0.3s, color 0.3s;
}

a.footertabs:hover {
    color: rgb(226, 147, 255);
    background-color: rgb(255, 255, 255);
}

#background-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    #contact-form {
        width: 95%;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
        padding: 5px;
    }

    #contact-form {
        width: 100%;
        padding: 5px;
    }
}
