body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

.header-ad-container{
  display: flex;
  justify-content: center;
}
.header-ad-container img{
  max-width: 100%;
  height: auto;
  display: block;
}


.bottom-ad-container{
  display: flex;
  justify-content: center;
  text-align: center;
}
.bottom-ad-container img{
  max-width: 100%;
  height: auto;
  display: block;
}

.page-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px; /* Adjust the space between the ads and main content */
}

.ad-container {
  width: 10%; /* Adjust width as per your design */
  min-width: 120px; /* Ensures a minimum width for smaller screens */
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.ad-container img {
  max-width: 100%;
  height: auto;
  display: block;
}
  
  /* Main content styles */
  #mainContent {
    flex-grow: 1; /* Ensures the main content takes the available space */
    padding: 20px;
  }
  
  /* Drawer toggle button */
  .drawer-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
  }
  
  .drawer-toggle-btn:hover {
    background-color: #0056b3;
  }
  
h1, h2 {
    color: #444;
    text-align: center;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.button-group {
    text-align: center;
    margin-top: 20px;
}

.button-group button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
}
.button-group .btn {
  width: 30%;
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
}
.button-group button:hover {
    background-color: #0056b3;
}

#urlContainer, #editUrlContainer {
    margin-top: 20px;
}

#urlList, #editUrlList {
    margin-bottom: 10px;
}

.url-container {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #00b3ff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.url-container button {
    background-color: #dc3545;
}

.url-container button:hover {
    background-color: #c82333;
}

.form-group input[type="button"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.form-group input[type="button"]:hover {
    background-color: #218838;
}

#loginDiv {
    text-align: center;
}

#loginDiv input {

    margin: 10px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#loginDiv button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px;
}

#loginDiv button:hover {
    background-color: #0056b3;
}


/* Container for category checkboxes */
#categoryContainer {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 20px;
}


/* Styling for individual checkbox labels */
#categoryContainer label {
display: flex;
align-items: center;
font-size: 14px;
margin-bottom: 10px;
cursor: pointer;
transition: color 0.3s;
}

#categoryContainer #check {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
/* Checkbox appearance */
#categoryContainer input[type="checkbox"] {
margin-right: 10px;
accent-color: #007bff; /* Change this color to match your theme */
}

/* Label hover effect */
#categoryContainer label:hover {
color: #0056b3; /* Change this color to match your theme */
}

.spinner-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
display: none; /* Hidden by default */
}

.spinner {
border: 7px solid #f3f3f3;
border-top: 7px solid #3498db;
border-radius: 50%;
width: 70px;
height: 70px;
animation: spin 2s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* 
for live_football listview */

.matches-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* Adjusts to show 4 items per row */
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
  height: auto;
}
.matches-container :hover {
  background-color: #505050;
}
.match-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #363636;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover; /* Ensures the image covers the container without stretching */
}

.match-info {
  flex-grow: 1;
  text-align: center;
}

.match-time {
  font-size: 14px;
}

.live-icon {
  color: red;
  font-weight: bold;
}

.vs-text {
  color: white;
  font-weight: bold;
}

.match-details {
  text-align: center;
  margin-top: 10px;
}

.match-details h3 {
  margin: 5px 0;
}

.match-details p {
  margin: 0;
}

.match-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.match-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#loadMoreButtonContainer {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
button#loadMoreButton {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


button#loadMoreButton:hover {
  background-color: #0056b3;
}



/* Media queries for responsiveness */
@media (max-width: 1200px) {
  .matches-container {
    grid-template-columns: repeat(3, 1fr); /* 3 items per row for smaller screens */
  }
}

@media (max-width: 900px) {
  .matches-container {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row for tablets */
  }
  .ad-container {
    display: none; /* Hides ads on smaller screens */
}
}

@media (max-width: 600px) {
  .matches-container {
    grid-template-columns: 1fr; /* 1 item per row for mobile screens */
  }
  .ad-container {
    display: none; /* Hides ads on smaller screens */
}
}
