/* General Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000; /* Set the background to black */
    color: #fff; /* Set text color to golden/yellow */
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex;
    flex-direction: column; /* Keeps content stacked vertically */
}

/* General Styles */
nav {
    background-color: #000;
    padding: 1em;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: space-between; /* Distribute space between logo and menu */
    align-items: center; /* Align items vertically */
}

nav .logo {
    margin-bottom: 0; /* Remove space between logo and menu */
}

nav .logo img {
    max-width: 150px; /* Adjust this to fit your logo size */
    height: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Display menu items in a row */
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav .toggle-icon {
    display: none; /* Hide the toggle icon on desktop */
    font-size: 30px;
    color: #fff;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack logo and menu vertically on mobile */
        text-align: center;
    }

    nav ul {
        display: none; /* Hide menu initially */
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100px;
        left: 0;
        background-color: #333;
    }

    nav ul li {
        display: block; /* Stack the menu items vertically */
        margin: 10px 0;
    }

    nav .toggle-icon {
        display: block; /* Show the toggle icon on mobile */
    }

    nav ul.active {
        display: block; /* Show the menu when toggle is active */
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    nav .toggle-icon {
        display: none; /* Hide the toggle icon on desktop */
    }
}

/* Header Section */
header {
    text-align: center;
    padding: 2em;
    background-color: #000000; 
    color: #fff;
}

.half-width-image {
    justify-content: center; /* Centers the image horizontally */
    margin-bottom: 20px;
}

.half-width-image img {
    width: 90%; /* Half the screen width */
    max-width: 600px; /* Optional: Set a maximum width for larger screens */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}

header h1 {
    margin-top: 30px;
    font-size: 32px;
    text-align: center;
}

.intro-text {
    font-size: 1em;
    margin: 1em 0;
    line-height: 1.6;
}

/* Style for the action buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.action-btn {
    background-color: #ff0042;
    color: #000000;
    padding: 15px 30px;
    font-size: 18px;
    border: 3px solid #ff0042;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #ff0042;
    color: #000000;
    border-color: #ff0042;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* General Casino Section Styling */
.casino-section {
    max-width: 1200px; /* Limit the section width */
    margin: 0 auto; /* Center the section */
    padding: 20px;
    background-color: #000; /* Set the background to black */
    color: #ff0042; /* Set the text color to golden/yellow */
}

.casino-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Create 5 equal columns */
    gap: 20px; /* Space between items */
}

.casino {
    background-color: #333; /* Dark background for casino boxes */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.casino img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.casino-info h2 {
    font-size: 18px;
    color: #ff0042; /* Set heading text color to golden/yellow */
    margin-bottom: 10px;
}

.casino-info p {
    font-size: 14px;
    color: #fff; /* Set paragraph text color to golden/yellow */
    margin-bottom: 15px;
}

.play-now-btn {
    background-color: #fff; /* Golden button background */
    color: #000; /* Black text on the button */
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-now-btn:hover {
    background-color: #000;
    color: #fff; /* Golden text when hovered */
    border-color: #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .casino-grid {
        grid-template-columns: 1fr; /* Stack items in one column on mobile */
    }

    .casino {
        max-width: 90%; /* Ensure items are not too wide on small screens */
    }
}

/* Desktop Styles */
.container {
  width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif; /* Matches header font */
  line-height: 1.6; /* Adjusts text spacing for readability */
  font-size: 1em; /* Ensures consistency in font size */
  color: #fff; /* Set background to black */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 30px; /* Reduces padding for smaller screens */
    font-size: 0.9em; /* Adjusts font size for better readability on mobile */
    text-align: left; /* Keeps left alignment for mobile */
  }
}

/* Add these styles to target specific elements within the container */
.container h2 {
  color: #ff0042; /* Set H2 heading color to #ff0042 */
}

.container h3 {
  color: #ff0042; /* Set H3 heading color to #ff0042 */
}

.container p,
.container li {
  color: white; /* Set paragraph and list item text color to white */
}

/* Footer */
footer {
    text-align: center;
    padding: 1em;
    background-color: #000; /* Set footer background to black */
    color: #ff0042; /* Set footer text color to golden/yellow */
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .casino-section {
        flex-direction: column;
        align-items: center;
    }

    .casino {
        width: 80%;
        margin-bottom: 1em;
    }

    nav ul li {
        display: block;
        margin: 0.5em 0;
    }
}

/* Center the Title */
#best-casinos h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #ff0042; /* Golden/yellow title color */
}

/* Container Styling for the 3 Columns */
#best-casinos .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wrapper for Casino Columns to Center Them */
#best-casinos .casino-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Optional: Adjust gap between columns */
    width: 100%;
    max-width: 1200px; /* Optional: Maximum width for the container */
    align-content: center;
}

/* Each Casino Column Styling */
#best-casinos .casino {
    flex: 1 1 30%; /* Allows for 3 columns on larger screens */
    box-sizing: border-box;
    padding: 20px;
}
