html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.header-content {
    display: flex;
    align-items: center; /* Ensure items are vertically centered */
    width: 100%;
    padding-right: 35px; /* Adjust this value to move the icons left */
}
.header-content .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 24px;
    color: white;
}
.icon-container {
    display: none;
    position: relative;
    cursor: pointer;
    margin-left: 15px;
}
.icon-container:hover .dropdown-content {
    display: block;
}
.announcements a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
}
.hamburger-menu {
    display: flex;
    align-items: center;
    margin-right: 10px;
    position: relative; /* Required for the absolute positioning of the menu-content */
}
.hamburger-icon {
    font-size: 30px;
    cursor: pointer;
}
.menu-content {
    display: none;
    position: absolute;
    top: 45px; /* Adjust this value to place the menu below the header */
    left: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Lower than the header's z-index of 1000 */
    width: 250px; /* Make the menu wider */
    max-height: 350px; /* Adjust this value based on your content */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 10px;
}
.menu-content.show {
    display: block;
}
.menu-content a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
}
.menu-content a:hover {
    background-color: #f1f1f1;
}
.dropdown-content {
    display: none;
    text-align: left;
    padding: 20px;
    background-color: #333;
    color: #fff;
    border: 1px solid #ccc;
    margin-top: 10px;
    border-radius: 10px;
    position: absolute;
    right: 0;
    top: 30px;
    width: 250px;
    font-size: 0.8rem;
}
.index-container {
    padding-top: 100px;
}
/* Specific padding for faq.html and about.html */
.page-container {
    padding-top: 60px;
}
/* Ensure back button is correctly positioned */
.back-button {
    display: block;
    z-index: 10;
}
.container {
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* Adjusted for fixed footer */
    position: relative;
}
.content-panel {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 20px;
    text-align: left; /* Align content to the left */
}
.streaks {
    position: absolute;
    top: 50px;
    font-size: 1.5rem;
}
#currentStreak {
    left: 10px;
}
#bestStreak {
    right: 10px;
}
#logoAndNumber {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    width: 75%;
}
#logoContainer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}
#teamLogo {
    max-width: 100%;
    max-height: 375px;
}
#teamAndNumber {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 300px;
    padding: 10px;
    box-sizing: border-box;
}
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 10px;
    font-size: 1rem;
}
.difficulty-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}
button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 1rem;
    cursor: pointer;
}
#playerInfo {
    font-size: 2rem;
    padding: 10px;
    margin-top: 20px;
    box-sizing: border-box;
}
#playerInput {
    padding: 10px;
    margin: 10px;
    font-size: 1rem;
    width: 250px;
}
#dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: calc(100% - 5px);
    max-width: 270px;
    z-index: 1000;
}
.dropdown-item {
    padding: 5px;
    cursor: pointer;
}
.dropdown-item:hover {
    background-color: #f0f0f0;
}
#feedback {
    margin-top: 10px;
    font-size: 1rem;
}
.feedback-message {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
}
#timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: red;
    margin-bottom: 10px;
}
.share-buttons {
    display: none;
    margin-top: 20px;
}
.share-button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: rgb(0, 101, 160);
    color: #fff;
}
#giveUpButton {
    display: none;
}
/* Fade out animation */
.fade-out {
    animation: fadeOut 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.disabled {
    opacity: 0.5;
    pointer-events: none;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
/* Game over message */
#gameOverMessage {
    padding-top: 10px;
    display: none;
    text-align: center;
    font-size: 3rem;
}
.streak-number {
    font-size: 3rem;
    color: rgb(0, 0, 0);
    font-size: 7rem;
    font-weight: bold;
}
.dropdown-item {
    padding: 5px;
    cursor: pointer;
}
.highlight {
    background-color: #ddd;
}     
@media (max-width: 770px) {
    .header {
        flex-direction: row;
        align-items: center;
    }
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-right: 25px;
    }
    .difficulty-container {
        margin-bottom: 10px;
    }
    .filter-container {
        margin-top: 40px;
        margin-bottom: 10px;
    }
    .icon-container {
        order: 3;
        display: none;
    }
    .dropdown-content {
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 60px);
    }
    .container {
        justify-content: flex-start;
    }
    .index-container {
        padding-top: 60px; /* Adjusted for mobile view */
    }
    .page-container {
        padding-top: 40px;
    }
    .streaks {
        top: 60px;
        font-size: 1rem;
    }
    #logoAndNumber {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding-bottom: 10px;
    }
    #logoContainer, #teamAndNumber {
        max-height: 100px;
        max-width: 100px;
    }
    #teamLogo {
        max-height: 100px;
        max-width: 100px;
    }
    #teamAndNumber {
        font-size: 100px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    #playerInfo {
        font-size: 1.5rem;
        margin-top: 10px;
    }
    button {
        margin: 5px;
        padding: 8px 16px;
    }
    #feedback, #timer {
        font-size: 1rem;
    }
    .feedback-message {
        font-size: 1rem;
    }
    .share-buttons {
        margin-top: 10px;
    }
    .footer {
        font-size: small;
    }
}
/* Footer */
.footer {
    text-align: center;
    position: fixed;
    bottom: -10px;
    width: 100%;
    background-color: black;
    color: white;
    padding-bottom: 5px; /* Space for the Google ad on mobile */
}
.footer a {
    color: rgb(255, 255, 255);
    text-decoration: underline;
}

.bmc-container {
    text-align: center;
}
