:root{
  /*--vbackground: #f5f5f5;*/   /* lightgray */
  --vbackground: #ddd;
  --vgraychar: #787878;   /*rgb(120,120,120);*/
  --vblue: DodgerBlue;
  --vwhite: white;
  --textwhite: #eee;
}

body{
  margin: 0;
  box-sizing: border-box;
  background-color: var(--vbackground);
  font-family: verdana;
  //width: 100vw;
  //height: 100vh;
}

nav{
  display: flex;
  background-color: var(--vblue);
  justify-content: space-between;
  align-items: center;
}

.logo{
  padding-left: 20px;
}

.logo a{
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

nav a, span{
  text-decoration: none;
}

.language{
  padding-right: 20px;
}

.links a{
  font-weight: 500;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 1.5rem;
  color: var(--textwhite);
  transition-duration: .5s;
  border-left: 1px solid white;
}
.links a:first-child{
  border-left: 0;
}

.language a,span{
  font-size: 1rem;
  color: var(--textwhite);
}

.links a:hover, .language a:hover{
  color: white;
}

.cards{
  margin: 20px auto;
  display: grid;
  width: 90%;
  grid-template-columns: repeat(auto-fit, minmax(400px,1fr));
  gap: 12px;
}

.card{
  background-color: white;
  display: flex;
  flex-direction: column;
}

.card>a>img{
  display: block;
  width: 100%;
  /* object-fit: contain; */
}

.card>h1, .card>p{
  padding: 0 30px;
}

.card>h1>a{
  text-decoration: none;
}

.card > div{
  margin-top: auto;
  background-color: var(--vblue);
  color: white;
  height: 2rem;
  font-size: 1.25rem;
  text-align: center;
}

.imglink{
  cursor: pointer;
}

footer{
  display: flex;
  background-color: var(--vblue);
  height: 2rem;
  color: white;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  nav{
    flex-direction: column;
  }
  .links a{
    display: block;
    text-align: center;
    border-top: 1px solid white;
    border-left: 0;
  }
  .links a:last-child{
    border-bottom: 1px solid white;
  }
  .logo, .language{
    padding: 0;
  }
  .logo>a, .links>a, .language>a, .language>span{
    font-size: 3rem;
  }
  footer{
    font-size: 1.5rem;
  }
}
