body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

#ticket {
    border: 2px dashed #007bff;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    border-radius: 8px;
    background-color: #f7f7f7;
}

#ticket img {
    margin-top: 10px;
}
.container {
    max-width: 800px; /* Set a maximum width for the container */
    margin: 20px auto; /* Center the container */
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
  
h2 {
  text-align: center;
  color: #333;
}
  
  ul {
    list-style-type: none;
    padding: 0;
  }
  
  li {
    background: #e9ecef; /* Light gray background for list items */
    margin: 10px 0; /* Space between list items */
    padding: 15px; /* Padding for list items */
    border-radius: 5px; /* Rounded corners for list items */
}
  
  button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  button:hover {
    background-color: #45a049;
  }
  
  .ticket-section {
    margin-top: 30px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
  }
  
  .ticket-section h3 {
    margin-bottom: 10px;
  }
  
  .ticket-section p {
    margin: 5px 0;
  }
  
  .ticket-section canvas {
    display: block;
    margin: 10px 0;
  }
  
  .ticket-section button {
    display: inline-block;
    margin-top: 10px;
  }
  #events-list li {
    border: 1px solid #ddd;
    padding: 8px;
    margin: 4px 0;
  }
  #logout-btn {
    float: right; /* Align the logout button to the right */
    padding: 10px 15px;
    background-color: #f14646;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
canvas {
  margin-top: 10px; /* Add margin above QR code */
}
/* Styles for the events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 0;
  list-style-type: none;
}

.event-tile {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.event-tile h3 {
  margin-top: 0;
  font-size: 18px;
}

.event-tile p {
  margin: 8px 0;
}

.event-tile button {
  background-color: #4466cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-tile button:hover {
  background-color: #3355aa;
}
