body {
    background-color: #fdfdfd;
    background: url(images/layout/background.png);
    margin: 0;
    font-family: Comic Sans MS, Arial, sans-serif;
    font-size: 14px;
    color: #000000;
    transform: none;
}
.wrapper {
    position: absolute; /* Ensure it can be positioned relative to the screen */
    top: 50%; /* Move it to the vertical center */
    left: 50%; /* Move it to the horizontal center */
    transform: translate(-50%, -50%) scale(0.9); /* Center it using translate and apply the scaling */
    transform-origin: center; /* Scale from the center of the element */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure it fills the viewport */
}
.container {
    position: relative;
    background-image: url('images/layout/layout.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 1024px;
    height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures content is spaced out */
}
.content-frame {
    position: absolute;
    top: 100px;
    left: 200px;
    width: 620px;
    height: 450px;
    overflow: auto;
    padding: 10px;
}
.center {
    text-align: center;
}
h1 {
    color: #2E3CB6;
    text-align: center;
}  

/* Gallery Thumbnails*/
.gallery {
    display: grid;
    grid-template-columns: repeat(8, 50px); /* 8 columns with fixed size */
    gap: 10px; /* Adds spacing between items */
    justify-content: center; /* Centers the rows horizontally */
}
.gallery img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center the modal */
    width: 500px;  /* Fixed width */
    height: 400px; /* Fixed height */
    background-color: rgba(208, 136, 158, 0.9); /* Semi-transparent background */
    padding: 20px;  /* Space around the image */
    overflow: hidden; /* Prevent overflow if image is too large */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center align content horizontally */
}

/* Image styling */
.modal img {
    max-width: 90%;  /* Image width should be 90% of modal width */
    max-height: 80%; /* Image height should be 80% of modal height */
    width: auto;     /* Maintain original width */
    height: auto;    /* Maintain original height */
    object-fit: contain; /* Ensure the image is fully contained in the modal */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border: 2px solid white;
    background-color: white;
    border-radius: 8px;
}

/* Close button styling */
.close {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    font-size: 40px;
    color: #FFFFFF;
    cursor: pointer;
}
.close:hover {
    color: #a060c4;
}

/* End message styling */
.end-message {
    display: none; /* Hide the message initially */
    text-align: center; /* Center-align the message */
    margin-top: 10px; /* Add space above the message */
    font-size: 16px; /* Set font size for the message */
    color: #2E3CB6; /* Set a default color for the text */
	font-wight: bold;
}

/* Arrow button styling */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



/* Menu styling */
.menu {
    position: absolute;
    bottom: 10px;
    left: 40%;
    transform: translateX(-34%); /* Adjust to perfectly center */
    text-align: center;
    display: flex; /* Use Flexbox for a row layout */
    justify-content: center; /* Center the items horizontally */
    white-space: nowrap; /* Prevent wrapping in the menu */
}

a {
    color: #D0889E;
    text-decoration: underline;
    font-weight: bold;
}
.menu a {
    color: #D0889E; /* Matches your mockup text */
    text-decoration: none;
    font-family: Comic Sans MS, Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    margin: 0 10px;
}
.menu a:hover {
    text-decoration: underline;
    color: #2E3CB6;
    font-weight: bold;
}

/* Champion Gallery Styling */

.ch_container {
    position: relative;
	width: 100%;
    margin: 0 auto;
    max-width: 675px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items horizontally */
    gap: 10px; /* Space between items */
	margin: 0 auto;
    }

.ch_image {
    width: 200px;
    height: 200px;
    }

.ch_caption {
    text-align: center;
    margin-top: 5px;
    }

