.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 75%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    margin: auto;
    display: block;
  }
  
  .active, .accordion:hover {
    background-color: #ccc;
  }
  
  .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    text-align: center;
    width: 75%;
    padding: inherit;
    margin: auto;
  } 

li {
    display: block;
}

td  {
    background-color: transparent;
}

table   {
    width: auto;
    margin: auto;
}

.title  {
    text-align: center;
    color: white;
    margin-bottom: -10px;
}

.title-alt  {
  text-align: center;
  color: white;
  margin-bottom: -10px;
}

.temperature {
  text-align: center;
  color: white;
}

body {
    background-color: #00071c;
}

h2 {
  color: black;
}

 /* The switch - the box around the slider */
 .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #93c489;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Admin Module Styles */
.admin-module {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #444;
  border: 2px solid #666;
  padding: 15px;
  z-index: 1000;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.admin-module h3 {
  color: white;
  margin-top: 0;
  font-size: 16px;
  text-align: center;
}

.admin-button {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  transition: background-color 0.3s;
}

.admin-button:hover {
  background-color: #0b7dda;
}

.admin-close {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
}

.admin-close:hover {
  color: white;
}

/* Feedback Button and Modal Styles */
.feedback-button {
  position: relative; /* Changed from fixed to relative */
  bottom: auto; /* Remove bottom positioning */
  right: auto; /* Remove right positioning */
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px; /* Reduced size to fit in header */
  height: 40px; /* Reduced size to fit in header */
  font-size: 18px; /* Reduced font size */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feedback-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Create header feedback container */
.header-feedback {
  position: absolute;
  top: 15px;
  left: 20px;
  display: flex;
  align-items: center;
}

/* Add tooltip to feedback button */
.feedback-button::after {
  content: "Lähetä palautetta";
  position: absolute;
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  left: 110%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.feedback-button:hover::after {
  opacity: 1;
  visibility: visible;
}

.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.feedback-modal-content {
  background-color: white;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-modal-header {
  margin-bottom: 20px;
  position: relative;
}

.feedback-modal-header h3 {
  color: #333;
  margin: 0;
  padding-right: 30px;
  font-size: 1.5rem;
}

.feedback-close {
  position: absolute;
  top: 0;
  right: 0;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.feedback-close:hover {
  color: #555;
}

.feedback-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.feedback-form textarea:focus {
  border-color: #2196F3;
  outline: none;
}

.feedback-form button {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
  width: 100%;
}

.feedback-form button:hover {
  background-color: #0b7dda;
}

.feedback-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  display: none;
}

.feedback-status.success {
  background-color: #e7f7e7;
  color: #2e7d32;
  display: block;
}

.feedback-status.error {
  background-color: #fdeded;
  color: #c62828;
  display: block;
}
