@font-face {font-family: RobotoLight; src: url(fonts/Roboto-Light.ttf);}
@font-face {font-family: RobotoRegular; src: url(fonts/Roboto-Regular.ttf);}

* { /* css reset */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* always include padding and border in width and height */
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body:after{ /* this is needed to make the fixed background work on some mobile devices */
    background-color: #888F52;
    content: "";
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    right: 0;
    z-index: -1;
    background: url(img/bg.jpg) center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#glider {
    background-color: white;
    background-image: url("img/bg-front.gif");
    background-size: cover;
    margin-bottom: 100vh;
    width: 100vw;
    height: 100vh;
}

#front {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
}

#hint {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    font-size: 5vh;
    font-family: RobotoLight;
    color: #AAAAAA;
}

h1,h2,h3 {
    font-family: RobotoRegular;
    color: black;
}

h1 {
    font-size: 60px;
}

h2 {
    font-size: 36px;
    margin-bottom: 1em;
}

#logo {
    display: flex;
    align-items: center;
}

#logo img {
    width: 200px;
    margin-right: 30px;
}

#logo p {
    font-size: 24px;
}

.content {
    width: 640px;
    background-color: white;
    padding: 40px;
}

hr {
    width: 320px;
    border: 4px solid white;
    margin-top: 64px;
    margin-bottom: 64px;
}

.last {
    margin-bottom: 100px;
}

.map {
    width: 100%;
    margin-top: 1em;
}

p {
    font-family: RobotoLight;
    color: black;
}

h3 {
    margin-bottom: 1em;
}

a {
    color: black;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: #AAAAAA;
}

a:hover {
    text-decoration: none;
}

.weather {
    width: 280px;
}

.slider {
  width: 560px;
  text-align: center;
  overflow: hidden;
}
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.slides::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 10px;
}
.slides::-webkit-scrollbar-track {
  background: transparent;
}
.slides > div {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 560px;
  height: 315px;
  margin-right: 50px;
  border-radius: 10px;
  background: #eee;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  margin-bottom: 20px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

.slides > div > img {
  cursor: pointer;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 800px) {
    #logo {
        flex-direction: column;
    }

    h1,h2,#logo p {
        text-align: center;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 20px;
    }

    #logo p {
        font-size: 18px;
    }

    #logo img {
        width: 200px;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .content {
        width: 90vw;
        background-color: white;
        padding: 5vw;
    }

    hr {
        width: 70vw ;
        border: 2px solid white;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .last {
        margin-bottom: 30px;
    }

    .slider {
      width: 80vw;
    }
    .slides > div {
      scroll-snap-align: start;
      flex-shrink: 0;
      width: 80vw;
      height: 45vw;
      margin-right: 50px;
      border-radius: 10px;
      background: #eee;
      transform-origin: center center;
      transform: scale(1);
      transition: transform 0.5s;
      position: relative;
      margin-bottom: 20px;
      
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 100px;
    }
}