:root{
  --primary-color:#85b0f5;
  --hover-color: #FFFFFF;
  --background-color: #506992;
} 

#accesoryBlock{
  font-size: 2rem;
  width: 90%;
  background-color: var(--background-color);
  display: flex;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  flex-wrap: wrap;
  color: rgb(0, 0, 0);
  border-radius: 15px;
  margin-top: 50px;
  box-shadow: 0px 9px 25px 2px rgb(0, 0, 0);
}
#scrollToGalleryButton{
  display: none;
}

#accesory{
  height: 0px;
  background-color: #9bbdf3;
  width: 100%;
  transition: all 0.2s ease-in;
}

.description span{
  clear: both;
  display: block;
  width: 90%;
  font-size: 1.5rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  /* text-shadow: 3px 3px 10px black; */
  word-spacing: 2px;
}

#accesory .leftList{
  display: block;
  width: 50%;
  list-style-position: inside;
  list-style-type:square;
  color: black;
  text-align: left;
  float: left;
  padding: 0 5%;
  /* text-shadow: 5px 5px 4px gray; */
  border-right: 1px solid black;
  box-sizing: border-box;
  height: 500px;
}

#accesory .rightList{
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 50%;
  list-style-position: inside;
  list-style-type:square;
  color: black;
  text-align: left;
  float: left;
  padding: 0 5%;
  /* text-shadow: 5px 5px 4px gray; */
  border-left: 1px solid black;
  box-sizing: border-box;
  height: 500px;
}

@media (max-width:1365px){
  #accesory{
    height: 1200px;
    opacity: 1;
    visibility: visible;
  }
  #accesoryBlock{
    font-size: 1.7rem;
    width: 80%;
    margin-top: 80px;
  }
  #scrollToGalleryButton{
    font-weight: bold;
    position: relative;
    width: 40%;
    margin-left: 5%;
    margin-top: 5px;
    margin-bottom: 5px;
    float: left;
    display: block;
    background-color: #9bbdf3;
    font-size: 1.2rem;
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 5px;
    z-index: 3;
  } 
  .description span{
    width: 95%;
    font-size: 1.2rem;
    word-spacing: normal;
  }
  #accesory .leftList{
    width: 100%;
    border-right: none;
    height: auto;
    margin-bottom: 0px;
  }
  #accesory .rightList{
    width: 100%;
    border-left: none;
    height: 300px;
    margin-bottom: 0px;
  }
}

@media (max-width:767px){
  #accesory{
    height: 1500px;
  }
  #accesoryBlock{
    font-size: 1.2rem;
    margin-top: 65px;
  }
  #scrollToGalleryButton{
    font-size: 0.8rem;
    padding: 5px 5px;
  } 
  .description span{
    font-size: 0.95rem;
  }
  #accesory .leftList{
    height: auto;
    
  }
  #accesory .rightList{
    height: 300px;
  }
}

.housePlaces{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.housePlaces img{
  display: flex;
  width: 13%;
  margin-right: 2%;
}
.housePlacesFirstWord{
  display: block;
  font-size: 30px;
  /* color: var(--background-color); */
  color: black;
  font-weight: bold;
}
.housePlacesText{
  display: flex;
  display: block;
  color: rgb(0, 0, 0);
  font-size: 20px;
  text-align: center;
  width: 85%;
  justify-content: center;
}

.expandAndCollapse{
  width: 100%;
  text-align: center;
  background-color: #9bbdf3;
  height: 55px;
}

.expandAndCollapse button{
  color: black;
  background-color: #9bbdf3;
  border: none;
  font-size: 1.5rem;
  font-family: Besley;
  width: 25%;
}

.expandAndCollapse button:hover{
  background-color: var(--background-color);
  cursor: pointer;
  color: rgb(0, 0, 0);
  width: 15%;
  transition: 0.2s ease-out;
}

.expandAndCollapseHeight{
  height: 0px;
}

.displayNone{
  opacity: 0;
  visibility: hidden;
}


#accesoryBottom{
  clear: both;
  display: flex;
  width: 86%;
  justify-self: center;
  justify-content: center;
  align-items: center;
}
#accesoryBottom img{
  clear: both;
  display: flex;
  width: 9%;
  justify-content: center;
}
.accesoryBottomText{
  display: flex;
  display: block;
  color: rgb(0, 0, 0);
  font-size: 25px;
  text-align: center;
  width: 85%;
  justify-content: center;
  /* text-shadow: 5px 5px 4px gray; */
  margin-left: 3%;
}
.accesoryBottomFirstWord{
  display: block;
  font-size: 30px;
  text-align: left;
  margin-left: 3%;
  color: black;
}

