body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    overflow: hidden;
    position: relative;
}

.canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 2s ease-in-out;
    z-index: 0; /* Ensure canvases are behind the content */
}

/* Ensuring canvases are above the background but below content */
.canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 2s ease-in-out;
    z-index: 1; /* Ensure canvases are above background but below content */
}

.canvas-primary {
    background: linear-gradient(315deg, #207c58 0%, #403c75 64%);
    opacity: 1;
}

.canvas-secondary {
    background: linear-gradient(450deg, #ad9313 0%, #39356d 64%);
    opacity: 0;
}

.canvas-third {
    background: linear-gradient(180deg, #f6af16 0%, #01101E 64%);
    opacity: 0;
}

.canvas-fourth {
    background: linear-gradient(270deg, #224a8c 0%, #01101E 64%);
    opacity: 0;
}

.canvas-fifth {
    background: linear-gradient(360deg, #39167a 0%, #01101E 64%);
    opacity: 0;
}

.canvas-sixth {
    background: linear-gradient(360deg, #ffffff 0%, #01101E 64%);
    opacity: 0;
}

/* Background layers */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 2s ease-in-out;
    z-index: -1; /* Backgrounds should be behind everything else */
}

.primary-background {
    background: linear-gradient(315deg, #207c58 0%, #403c75 64%);
    opacity: 1;
}

.secondary-background {
    background: linear-gradient(315deg, #ccaf62 0%, #313131 64%);
    opacity: 0;
}

.third-background {
    background: linear-gradient(90deg, #f6af16 0%, #f6af16 64%);
    opacity: 0;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    position: relative;
    z-index: 1; /* Ensure it stays above other elements */
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@font-face {
    font-family: 'Poppins';
    src: url('Poppins-Regular.woff2') format('woff2'),
        url('Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.logo {
    position: fixed;
    text-align: center;
	width: auto;
	height: auto; /* Reduced from 40% to 30% */
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5); /* Scale down to 75% of original size */
	animation: snakeShadow 12s linear infinite;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5)); /* Initial shadow setup */
}

@keyframes snakeShadow {
    0% {
        filter: drop-shadow(-5px -5px 3px rgba(0, 0, 255, 1)) drop-shadow(5px -5px 3px rgba(255, 255, 255, 1)) drop-shadow(5px 5px 3px rgba(128, 0, 128, 1)) drop-shadow(-5px 5px 3px rgba(0, 0, 255, 1));
    }
    25% {
        filter: drop-shadow(5px -5px 5px rgba(255, 255, 255, 0.8)) drop-shadow(5px 5px 5px rgba(128, 0, 128, 0.8)) drop-shadow(-5px 5px 5px rgba(0, 0, 255, 0.8)) drop-shadow(-5px -5px 5px rgba(128, 0, 128, 0.8));
    }
    50% {
        filter: drop-shadow(5px 5px 7px rgba(128, 0, 128, 0.6)) drop-shadow(-5px 5px 7px rgba(0, 0, 255, 0.6)) drop-shadow(-5px -5px 7px rgba(255, 255, 255, 0.6)) drop-shadow(5px -5px 7px rgba(0, 0, 255, 0.6));
    }
    75% {
        filter: drop-shadow(-5px 5px 10px rgba(0, 0, 255, 0.4)) drop-shadow(-5px -5px 10px rgba(128, 0, 128, 0.4)) drop-shadow(5px -5px 10px rgba(255, 255, 255, 0.4)) drop-shadow(5px 5px 10px rgba(0, 0, 255, 0.4));
    }
    100% {
        filter: drop-shadow(-5px -5px 3px rgba(0, 0, 255, 1)) drop-shadow(5px -5px 3px rgba(255, 255, 255, 1)) drop-shadow(5px 5px 3px rgba(128, 0, 128, 1)) drop-shadow(-5px 5px 3px rgba(0, 0, 255, 1));
    }
}


.menu {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
	display: flex;
    flex-wrap: wrap; /* Allow wrapping to the next line */
    justify-content: center;
    gap: 10px; /* Space between buttons */
    text-align: center;
    max-width: 100%; /* Ensure container does not exceed screen width */
    padding: 0 10px; /* Add some padding to avoid edge overflow */
    box-sizing: border-box; /* Include padding in element's width */
}

.menu .dropdown {
    display: inline-block;
    position: relative;
}

.menu .dropbtn {
    margin: 0;
    padding: 10px 60px;
    font-size: 18px;
	flex-basis: calc(25% - 20px); /* Each button takes up 50% width minus gap */
	box-sizing: border-box;
    background-color: #132234;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: white;
    width: 300px; /* Fixed width */
    height: 66px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.menu .button1 {
    background-image: url("clashbutton.gif");
    border: 2px solid orange;
}

.menu .button2 {
    background-image: url("rainbutton.png");
    border: 2px solid #01101E;
}

.menu .button3 {
    background-image: url("empiredropbutton.png");
    border: 2px solid rgba(74,23,186,255);
}

.menu .button4 {
    background-image: url("casesbutton.webp");
    border: 2px solid rgba(59,130,246,.5);
}

.menu .button5 {
    background-image: url("universalbutton.webp");
    border: 2px solid rgba(255,255,255,.5);
}

.menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #132234;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
    right: 0;
    margin: auto;
}

.menu .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #fff;
}

.highlighted-hover {
    background-color: rgba(200, 169, 19, 0.8); /* Same as hover background color */
    color: white; /* Adjust text color if needed */
}

.menu .dropdown-content a:hover {
    background-color: rgba(200, 169, 19, 0.8);
}

.menu .dropdown:hover .dropdown-content {
    display: block;
}

.menu .dropbtn:hover {
    transform: scale(1.05);
}

.menu .button1:hover {
    animation: pulse-orange 1s infinite alternate;
}

.menu .button2:hover {
    animation: pulse-navy 1s infinite alternate;
}

.menu .button3:hover {
    animation: pulse-purple 1s infinite alternate;
}

.menu .button4:hover {
    background-image: url("casesbutton.gif");
    animation: pulse-blue 1s infinite alternate;
}

.menu .button5:hover {
    animation: pulse-white 1s infinite alternate;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 30px rgba(200, 169, 19, 1);
    }
    100% {
        box-shadow: 0 0 50px rgba(200, 169, 19, 1);
    }
}

@keyframes pulse-navy {
    0% {
        box-shadow: 0 0 30px #132234;
    }
    100% {
        box-shadow: 0 0 50px #132234;
    }
}

@keyframes pulse-purple {
    0% {
        box-shadow: 0 0 30px #611be2;
    }
    100% {
        box-shadow: 0 0 50px #611be2;
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 30px rgba(59,130,246,.5);
    }
    100% {
        box-shadow: 0 0 50px rgba(59,130,246,.5);
    }
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 30px rgba(255,255,255,.5);
    }
    100% {
        box-shadow: 0 0 50px rgba(255,255,255,.5);
    }
}
/* Media Query for smaller screens */
@media (max-width: 1200px) {
    .menu .dropbtn {
        width: 200px; /* Adjust width for smaller screens */
    }
}

@media (max-width: 768px) {
    .menu {
        flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    }
    .menu .dropbtn {
        width: 100%;
        padding: 10px 20px;
    }
}

/* Positioning the info symbol button at the bottom right */
.info-container {
    position: fixed; /* Fixed positioning */
    bottom: 20px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    z-index: 1000; /* Ensure it's on top of other content */
}

.info-symbol {
    width: 50px; /* Adjust the size as needed */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.info-symbol:hover {
    transform: scale(1.2); /* Enlarge the image by 1.2x on hover */
}
/* Highlight effect for the element */
.highlighted {
    position: relative;
    z-index: 1000; /* Ensure it's above other content */
    /* Optional: Add a border or some indication */
    border: 2px solid rgba(255, 255, 255, 0.8);
}


/* Highlight box around the element */
.highlight-box {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.8); /* Optional border for visibility */
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.5); /* Large shadow to dim outside */
    pointer-events: none; /* Ensure the box doesn't block interactions */
    display: none; /* Initially hidden */
    z-index: 999; /* Ensure it’s above other content */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Semi-transparent background */
    z-index: 999; /* Ensure it’s above other content */
    display: none; /* Initially hidden */
}

.info-container.active .overlay {
    display: block; /* Show the overlay when the info container is active */
}

.info-box {
    display: none; /* Hide the info box initially */
    position: fixed;
    top: 75%; /* Adjust position relative to the info symbol */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Fixed width to ensure proper wrapping */
    height: 225px; /* Fixed height with overflow handling */
    padding: 5px 30px 30px 30px; /* Top padding: 5px, other sides: 30px */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden; /* Add scrollbars if content overflows */
    box-sizing: border-box; /* Include padding in width/height calculation */
    word-wrap: break-word; /* Ensure long words wrap to the next line */
    overflow-wrap: break-word; /* Ensure long words wrap to the next line (for better compatibility) */
    line-height: 1.; /* Improve line spacing for readability */
}


.arrows-container {
	text-align: center;
    position: absolute;
    bottom: 10px; /* Distance from the bottom of the info-box */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between arrows */
}


.info-container.active .info-box {
    display: block; /* Show the info box when the container is active */
}

.info-page {
    display: none; /* Hide all pages initially */
}

.info-container.active .info-page {
    display: block; /* Show the current page when active */
}

.info-controls {
    position: absolute;
    bottom: 10px; /* Position controls at the bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Full width for controls */
    text-align: center;
}

.arrow {
    cursor: pointer;
    font-size: 24px; /* Adjust size as needed */
    color: white;
    margin: 0 10px; /* Space between arrows */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px; /* Larger font size for the close button */
    color: white;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Hide overflow for smoother scrolling */
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker semi-transparent background */
	color: white; /* White text color */
}

/* Modal Content */
.modal-content {
    background-color: #102a4a; /* Deep blue background for modal content */
    margin: 5% auto; /* Centered with margin from top */
    padding: 20px;
    border: 1px solid #ffffff; /* White border for contrast */
    width: 90%; /* Responsive width */
    max-width: 800px; /* Max width for larger screens */
    max-height: 80vh; /* Limit height */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */
	color: white; /* White text color */
}

/* Webkit Scrollbar Styles */
.modal-content::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.modal-content::-webkit-scrollbar-track {
    background: #f2f2f2; /* Light grey background for the track */
    border-radius: 8px; /* Rounded corners for the track */
}

.modal-content::-webkit-scrollbar-thumb {
    background: #102a4a; /* Deep blue color for the scrollbar thumb */
    border-radius: 8px; /* Rounded corners for the thumb */
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #0e1d36; /* Slightly darker blue on hover */
}

/* Firefox Scrollbar Styles */
.modal-content {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #102a4a #f2f2f2; /* Thumb color and track color */
}

/* Close Button */
.close-button {
    color: #ffffff; /* White color for contrast */
    float: right;
    font-size: 28px; /* Larger size for visibility */
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}

/* Close Button on Hover */
.close-button:hover,
.close-button:focus {
    color: #ff4d4d; /* Bright red color on hover */
    text-decoration: none;
}


/* Table Styles */
#attemptsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* Space from modal title */
}

#attemptsTable th, #attemptsTable td {
    border: 1px solid #ffffff; /* White border for contrast */
    padding: 12px; /* Increased padding for readability */
    text-align: left; /* Align text to the left */
    font-size: 14px; /* Slightly smaller font size */
}

#attemptsTable th {
    background-color: #0e1d36; /* Slightly darker deep blue for header */
    color: #ffffff; /* White text color for contrast */
    font-weight: bold;
}

