body,
html {
  height: 100%;
  margin: 0;
  font-family: "Lora", serif;
  background-color: #f4f4f4;
}

.parent {
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

.header {
  align-items: center;  
  padding: 20px 0;
  background-color: #1d6c36;
  color: #ffc107;
  text-transform: uppercase;
  gap: 10px;
}
 
.buttons-container {
  display: flex; 
  gap: 10px;  
  align-items: center;  
}

.import-button {
  display: inline-block;
  background-color: #ffc107;
  color: #fff;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.import-button:hover {
  background-color: #e0a800;
}

.recipes-container {
  display: flex;
  justify-content: center;  
  align-items: flex-start;  
  width: 100%;  
  padding: 20px;
  box-sizing: border-box;  
}

.recipes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;  
}
.recipe-card {
  width: 20rem;
  align-items: center;
  border: 2px solid #007bff;
  border-radius: 10px;
  background-color: #000;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipe-card:hover {
  transform: translateY(-5px);
}

.recipe-link {
  margin-right: 1rem;
  margin-left: 1rem;
  color: #ffc107;
  font-size: 1.5rem;
  align-items: center;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  display: block;
 
  word-wrap: break-word;  
  overflow-wrap: break-word;  
  white-space: normal;  
}

.recipe-link:hover {
  color: #e0a800;
}

.no-recipes {
  font-size: 1.5rem;
  color: #999;
  font-style: italic;
}

.condition-play {
  border-color: green;
  border-width: 1rem;
}

.condition-stop {
  border-color: yellow;
  border-width: 1rem;
}
.condition-error {
  border-color: red;
  border-width: 1rem;
}

.condition-end {
  border-color: white;
  border-width: 1rem;
}

.condition-none {
  border-color: gray;
  border-width: 1rem;
}

@media (max-width: 768px) {
  .parent {
    padding: 10px;
  }

  .recipes-container {
    flex-direction: column;
    align-items: center;
  }

  .title {
    font-size: 2rem;
  }

  .import-button {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .recipes-list {
    gap: 1em;
    width: 100%;
  }

  .recipe-card {
    max-width: 90%;
    padding: 15px;
    font-size: 1rem;
  }

  .recipe-link {
    font-size: 1.1rem;
  }
  .side-image {
    display: none; 
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .import-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .recipes-list {
    gap: 0.8em;
  }

  .recipe-card {
    max-width: 100%;
    padding: 10px;
  }

  .recipe-link {
    font-size: 1rem;
  }
}
 
.grid-view {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.grid-view .recipe-card {
  width: 20rem;
}

 
.list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-view .recipe-card {
  width: 100%;
}

.side-image {
  max-width: 80px; 
  height: auto; 
}

.left-image {
  margin-right: 10px; 
}

.right-image {
  margin-left: 10px; 
}

@media (max-width: 768px) {
  .side-image {
    max-width: 60px; 
  }
}

@media (max-width: 480px) {
  .side-image {
    max-width: 40px; 
  }
}

.import-container {
  margin: 20px 0;
}

.view-and-sede-container {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  padding: 0 15px; 
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sede-switch-container {
  margin-right: auto; 
}

.view-mode-buttons {
  margin-left: auto;
}
