/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #000; 
    color: #fff; 
}

header {
    background-image: url(''); 
    background-size: cover;
    background-position: center;
    padding: 10px 0;
    position:relative;
    text-align: center;
    background-repeat: no-repeat;
}

.header-content {
    display: flex;
    align-items: center; /* Align logo and title vertically */
    justify-content: center; /* Center the logo and title horizontally */
}

.logo {
    float: left;
    max-width: 20%; /* Adjust the size of the logo */
    height: auto;
}

/* Small screens */
@media (max-width: 768px) {
    .logo  {
        max-width: 0px;
    }
}

header h1 {
    margin: 0;
    color: rgb(255, 255, 0);
    font-size: 3rem;
}

header p {
    font-size: 1.5rem;
    color: rgb(255, 0, 0);
}


/* Results Page Background */
body.results-page header {
    background-image: url('');
    background-size: cover;
    background-position: center;
}

/* Navigation Bar */

.navbar {
    display: flex;
    background-color: #222;
    padding: 10px 0;
    justify-content: center; /* Center the items horizontally */
    align-items: center;     /* Vertically align items in the navbar */
    width: 100%;             /* Full width */
  }
  
  .navbar-links {
    list-style: none; /* Remove default list styling */
    display: flex;    /* Arrange list items in a row */
    padding: 0;       /* Remove default padding */
    margin: 0;        /* Remove default margin */
  }
  
  .navbar-links li {
    margin: 0 30px; /* Space between each link */
  }
  
  .navbar-links a {
    text-decoration: none; /* Remove underline from links */
    color: white;          /* White text color */
    font-size: 16px;       /* Font size for the links */
    font-weight: bold;      /* Bold links */
    padding: 8px 4px;     
    transition: color 0.3s ease; /* Smooth transition for hover effect */
  }
  
  .navbar-links a:hover {
    background-color: #444;
    border-radius: 4px;
  }

  
  /* Media query for smaller screens */
  @media (max-width: 768px) {
    .navbar-links {
      gap: 10px; /* Reduce gap between the links on smaller screens */
    }
  
    .navbar-links li {
      margin: 0 10px; /* Reduce space between items even further */
    }
  
  }
  
  @media (max-width: 480px) {
    .navbar-links {
      gap: 5px; /* Even less space on very small screens */
    }
  
    .navbar-links li {
      margin: 0 5px; /* Tighten up the spacing even more */
    }
  }

main {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px
}

footer {
    text-align: center;
    padding: 1px 0;
    background-color: #333;
}

h2 {
    color: #f0f0f0; /* Lighter color for headings */
}

/* Event Calendar Section */
.event-calendar {
    margin-top: 30px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(360px, auto)); /* Three columns */
    grid-template-rows: auto;
    gap: 40px 30px; /* Space between blocks */
    margin-top: 20px;

}

/* Small screens */
@media (max-width: 1180px) {
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(360px, auto)); 
    }
}

@media (max-width: 780px) {
    .calendar-grid {
        grid-template-columns: minmax(360px, auto); 
        justify-items: center;
    }
}

.event-block {
    padding: 0px;   
    color: #fff;
    display: grid;
    grid-template-columns: 330px;
    width: 100%;
}

.event-image {
    width: 100%;
    background-color: #444;
    height: auto;
    border-radius: 30px 30px 0px 0px;  
}

.event-info{
    border-radius: 0px 0px 30px 30px;
    background-color: #444;
    padding: 5px 10px 20px 10px; 
/*     display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Take up remaining height */  

}

.event-date {
    font-size: 14px;
    color: #f0ebeb;
    text-align: left;
    margin-bottom: 5px; /* Space between date and event name */
}
  
.event-name {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px; /* Space between event name and buttons */
}

.event-text {
    font-size: 14px;
    text-align: left;
    padding-bottom: 30px;
    flex-grow: 1; /* Allow the description to take up remaining space */
    overflow: hidden; /* Prevent excessive overflow */
    text-overflow: ellipsis; /* Show "..." if the text is too long */
}

  
.event-buttons {
    display: flex;
    gap: 20px;
    padding-top: 0px;
    justify-content: center;
    align-self: end;
}

  
.btn {
    background-color: #ebeef1;
    text-decoration: none; /* Remove underline from links */
    color: rgb(0, 0, 0);
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
  
.btn:hover {
    background-color: #959799;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black background */
}

.modal-content {
  background-color: #444;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    color: white;
  }
  
.modal-image {
    width: 100%;
    height: auto;
    margin-top: 15px;
  }
  
.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
  }
  
.close:hover,
.close:focus {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
  }

