html {
  background: url(../img/Raigastvere-min.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  margin: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: transparent
}

a {
  text-decoration: none;
  color: inherit;
}

.pealkiri {
  font-family: 'Fredericka the Great', cursive;
  font-size: 3.5rem;
  letter-spacing: 4px;
  text-align: center
}
.cover {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero {
  opacity: 0;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: 1s slidefade 1s forwards
}
@keyframes slidefade {
  100% {
    opacity: 1;
    margin: 0
  }
}

.lingid {
  display: flex;
  text-align: center
}


.link {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 5px 20px;
  border-bottom: 2px solid transparent;
}

.link:after {
  content: '';
  width: 0px;
  height: 2px;
  display: block;
  background: white;
  transition: 500ms;
}

.link:hover {
  color: white;
  text-decoration: none;
}

.link:hover:after {
  width: 100%;
}

footer {
  opacity: 0;
  position: absolute;
  display: flex;
  bottom: 0;
  margin-bottom: 30px;
  animation: 1s fadein 0.5s forwards
}

.modal-dialog {
  max-width: 1000px;
  top: 10%;
}

.modal-content {
  border-radius: 0px
}

.modal-header {
  border-bottom: none
}

@keyframes fadein {
  100% {
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .pealkiri {
    font-size: 2rem
  }
  .link {
    font-size: 1rem
  }
}
@media (max-width: 1500px) {
  .link {
    font-size: 1.2rem
  }
}
@media (max-width: 1120px) {
  .lingid {
    flex-direction: column;
  }
  .link:not(:first-child) {
    border: none
  }
}
