@keyframes blink {
  0%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; } /* mai desapareix completament */
  50% { opacity: 0.5; }       /* punts intermedis per suavitzar */
}

.blink {
  animation: blink 0.5s ease-in-out infinite;
}

html, body {
  background-color: #4f4f6c;
  font-family: sans-serif;
  scroll-behavior: smooth;
}

hr {
  border: #C0C1C1 dotted 3px;
  border-top: #C0C1C1 dotted 3px;
}

.logo {
  height: auto;
  width: 50vh;
}

header.center, footer.center {
  margin: 2vh 3vh;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-start;
  align-content: center;
  align-items: flex-end;
}

#dataavui {
  width: 100%;
  font-weight: normal;
  text-align: right;
  color: #C0C1C1;
  margin-bottom: 0;
}

div.center {
  color: white;
  margin: 3vh;
  gap: 2vh;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  align-items: center;
}

button {
  cursor: pointer;
  border-radius: 2vh;
  box-shadow: 5px 5px #0F0F0F;
  font-size: 4vh;
  padding: 3vh;
  border: none;
  transition: all 0.1s ease-in-out;
}

button:hover {
  background-color: #C0C1C1;
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px black;
}

button img {
  width: auto;
  height: 5vh;
  margin-right: 1vh;
  vertical-align: middle;
}

.clicker {
  cursor: pointer;
}
.clicker li {
  font-weight: normal;
  cursor: pointer;
}

.clicker li:hover {
  font-weight: bold;
}

#dades, #anada, #tornada {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  align-content: center;
  width: 90%;
}

#dades {
  flex-wrap: nowrap;
}

#tornada {
  display: none;
}

#anada div:first-child, #tornada div:first-child {
  flex: 2;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

#anada div:nth-child(2), #tornada div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

.hiddenOnPhone {
  display: block;
}

.hiddenOnPC {
  display: none;
}

.separator {
  border-style: solid;
  width: 85%;
}

.routestodisplay {
  gap: 5vh;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.routedisplay {
  border: 2.5px solid white;
  text-align: center;
  font-size: 2.5vh;
}

.routedisplay tr td {
  padding: 3vh;
  cursor: pointer;
}

.routedisplay tr:first-child td:hover, .routedisplay tr:nth-child(3) td:hover {
  font-weight: bold;
  cursor: pointer;
}

.routedisplay tr:nth-child(2) td {
  border-top: 2.5px solid white;
  border-bottom: 2.5px solid white;
  padding: 2vh;
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 2vh;
  justify-content:
  center;
  align-items: center;
  align-content: center;
}

.galeria img {
  width: 400px;
  height: 400px;
  object-fit: contain;
}

img.aliasing {
  image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
  image-rendering: -moz-crisp-edges;          /* Firefox                        */
  image-rendering: -o-crisp-edges;            /* Opera                          */
  image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
  image-rendering: pixelated;                 /* Universal support since 2021   */
  image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
  -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
}

.containerrewind {
  display: flex;
  flex-direction: row;
  gap: 3%;
  justify-content: space-around;
}

.containerrewind img {
  cursor: pointer;
  height: 250px;
  width: auto;
}

.mapabcn {
  height: auto;
  width: 80%;
}

.mapa1991_llista {
  columns: 2;
  column-gap: 5vh;
  width: 60%;
  font-size: 3vh;
}

.mapa1991_llista li::marker {
  content: url('/images/rewind/any1991/pictogrames/bus.png');
}

.mapa1991_llista li {
  padding: 2px;
  font-weight: normal;
}

.mapa1991_llista li:hover {
  font-weight: bold;
  cursor: pointer;
}

.routebullet {
  background-color: red;
  margin: auto 2px;
  padding: 2px 10px;
  border-radius: 5px;
  font-weight: bolder;
}

.routeoriginendbullet {
  background-color: white;
  color: red;
  margin: auto 2px;
  padding: 2px 10px;
  border-radius: 5px;
  font-weight: bolder;
}

.routeoriginbullet {
  background-color: red;
  color: white;
  box-shadow: inset 0 0 0 3px white;
  margin: auto 2px;
  padding: 2px 10px;
  border-radius: 5px;
  font-weight: bolder;
}

.routeendbullet {
  background-color: black;
  color: red;
  box-shadow: inset 0 0 0 3px red;
  margin: auto 2px;
  padding: 2px 10px;
  border-radius: 5px;
  font-weight: bolder;
}

.mapa1991_llegenda {
  gap: 3vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

.mapa1991_llegenda p {
  transform: scale(1.25);
}

.mapaPC {
  display: grid;
  place-items: center;
}

.mapaTelf {
  display: none;
}

.helpClick {
  cursor: help;
  color: blue;
}

@media (max-width: 600px) {
  .mapaPC {
    display: none;
  }
  
  .mapaTelf {
    display: grid;
    place-items: center;
  }
  
  .mapa1991_llegenda {
    gap: 0.75vh;
    flex-direction: column;
  }
  
  .mapa1991_llista li::marker {
    content: url('/images/rewind/any1991/pictogrames/mobi/bus.png');
  }
  
  .mapabcn {
    height: auto;
    width: 110%;
  }

  .mapa1991_llista {
    columns: 1;
    width: 90%;
    font-size: 3vh;
  }

  .containerrewind {
    flex-direction: column;
    gap: 5%;
  }
  
  .containerrewind img {
    height: auto;
    width: 90%;
  }
  
  .logo {
    width: 40vh;
  }
  
  .hiddenOnPhone {
    display: none;
  }
  
  .hiddenOnPC {
    display: block;
  }
  
  #dades div:first-child, #anada div:first-child, #tornada div:first-child, #dades div:nth-child(2), #anada div:nth-child(2), #tornada div:nth-child(2) {
    align-items: center;
  }
  
  header.center {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  button.style1 {
    font-size: 3vh;
  }
  
  #dataavui {
    font-size: 3vh;
    text-align: center;
  }
  
  #dades, #anada, #tornada {
    flex-direction: column;
    align-items: center;
    width: 98%;
  }
  
  .routestodisplay {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
