:root {
  --primary-color: #013220;
  --secondary-color: #177245;
  --background-color: #e9f1ee;
  --card-color: #f5f5f5;
  --text-color-bright: #f5f5f5;
  --text-color-dark: #023728;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
}

header {
  background: var(--primary-color);
  color: rgb(246, 247, 246);
  padding: 10px;
  text-align: center;
  border-radius: 0 0 4px 4px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px 0px;
}
.info {
  text-align: center;
  margin: 10px;
  padding: 15px;
  background: #e6f4f1;
  color: var(--text-color-dark);
  font-size: 17px;
}

.calendar-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px;
  font-weight: bold;
  font-size: 19px;
  color: var(--text-color-dark);
}
.panel-card {
  display: flex;
  gap: 12px;
  margin: 0;
  width: 140px;
  padding: 10px;
  height: auto;
}
.panel-button {
  background: #eefcf8;
  color: var(--text-color-dark);
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.16),
    0 2px 5px rgba(0, 0, 0, 0.23);
  cursor: pointer;
}

.panel-button:hover {
  background: #d4f0e1;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.23);
}
.panel-button.active {
  background: red;
  color: white;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.23);
}
.calendar {
  background: var(--background-color);
  border: 10px solid var(--primary-color);
  padding: 10px;
  margin: 5px;
}
.calendar-content {
  grid-template-columns: 80px repeat(5, 120px);
  display: grid;
  gap: 8px;
  overflow-x: auto;
  height: 100%;
  width: auto;
}

.calendar-head {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--secondary-color);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.time {
  display: flex;
  background: var(--secondary-color);
  color: white;
  font-weight: bold;
  font-size: 17px;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--card-color);
  padding: 10px;
  min-height: 70px;
  width: auto;
}

.card strong {
  display: block;
  margin-top: 3px;
  margin-bottom: 10px;
  color: white;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.card small {
  display: block;
  color: white;
  font-size: 13px;
  text-align: center;
  overflow-wrap: break-word;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sombra e borda arredondada para os elementos principais */
.info,
.card,
.header,
.time {
  box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 16px 0px;
  border-radius: 8px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-content {
  display: flex;
  flex-direction: column;
  background: white;
  border: 5px solid var(--primary-color);
  padding: 30px;
  border-radius: 8px;
  width: 300px;
  height: 270px;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.modal-content h3 {
  margin-bottom: 25px;
  color: var(--text-color-dark);
  font-size: 23px;
}
.modal-content input {
  padding: 10px;
  width: 80%;
  margin-bottom: 15px;
  border: 1px solid var(--text-color-dark);
  border-radius: 4px;
}
.modal-content button {
  background: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.modal-content button:hover {
  background: #045d3b;
}
/* Opções de cores para os cards */
.warning-message {
  color: red;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
  display: none;
}

.color-options div {
  width: 50px;
  height: 40px;
  border-radius: 6px;
  gap: 2px;
  display: inline-block;
  cursor: pointer;
  margin-bottom: 15px;
}

.color-options div.selected {
  border: 3px solid black;
  transform: scale(1.05);
}

.color-options .teal,
.card.teal {
  background: #007a7a;
}
.color-options .ocean,
.card.ocean {
  background: #118ab2;
}
.color-options .emerald,
.card.emerald {
  background: #06d6a0;
}
.color-options .lobster,
.card.lobster {
  background: #D75656;
}
.color-options .classic-crimson,
.card.classic-crimson {
  background: #da1e37;
}

footer {
  text-align: center;
  padding: 10px;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.7;
}

/* Animação de piscar para os cards */
@keyframes blink {
  0%,
  100% {
    border: 2px solid transparent;
  }
  50% {
    border: 2px solid var(--secondary-color);
  }
}

.card.blinking {
  animation: blink 1.5s infinite ease-in-out;
  padding: 8px;
}
