body {
 background-color: black;
}

html { 
 overflow-x: hidden; 
}

.other {
  display: grid;
  grid-template-columns: auto auto;
  gap: 20px;
  padding: 10px;
}

.gallery {
 display: block;
  justify-items: center;
 justify-content: center;
}


.container {
 position: relative;
 
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
 position: absolute;
 top: 0; 
 bottom: 0;
 left: 0;
 right: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); 
  color: #f1f1f1;
 height: auto; 
 width: auto;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}


.container:hover .overlay {
  opacity: 1;
  
}

.text {
  font-family: 'Lato', sans-serif;
  color: white;
  font-size: 1.5vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.second {
 font-family: 'Oswald', sans-serif;
 font-size: 4vw;
 transform: translate(0%, 60%);

}

.tobor {
 font-family: 'Oswald', sans-serif;
 font-size: 4vw;
 transform: translate(0%, 250%);
 line-height: 20%;
}



nav {
 transform: translateX(0%) translateY(-25%);
 padding: 0;
 position: absolute;
 width: 100%;
 height: 60px;
 z-index: 10;
}

nav ul {
 float: right;
}

nav ul li {
 float: left;
 list-style: none;
 position: relative;
 width: 220px;
 text-align: center
 
}

nav ul li a {
 display: block;
 font-family: 'Lato', sans-serif;
 color: white;
 font-size: 18px;
 padding: 24px 14px;
 text-decoration: none;
}

nav ul li a:hover {
 color: black;
 background-color: #ffffff;
 
 
}

nav ul li ul {
 display: none;
 position: absolute;
 background-color: white;
 opacity: .7;
 padding: 10px;
 border-radius: 4px;
}

nav ul li:hover ul {
 display: block;
}

nav ul li ul li {
 border-radius: 0px 0px 4px 4px;
 padding: 0px 0px 0px 24px;
 width: 150px;
 text-align: center;
}

nav ul li ul li a {
 padding: 8px 14px;
 color: black;
}

nav ul li ul li a:hover {
 background-color: #ffffff;
 opacity: .1;
}

.logo {
  position: absolute;
  height: 17%;
  width: auto;
  left: 7%;
  top: 3%;
  z-index: 10;
  transition: .5s ease;
}

.logo:hover {
 transform: scale(1.1); 
}

#slide_bg {
 width: 100%;
 height: 21%;
 position: relative;
 overflow: hidden;
 background-position: center center;
 background-size: cover;
 background-repeat: no-repeat;
 backface-visibility: hidden;
 animation: slideBg 120s linear infinite 0s;
 animation-timing-function: ease;
 background-color: black;
 opacity: .6;
 z-index: 1;
}

@media only screen and (max-width: 600px) {
    nav ul li {
        width: auto;
    }

    .logo {
        height: 10%;
        left: 3%;
    }

    nav ul li a {
        padding: 20px 14px;
        margin-top: 50px;
        font-size: 16px;
    }

    nav ul li ul li {
        padding: 0px;
    }

        nav ul li ul li a {
            margin-top: 15px;
        }
}

@keyframes slideBg {
 0% {
  background-image: url("../images/16.jpg");
} 
 6.25% {
  background-image: url("../images/1.jpg");
}
 12.5% {
  background-image: url("../images/18.jpg");
}
 18.75% {
  background-image: url("../images/3.jpg");
}
 46.4% {
  background-image: url("../images/5.jpg");
}
 25% {
  background-image: url("../images/19.jpg");
}
 31.25% {
  background-image: url("../images/6.jpg");
}
 37.5% {
  background-image: url("../images/7.jpg");
}
 43.75% {
  background-image: url("../images/8.jpg");
}
 50% {
  background-image: url("../images/20.jpg");
}
 56.25% {
  background-image: url("../images/10.jpg");
}
 62.5% {
  background-image: url("../images/11.png");
}
 68.75% {
  background-image: url("../images/17.jpg");
}
 75% {
  background-image: url("../images/12.jpg");
}
 81.25% {
  background-image: url("../images/13.jpg");
}
 97.5% {
  background-image: url("../images/14.jpg");
}
 100% {
  background-image: url("../images/15.jpg");
}