
@import url('https://fonts.googleapis.com/css2?family=Joan&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
    background-image: linear-gradient(to bottom right, grey, black);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider{
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: rotate 80s linear infinite;
  z-index: 1;
}

@keyframes rotate {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100%{
    transform: perspective(1000px) rotateY(360deg);
  }
}

.slider span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i)*45deg)) translateZ(350px);
}

.slider span img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  object-fit: cover;
  transition: 2s;
}

.slider span:hover img{
  transform: translateY(-30px) scale(1);
}
.slider span a img{
  position: absolute;
  left: 50%;
  animation: none;
}
.shade {
  position: absolute;
    background-color: rgb(0,0,0,0.5 );
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 2;
}
.welcome_text {
  position: absolute;
  z-index: 3;
  color: white;
  font-size: 25px;
  left: 3%;
  top: 40%;
  background-color: rgb(0,0,0,0.8 );
  padding: 20px;
  border-radius: 20px;
}

.header  h1{
  position: absolute;
  z-index: 3;
  color: white;
  top: 5%;
  left: 5%;
  font-family: 'Joan', serif;

}

/* Dropdown Button */
.header .dropbtn {
  background-color: rgba(0,0,0,0.2);
  color: white;
  padding: 16px;
  padding-right: 30px;
  font-size: 16px;
  border: none;
  width: 200px;
  border-radius: 10px;
}

/* The container <div> - needed to position the dropdown content */
.header .dropdown {
  left: 70%;
  top: 5%;
  position: absolute;
  display: inline-block;
  z-index: 3;
}

/* Dropdown Content (Hidden by Default) */
.header .dropdown-content {
  display: none;
  position: absolute;
  background-color: #CCCECE ;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 3;
  border-bottom-right-radius: 30px;
}

/* Links inside the dropdown */
.header .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom-right-radius: 30px;
}

/* Change color of dropdown links on hover */
.header .dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.2);

}

/* Show the dropdown menu on hover */
.header .dropdown:hover .dropdown-content {
  display: block;
  animation-name: fade-in;
  animation-duration: 1s;
}

@keyframes fade-in {
  0%{
    height: 100px;
    opacity: 0;
  }
  50%{
    height: 295px;
    opacity: 0.7
  }
  100%{
    height: auto;
    opacity: 1;
  }
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.header .dropdown:hover .dropbtn {
  background-color: rgba(0,0,0,0.1);
}

.arrow {
  position:  absolute;
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  z-index: 3;
  left: 90%;
  top: 40%;

}

.down {
  position: absolute;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  transition: 0.5s;
  z-index: 3;
  border-color: white;
}
.header .dropdown:hover > .down{
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transition: 0.5s;
}

.ham_btn{
  display: none;
}

@media screen and (max-width: 1050px){
  .ham_btn{
    position: absolute;
    top:2%;
    left: 70%;
    display: flex;

    z-index: 25;


  }
  .ham_btn .menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
    margin: 0;
  }
  .ham_btn  .line {

    fill: none;
    stroke: white;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .ham_btn .line1 {

    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .ham_btn .line2 {

    stroke-dasharray: 60 60;
    stroke-width: 6;
  }
  .ham_btn .line3 {

    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
.ham_btn   .opened .line1 {

    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  .ham_btn .opened .line2 {

    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
  }
  .ham_btn .opened .line3 {

    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }

  .header .dropdown{
    display: none;
  }

  .header .dropdown.active {
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: grey;
    z-index: 10;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    margin:0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;


  }
  .header .toggle{
    display: none;
    position: relative;
    width: 70px;
    height: 70px;
    background: url('clinic_photos/ham.jpg');
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    z-index: 10000;
    margin-left: 85%;
  }
  .header .toggle.active{
    display: none;
    background: url('clinic_photos/ham_closed1.jpg');
    background-size: 65px;
    background-repeat: no-repeat;
    background-position: center;
  }
  .header .dropdown .dropdown-content {
    display: block;
    font-size: 35px;
  }
  .header h1{
    font-size: 50px;
  }

  .welcome_text {
    position: absolute;
    z-index: 3;
    color: white;
    font-size: 40px;
    left: 10%;
    top: 25%;
    width: 80%;
    height: auto;
    background-color: rgb(0,0,0,0.7 );
    padding: 20px;
    border-radius: 20px;
  }
  .header .dropdown:hover .dropdown-content {
    display: block;
    animation-name: none;
    animation-duration: 0s;
  }
  .arrow {
  display: none;
}
}