.accesoryBottomInfoText{
  display: flex;
  display: block;
  color: rgb(0, 0, 0);
  font-size: 20px;
  text-align: left;
  /* width: 50%;
  text-shadow: 5px 5px 4px gray; */
  margin-top: 80px;
  margin-left: 10%;
}

@media (max-width:1365px){
  .housePlaces{
    margin-top: 5px;
  }
  .housePlaces img{
    display: none;
  }
  .housePlacesFirstWord{
    text-align: left;
    font-size: 1.2rem;
  }
  .housePlacesText{
    text-align: left;
    font-size: 1rem;
    width: 100%;
  }
  .expandAndCollapse{
    display: none;
  }
  #accesoryBottom{
    width: 100%;
  }
  #accesoryBottom img{
    display: none;
  }
  .accesoryBottomText{
    font-size: 1.1rem;
    width: 90%;
  }
  .accesoryBottomFirstWord{
    font-size: 2rem;
    margin-left: 5%;
  }
  
  .accesoryBottomInfoText{
    font-size: 1rem;
    width: 87.5%;
    margin-top: 35px;
  }

  #accesory .rightList .housePlaces{
    margin-bottom: 10px;
  }
  .expandAndCollapse button:hover{
    background-color: #9bbdf3;
    color: rgb(0, 0, 0);
    width: 35%;
  }
}
@media (max-width:767px){
  .housePlaces{
    margin-top: 15px;
  }
  .housePlaces img{
    display: none;
  }
  .housePlacesFirstWord{
    font-size: 0.9rem;
  }
  .housePlacesText{
    font-size: 1rem;
    width: 100%;
  }
  #accesoryBottom{
    width: 100%;
  }
  #accesoryBottom img{
    display: none;
  }
  .accesoryBottomText{
    font-size: 1rem;
    width: 95%;
  }
  .accesoryBottomFirstWord{
    font-size: 1.7rem;
  }
  
  .accesoryBottomInfoText{
    font-size: 0.9rem;
  }

  #accesory .rightList .housePlaces{
    margin-bottom: 15px;
  }
}

/* GALERIA */
#galleryText{
  display: flex;
  align-self: center;
  font-family: Besley;
  font-weight: bold;
  font-size: 3rem;
  /* text-shadow: 5px 5px 5px gray; */
}

#gallery{
  display: flex;
  justify-content: center;
  width: 80%;
  margin-top: 100px;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
}

#galleryImgs{
  display: grid;
  grid-template-columns: 19.6% 19.6% 19.6% 19.6% 19.6%;
  column-gap: 0.5%;
}

.galleryImg img{
  width: 100%;
  height: 225px;
}
.galleryImg:hover{
  cursor: pointer;
}

.galleryZoomWindow{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(82, 82, 82, 0.76);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: scroll;
}

@keyframes galleryWindowImage {
  0%{
    transform:scale(0.5);
    opacity: 0;
  }

  100%{
    transform:scale(1);
    opacity: 1;
  }
}

.imageBlock{
  display: flex;
  height: 60vh;
  width: 40%;
  background-color: #506992;
  animation: galleryWindowImage 0.4s ease-out;
}

.imageBlock img{
  width: 100%;
}

.changeImage{
  width: 3.5%;
}
.changeImage img{
  width: 100%;
}


@media (max-width:1365px){
  #galleryText{
    font-size: 2.5rem;
  }
  
  #gallery{
    margin-top: 60px;
  }
  
  #galleryImgs{
    display: grid;
    grid-template-columns: 33% 33% 33%;
    column-gap: 0.5%;
  }
  
  .galleryImg img{
    width: 100%;
    height: 170px;
  }
  .galleryZoomWindow{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(82, 82, 82, 0.76);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: scroll;
  }
  
  @keyframes galleryWindowImage {
    0%{
      transform:scale(0.5);
      opacity: 0;
    }
  
    100%{
      transform:scale(1);
      opacity: 1;
    }
  }
  
  .imageBlock{
    height: 35vh;
    width: 80%;
  }
  
  .imageBlock img{
    width: 100%;
  }
  
  .changeImage{
    width: 8%;
  }
  .changeImage img{
    width: 100%;
  }
  
}
@media (max-width:767px){
  .galleryImg img{
    height: 100px;
  }
}

@media (min-width:1366px){
.changeImage:hover:first-child{
  cursor: pointer;
  transform: translate(-5%, 0px) scale(1.2);
  transition: 0.1s ease-in;
}
.changeImage:hover{
  cursor: pointer;
  transform: translate(5%, 0px) scale(1.2);
  transition: 0.1s ease-in;
}
}