body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  overflow-x: hidden; 
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px; 
  max-width: 600px; 
  margin: auto; 
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column; 
  margin: 10px 0;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  font-size: 14px;
}

.button-container {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: white;
}

.btn-primary {
  background-color: #007bff;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-red {
  background-color: red;
}

.alert {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
}

.alert.success {
  background-color: #28a745;
  color: white;
}

.alert.danger {
  background-color: #dc3545;
  color: white;
}

.btn-secondary.selected {
  background-color: #0be2d8;
}

.btn-red.selected {
  background-color: red;
}

.nav {
  margin-bottom: 1rem;
}

.logo {
  text-align: center;
  margin-bottom: 15px;
}

.logo img {
  max-width: 100px;
  border-radius: 5px;
}

.username {
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.storage-info {
  margin-top: 20px;
}

.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  height: 20px;
}

.progress {
  height: 100%;
  background-color: limegreen; /*#149fd2;*/
  transition: width 0.5s;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  display: block;
  box-sizing: border-box;
  outline: none;
}

select[multiple] {
  min-height: 80px;
  overflow-y: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .container {
    max-width: 900px;
    padding: 40px;
  }
  
  select {
    font-size: 16px;
    padding: 12px;
  }
  
  select[multiple] {
    min-height: 150px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  #selected_sponsors {
    min-height: 150px !important;
    display: block !important;
    width: 100% !important;
    background-color: #fff !important;
    border: 2px solid #007bff !important; 
  }
  
  .form-group {
    width: 100%;
    margin: 20px 0;
  }
  
  form {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  
  #selected_sponsors {
    min-height: 200px !important;
  }
}