#attemptsTable td {
    background-color: #ffffff; /* White for table rows */
    color: #102a4a; /* Deep blue text color for contrast */
}

#attemptsTable tr:nth-child(even) {
    background-color: #e0e0e0; /* Light grey for alternating rows */
}

/* Button Styles */
.view-attempts-button {
    position: fixed; /* Fixed positioning to stay in place */
    bottom: 20px; /* Distance from the bottom */
    left: 20px; /* Distance from the right */
    padding: 10px 20px; /* Padding for better appearance */
    background-color: #007bff; /* Button background color */
    color: white; /* Text color */
    border: none; /* Remove default border */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    z-index: 1000; /* Ensure button is on top of other content */
}

.view-attempts-button:hover {
    background-color: #0056b3; /* Darker background on hover */
}

/* Checkbox and label styling */
.filter-label {
    display: inline-flex; /* Align items in a row */
    align-items: center; /* Center align the checkbox and text */
    font-size: 14px; /* Ensure text size is readable */
    color: #ffffff; /* Set text color for visibility */
    margin-bottom: 20px; /* Add space below the checkbox */
    cursor: pointer; /* Add pointer cursor for better UX */
}

/* Hide the default checkbox */
#toggleFilterCheckbox {
    display: none;
}

/* Create a custom toggle switch */
.filter-label .slider {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 50px;
    margin-left: 10px; /* Space between "Filtered" text and checkbox */
    cursor: pointer; /* Add pointer cursor for better UX */
    transition: background-color 0.4s;
}

.filter-label .slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

/* When the checkbox is checked, move the slider */
#toggleFilterCheckbox:checked + .slider {
    background-color: #007bff; /* Active background color */
}

#toggleFilterCheckbox:checked + .slider:before {
    transform: translateX(20px); /* Slide the circle to the right */
}