@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

body {
  background-image: url('../imagens/bgmeu.png');
}
  
header {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #272727;
  color: white;
  padding: 10px;
  text-align: center;
}
  
/* Estilização geral da seção de filtros */
.filters {
  padding: 20px;
  background: linear-gradient(135deg, #121212, #1e1e1e);
  /* border-radius: 12px; */
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  text-align: center;
}

/* Layout dos filtros em cards */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Estilização dos cards de seleção */
.select {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 180px;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Efeito ao passar o mouse */
.select:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.2);
}

/* Estilização do label */
.select label {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Estilização do select */
.select select {
  padding: 8px;
  width: 100%;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  outline: none;
  text-align: center;
  transition: 0.3s;
}

option {
  background-color: #1e1e1e;
  color: #ffffff;
  text-align: center;
}

/* Efeito no select ao passar o mouse ou focar */
.select select:hover,
.select select:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.4);
}

/* Estilização do botão de limpar */
.btn-limpar {
  background: linear-gradient(135deg, #ff4d4d, #b71c1c);
  color: white;
  padding: 12px 20px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Efeito no botão ao passar o mouse */
.btn-limpar:hover {
  background: linear-gradient(135deg, #ff6666, #d32f2f);
  transform: scale(1.05);
}

.btn-link-white {
  background-color: #FF323D;
  text-decoration: none;
  color: #ffffff;
  padding: 15px;
  border-radius: 5px;
}

/* Estilização do texto abaixo dos filtros */
.filters h4 {
  color: #ccc;
  font-size: 14px;
  margin-top: 15px;
}

.filters h4 a {
  color: #ff4d4d;
  font-weight: bold;
  text-decoration: none;
}

.filters h4 a:hover {
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    gap: 15px;
  }

  .select {
    width: 100%;
  }

  .btn-limpar {
    width: 100%;
    justify-content: center;
  }
}

/* Botão para expandir os filtros em dispositivos móveis */
#toggle-filters {
  display: none; /* Só aparece em telas menores */
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff4d4d, #b71c1c);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
  border-radius: 8px;
}

/* Efeito ao passar o mouse no botão */
#toggle-filters:hover {
  background: linear-gradient(135deg, #ff6666, #d32f2f);
  transform: scale(1.02);
}

/* Oculta os filtros por padrão em dispositivos móveis */
@media (max-width: 768px) {
  .filters {
    display: none;
  }
  #toggle-filters {
    display: block; /* Ativa o botão */
  }
}

/* Animação para mostrar os filtros */
.filters.show {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Efeito suave ao aparecer */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.fichas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.ficha {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: #222;
  color: white;
  padding: 15px;
  border-radius: 10px;
  max-width: 350px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ficha img {
  width: 100%;
  border-radius: 10px;
}

.ficha .content {
  padding: 10px 0;
}

.ficha p {
  margin: 16px 0px;
}

.ficha-descricao {
  text-align: justify;
  line-height: 22px;
  font-weight: 500;
  color: #d6d6d6;
  border-left: 3px solid #FF323D;
  padding-left: 10px;
}

.ficha-titulo{
text-align: center;
font-size: 22px;
color: #FF323D;
}

.ficha .stars {
  margin: 5px 0;
}

.emoji-icone {
  font-family: 'Noto Color Emoji', sans-serif;
}

.ficha-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
  
/* .ficha-buttons button {
  flex: 1;
  padding: 5px;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
} */

/* .view-button {
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  background-color: #0fb400;
  cursor: pointer;
}

.view-button:hover {
  background-color: #10bb00;
}

.download-button {
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  background-color: #ff0000;
  cursor: pointer;
}
  
.download-button:hover {
  background-color: #c40000;
} */

/*----- Modal -----*/

.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-content {
  position: relative;
  background: white;
  padding: 15px;
  border-radius: 8px;
  width: 95%;
  max-width: 800px;
  max-height: 95%;
  /* margin: 10px; */
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  /* background: red; */
  color: rgb(255, 0, 0);
  font-size: 34px;
  /* width: 40px;
  height: 40px; */
  border-radius: 50%;
  text-align: center;
  /* line-height: 36px; */
  cursor: pointer;
  transition: background-color 0.3s;
}

.close:hover {
  color: darkred;
}

body.modal-open {
  overflow: hidden;
}

.titulo-treino {
  text-align: center;
  padding-bottom: 15px;
}

.titulo-dia {
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th, td {
  /* border: 1px solid #ddd; */
  padding: 12px;
  text-align: center;
}

th {
  background: #6c757d;
  color: white;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #f1f1f1;
}

th[colspan] {
  background: #343a40;
  color: white;
  text-align: center;
}

.table-btn-area {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
  /* background-color: yellow; */
}

.a-btn {
  width: 100%;
  text-align: center;
  background-color: #FF323D;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  background-image: url('../imagens/bgmeu-escuro.png');
  padding: 10px;
  margin-top: 20px;
}

footer p {
  color: #fff;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: #FF323D;
}