/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    color: #0A322B;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: #0A322B;
}
::-webkit-scrollbar-thumb {
	background: #ffffff80;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background: #ffffff;
}
* {
	scrollbar-width: thin;
	scrollbar-color: #ffffff80 #0A322B;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #051a16;
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
}

#mobile-video {
    display: block;
}

/* Button Styles */
.down-button {
    position: absolute;
    bottom: 7.5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 35px;
    color: #FFFFFF;
    background: transparent;
    border: none;
    cursor: pointer;
    animation: bounce 1.5s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Styles */
section {
    padding: 100px 20px;
    background-color: #f5f5f5;
    color: #0A322B;
}

/* About Chess Section */
#about-chess {
    background-color: #f5f5f5;
	padding: 7.5%;
}
#about-chess h2, #about-chess h3 {
    text-align: center;
    font-size: 2.75rem;
    color: #0A322B;
	padding: 0%;
}
#about-chess img {
    display: block;
    margin: 0 auto;
    max-width: 95%;
    height: auto;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.1);
    border-radius: 7.5px;
}
#about-chess ul {
    list-style-type: disc;
    padding-left: 20px;
}
#about-chess ul li {
    margin-bottom: 10px;
}



/* Card Styles */
.card-container {
    display: flex;
    justify-content: center; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    padding: 20px;
	padding-left: 16px;
    box-sizing: border-box;
}

/* Individual card */
.card {
    width: 300px;
	height: 350px;
    perspective: 1000px; 
    position: relative;
    cursor: pointer;
	margin: 5% 0%;
    opacity: 0; /* Start invisible */
    transition: opacity 0.5s ease-in-out;
}

h6 {
   margin: 0px;
   padding-right: 15px;
   font-size: 100px; /*Makes the peices on the cards bigger*/
}

/* Slide-in animations */
@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card.slide-in-left {
    animation: slide-in-left 0.6s ease-out forwards;
}

.card.slide-in-right {
    animation: slide-in-right 0.6s ease-out forwards;
}

/* Front and back sides of the card */
.card-front, .card-back {
    position: absolute;
    width: auto;
	height: 350px;
    border-radius: 10px;
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 15px;
    box-sizing: border-box;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

/* Front side of the card */
.card-front {
    background-color: #ffffff;
    border: 2px solid #0A322B;
    color: #0A322B;
}

/* Back side of the card */
.card-back {
    background-color: #0A322B;
    border: 2px solid #0A322B;
    color: #FFFFFF;
    transform: rotateY(180deg);
}

/* Flip effect */
.card.flip .card-front {
    transform: rotateY(-180deg);
}

.card.flip .card-back {
    transform: rotateY(0deg);
}



/* Footer Styles */
footer {
    background-color: #0A322B;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
    padding: 1%;
    position: static;
    bottom: 0;
    width: auto;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bolder;
}

/* Play Chess Section */
#play-chess {
    background-color: #0a322b;
    padding: 5%;
    text-align: center;
}

/* Heading */
#play-chess h3 {
    font-size: 2.75rem;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Facts Container */
.facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Individual Fact */
.fact {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px; 
    color: #0a322b;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.fact:hover {
    transform: translateY(-5px);
}

/* Fact Icon */
.fact-icon {
    font-size: 2rem;
    color: #0A322B; /* Light color for contrast */
}

/* Button Style */
.play-chess-button {
    display: inline-block;
    background-color: #0a322b;
    color: #ffffff;
    padding: 20px 90px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10%;
    margin-bottom: 10%;
}

.play-chess-button:hover {
    background-color: #ffffff;
    color: #0a322b;
    transform: scale(1.05);
}

.play-chess-button h2 {
    margin: 0;
}

/* Container for the wave */
.wave-container {
    position: relative;
    overflow: hidden;
    background-color: #859995; /* Match the wave color to the section background */
}

/* Style the SVG wave */
.wave-container svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px; /* Adjust height as needed */
    fill: #859995; /* Wave color */
    transform: rotate(180deg); /* Rotate the wave if needed */
}

/* Section Styles */
.section {
    position: relative;
    background-color: #859995; /* Adjust background color as needed */
    color: #FFFFFF;
    padding: 50px 0;
}

/* Adjust for alternating sections */
.section:nth-of-type(even) .wave-container svg {
    fill: #1E1E1E; /* Alternate wave color if needed */
}

svg {
    display: block;
    margin: -1px;
    padding: 0px;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #051a16;
    color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    font-size: 1.4rem;
    text-align: center;
}