@font-face {
    font-family: "Rodondo";
    src: url(font/Rodondo.otf) format(truetype);
}

html{
    font-family: "Rodondo", sans-serif;
    font-size: larger;
}

body {
  background-color: #e0dac9;
  padding: 0 2rem;
  color: #333;
}

header {
  text-align: center;
  padding: 1rem;
  font-size: larger;
}

#introduccion-galeria{
    border: 3px solid rgb(62, 62, 65);
    padding: 1rem;
    border-radius: 10px;
    background-color: #9c998e;
    text-align: center;
}

#galeriaIntroduccion{
  margin-top: 0;
}

.galeria-grid {
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.dibujo-card {
  background-color: #dbdada;
  border: 3px solid #9c9c9c;
  margin: auto;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.dibujo-card:hover {
  transform: scale(1.05);
}

.dibujo-card img {
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 380px;
}

.dibujo-card p {
  font-weight: bold;
  font-size: larger;
  color: #444;
}

a{
    text-decoration: none;
}

#d10 a:hover, #d21 a:hover{
  text-decoration: underline;
}

.carrusel{
    position: relative;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    margin: auto;
}

.imagenes{
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.imagenes img{
    width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-140%);
  background-color: rgba(255,255,255,0.7);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

button.prev { left: 10px; }
button.next { right: 10px; }

.selector-idioma{
    position: relative;
    display: inline-block;
}

#boton-idioma{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#menu-idioma{
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e0dac9;
    border: 2px solid #928e81;;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem;
    z-index: 10;
    font-weight: bold;
}

#menu-idioma li{
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#menu-idioma li:hover{
    background-color: #ccc4af;
    border-radius: 8px;
}

.oculto{
    display: none;
}

#textoIntermedio{
  text-align: center;
  font-weight: bold;
  font-size: 30px;
}

@media (max-width: 600px){
  html{
    font-size: medium;
  }

  body{
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header{
    font-size: 1.1rem;
    padding: 0.5rem;
  }

  #introduccion-galeria{
    padding: 0.8rem;
    font-size: 1.1rem;
    line-height: 0.8;
    width: 380px;
    height: auto;
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .dibujo-card{
    padding: 0.8rem;
    max-width: 100%;
  }

  .dibujo-card:hover{
    transform: none;
  }

  .dibujo-card p{
    font-size: 1.32rem;
  }

  #textoIntermedio{
    margin-left: 2rem;
    line-height: 0.8;
  }

  a:hover{
    text-decoration: none;
  }

  .carrusel{
    max-width: 100%;
  }

  button.prev,
  button.next {
    font-size: 1.2rem;
    padding: 0.4rem;
    transform: translateY(-150%);
  }
}