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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    overflow: hidden;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #2c3e50;
      border-bottom: 2px solid #3498db;
      padding-bottom: 10px;
}
h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #333;
}
h2, h3 {
  color: #2c3e50;
}

p {
  margin-bottom: 20px;
  line-height: 1.8;
  white-space: pre-line;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  border-left: 5px solid #3498db;
}

.timetable {
    margin-bottom: 20px;
}

.entry {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.entry:hover {
    background-color: #f9f9f9;
}

.event_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 10px;*/
}

.time {
    font-weight: bold;
    color: #555;
    margin-right: 50%;
}

.event {
    font-size: 1.2em;
    color: #333;
}

.details {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    color: #555;
    font-size: 0.9em;
    margin-top: 10px;
}

.location {
    font-weight: bold;
}

.additional-info {
    font-size: 0.85em;
}
.additional-info-margin {
    margin-top: 5px;

}
.time-left{

    text-align: center;
}
.time-left-margin{
    margin-top: 20px;
}
.entry.past {
    background-color: #e0e0e0;
    color: #888;
}

.entry.past .time,
.entry.past .event,
.entry.past .details {
    color: #888;
}

.entry:last-child {
    border-bottom: none;
}
.entry.now {
    border: black 1px solid;
    box-sizing: border-box;
}
b {
    display: inline;
    color: red;
    font-weight: bold;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

li:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

li a {
  display: block;
  padding: 15px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

li a:hover {
  background-color: #ecf0f1;
}

/* Button styles */
.button, button {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.1s ease;
  margin-right: 10px;
  margin-bottom: 10px;
    text-align: center;
}

.button:hover, button:hover {
  background: #2980b9;
}
.save-button{
    margin: auto;
    width: 50%;
}

.button-form{
    display: inline-block;
}

button[type="submit"] {
  background-color: #e74c3c;
}

button[type="submit"]:hover {
  background-color: #c0392b;
}


/* Form styles */
form {
    display: flex;
    flex-direction: column;
}

form input[type="text"],
form input[type="number"],
form input[type="datetime-local"],
form textarea {
    padding: 10px;
    /*margin-bottom: 15px;*/
    border: 1px solid #ccc;
    border-radius: 4px;
      width: calc(66.66% - 5px);
    resize: none;
    max-height: 200px;  /* Set your desired max height */
    min-height: 40px;

}

.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #333;
}

.form-group input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
  width: 0;
}

.form-group input[type="file"]::before {
  content: 'Select files';
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 8px 12px;
  outline: none;
  white-space: nowrap;
  -webkit-user-select: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  margin-right: 10px;
}

.form-group input[type="file"]:hover::before {
  background: #2980b9;
}

.form-group input[type="file"]:active::before {
  background: #2471a3;
}


/* styles.css */

/* General form styles */
.form-group {
    margin-bottom: 15px;
}

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

.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
}

.form-group select:hover {
  border-color: #aaa;
}
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group select[name^="date_start_"] {
  width: calc(33.33% - 5px);
  margin-right: 5px;
}

.form-group select[name^="date_start_"]:last-child {
  margin-right: 0;
}

.form-group select[name^="date_end_"] {
  width: calc(33.33% - 5px);
  margin-right: 5px;
}

.form-group select[name^="date_end_"]:last-child {
  margin-right: 0;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-control:focus {
    border-color: #007bff; /* Focus color */
    outline: none; /* Remove outline */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


/* Error message styles */
.error-message {
    color: red;
    margin-bottom: 15px;
}

/* Table styles for listing entities */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.media{
    margin-top: 50px;
}
.media-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.image-wrapper, .video-wrapper {
  position: relative;
}

.media-container img,
.media-container video {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.delete-image, .delete-video {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(231, 76, 60, 0.8);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.delete-image:hover, .delete-video:hover {
  background: rgba(192, 57, 43, 0.8);
}
hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  margin: 20px 0;
}


#leader-role-formset {
  margin-bottom: 20px;
}

.form-row {
    margin-top: 10px;
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
}

.form-row select,
.form-row input[type="text"] {
  flex: 1;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 12px auto;
}

.form-row label {
  margin-right: 10px;
  font-weight: bold;
  color: #333;
}

.form-row input[type="text"]:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.delete-row {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
    margin: 0px;
}

.delete-row:hover {
  background-color: #c0392b;
}

#add-leader-role {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
    margin-top: 10px;
}

#add-leader-role:hover {
  background-color: #27ae60;
}

.select2-container li{
  margin: 0;
}

.select2-container {
  width: 100%;
}
fieldset{
    margin-bottom: 20px;

}
fieldset > *{
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
}
.timetable-top-line{
    display: flex;
    justify-content: space-between;
}
.timetable-group[class$='-id'] {
            display: none;
        }

button.load-button{
    background-color: #4CAF50; /* Hex color for the button */
}

button.load-button:hover{
    background-color: #45a049; /* Darker shade for hover effect */
}
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .media {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .delete-image, .delete-video {
        top: 40px;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        text-align: center;
        font-size: 14px;
        padding: 8px 0;
        opacity: 0.9;
    }

    .image-wrapper:hover .delete-image,
    .video-wrapper:hover .delete-video {
        opacity: 1;
    }

    button, .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .event_container {
        flex-direction: column;
        align-items: flex-start;
    }

    .time, .event {
        margin-bottom: 5px;
    }
    .form-group input[type="file"]::before {
        display: block;
        margin-bottom: 10px;
      }
    li {
    margin-bottom: 10px;
  }

  li a {
    padding: 12px;
  }
  form input[type="text"],
    form input[type="number"],
    form input[type="datetime-local"],
    form textarea {
        width: 100%;

    }
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row select,
  .form-row input[type="text"],
  .form-row label {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .delete-row {
    align-self: flex-end;
  }
  .timetable-top-line{
      display: block;
  }
}



