* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden; /* Ensures content doesn't cause scrollbars due to video */
}

/* Video background styles */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    object-fit: cover;
    padding-top: 60px; /* Adjust this to match your header height */
    transform: translateY(-60px); /* Moves the video up by the padding amount */
}

/* Rest of your content should be positioned relative to the body */
header, #mainMenu, #character, .chat-container, #modalBackdrop, #socialIcons {
    position: relative; /* or absolute if previously set */
    z-index: 10;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#mainMenu {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

#mainMenu a {
    color: #333;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    z-index: 10;
}

#mainMenu a:hover {
    color: #000;
}

/* Character animation */
#character {
    position: absolute;
    width: 200px;
    height: 300px;
    background-image: url('path/to/your/sprite-sheet.png');
    background-size: cover;
    animation: idle 1s steps(8) infinite;
    z-index: 10;
}

@keyframes idle {
    from { background-position: 0px; }
    to { background-position: -1600px; }
}

/* Chat container styles */
.chat-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px 10px 0 0;
    padding: 10px;
    transition: transform 0.3s;
}

#chatMessages {
    max-height: 300px;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.3s, max-height 0.3s;
}

.input-container {
    display: flex;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

#chatInput {
    flex-grow: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.7);
}

#sendMessage {
    padding: 10px 20px;
    background-color: rgba(76, 175, 80, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sendMessage:hover {
    background-color: rgba(69, 160, 73, 0.8);
}

/* ... previous CSS ... */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mainMenu {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    width: 100%;
}

#socialIcons {
    display: flex;
    justify-content: center; /* Center the icons */
    align-items: center; /* Vertically align if needed */
    margin-top: 10px; /* Space below the menu */
}

.social-icon {
    width: 30px; /* Adjust as needed */
    height: 30px; /* Adjust as needed */
    margin: 0 5px; /* Space between icons */
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* ... rest of your CSS ... */

/* Modal styles */
#modalBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1010;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1011;
}

#closeModal {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1012;
}

@media screen and (max-width: 768px) {
    #mainMenu {
        flex-direction: column;
        align-items: center; /* Center items vertically if they stack */
    }

    .social-icon {
        width: 24px;
        height: 24px;
        margin: 5px 5px; /* Adjust spacing for smaller screens */
    }
}