body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    transition: background-image 1s ease-in-out;
}

.container {
    text-align: center;
    color: white;
    max-width: 100%;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.top-bar button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.top-bar button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.logo {
    margin: 5px auto;
    width: 600px;
    height: 110px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navigation {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 20px auto;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.navigation a {
    flex: 1 1 auto;
    margin: 0;
}

.navigation button {
    width: 100%;
    background: url('./images/example.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.3s;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 18px;
    margin: 0;
    min-height: 50px;
    max-height: 60px;
}

.navigation a:first-child button {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.navigation a:last-child button {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.navigation button:hover {
    transform: scale(1.05);
}

.carousel {
    position: relative;
    width: 100%;
    margin: 20px auto;
    overflow: hidden;
    max-width: 800px;
    display: none;
}

.carousel-images {
    display: flex;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    min-width: 100%;
    height: auto;
}

.carousel-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-buttons button {
    width: 10px;
    height: 10px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-buttons button:hover,
.carousel-buttons .active {
    background-color: gray;
}

.video-player {
    margin: 20px auto;
    width: 100%;
    max-width: 800px;
}

.video-player video {
    width: 100%;
    height: auto;
}

.buttons-row {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    max-width: 800px;
}

.buttons-row button {
    flex: 1;
    background: url('./images/btnBackground.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 0;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 18px;
}

.buttons-row button:hover {
    transform: scale(1.05);
}

.development {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.development img {
    width: 300px;
    height: auto;
}

.poll {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    border-radius: 10px;
}

.poll h2 {
    margin: 0 0 10px;
}

.poll p {
    margin: 5px 0;
}

.character-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 90%;
    height: calc(100vh - 40px);
    margin: 20px auto;
    position: relative;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 380px; /* Set max width to accommodate scrollbar */
    height: calc(100% - 120px); /* Increased height to have a larger bottom margin */
    overflow-y: auto;
    margin-right: 0px; /* Add more margin to separate from character details */
}

.character-grid img {
    width: 98%;
    height: auto;
    max-width: 122px; /* Set preferred max width */
    max-height: 180px;
    cursor: pointer;
    transition: transform 0.3s;
}

.character-grid img:hover {
    transform: scale(1.1);
}

.character-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    width: calc(100% - 430px); /* Adjust width to fit next to the character grid */
    text-align: left;
    height: calc(100% - 120px); /* Increased height to have a larger bottom margin */
    overflow-y: auto;
    color: white;
}

@media only screen and (max-width: 768px) {
    .character-grid {
        grid-template-columns: repeat(1, 1fr); /* Set to 1 column for mobile devices */
        max-width: 122px; /* Adjust max width for a single column */
    }

    .character-overlay {
        width: calc(100% - 152px); /* Adjust width to fit next to the character grid */
    }
}


.character-overlay h1, .character-overlay h2 {
    text-align: center;
}

.character-overlay h1 {
    font-family: Verdana, sans-serif;
    font-size: 36px;
    margin: 0;
}

.character-overlay h2 {
    font-family: Verdana, sans-serif;
    font-size: 24px;
    margin: 10px 0;
}

.character-details {
    margin-top: 20px;
}

.character-details p,
.character-details ul {
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin: 10px 0;
}

.character-details ul {
    padding-left: 20px;
}

.character-details ul li {
    margin-bottom: 5px;
}

.prev-button,
.next-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}

.prev-button img,
.next-button img {
    width: 30px;
    height: auto;
}

.company-content,
.news-content,
.media-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    margin: 20px auto;
    color: white;
    text-align: left;
}
