body{
  font-family: Arial;
  margin: 0;
  text-align: center;
  justify-content: center;
}

nav{
  height: 100px;
}

.navItems{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 100%;
  width: 1000px;
  max-width: 90%;
  margin: auto;
  padding: 10px;
  border-bottom: 1px solid #e3e3e3;
}

.navItems #navLogo{
  max-height: 100px;
  margin: 0 10px;
  border-radius: 0;
}

.navItems #navSearchIcon{
  height: 30px;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: white;
}

.navItems #navSearchIcon:hover{
  scale: 1.1;
}

img{
  border-radius: 5px;
}

.genres{
  display: flex;
  width: 900px;
  max-width: 100%;
  flex-wrap: wrap;
  flex-direction: auto;
  margin: auto;
  justify-content: center;
}

.genres a{
    width: 200px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    color: black;
    margin: 10px;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    scale: 1;
    transition: all 0.15s ease;
    border: 1px solid orange;
}

.genres a:hover{
    scale: 1.05;
    box-shadow: 0 0 20px orange;
}

#exclusiveHref {
  width: 200px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: orange;
  color: white;
  margin: 20px auto;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid orange;
  
  /* The white glowing shine gradient */
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 55%
  );
  
  background-repeat: no-repeat;
  background-size: 200% 100%;
  
  animation: shineMove 4s ease-in infinite;
  cursor: pointer;
  transition: all 0.15s ease;
}

#exclusiveHref:hover {
  background-color: #ff8c00;
  scale: 1.05;
    box-shadow: 0 0 20px orange;
}

@keyframes shineMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -50% 0;
  }
}

.poemContainer{
    display: flex;
    width: fit-content;
    flex-direction: column;
    justify-content: center;
    margin: 20px auto;
}

#poemLinks a{
  display: inline-block;
  width: fit-content;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 10px;
}

#poemLinks a:hover{
  scale: 1.05;
  outline: 1px solid orange;
  box-shadow: 0 0 20px orange;
}

.backButton{
  display: flex;
  width: fit-content;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 20px;
  text-decoration: none;
  background-color: white;
  color: black;
  border: 1px solid orange;
  border-radius: 5px;
  padding: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.backButton p{margin: 0;}

.backButton img{
    max-height: 20px;
    margin-right: 5px;
}

.backButton:hover{
    scale: 1.05;
    box-shadow: 0 0 20px orange;
}

::selection{
    color: black;
    background-color: orange;
}

#searchContainer{
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  backdrop-filter: blur(10px);
  flex-direction: column;
  height: 100%;
}

#searchContainer h1{
    color: white;
    margin-bottom: 0;
}

#searchContainer input {
  width: 100%;
  height: 30px;
  flex: 1;
  padding: 5px;
  border: 0;
  outline: none;
  margin: 0;
  box-sizing: border-box;
}

#InputsAndButtonsContainer{
  width: 300px;
  margin: 20px auto 0;
}

#InputsAndButtonsContainer > *{
  margin: 0;
}

#InputsAndButtonsContainer :nth-child(1){
  display: flex;
  flex-direction: row;
  height: 30px;
}

#openNameSearch, #openWordSearch{
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: double;
  width: 150px;
  height: 30px;
  border: 0;
  outline: 0;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

#InputsAndButtonsContainer :nth-child(1) button:hover{
  background: orange;
}

#openNameSearch{border-top-left-radius: 7px;}

#openNameSearch:hover, #openWordSearch:hover{
  transform: translateY(-7px);
  height: 37px;
  border-radius: 7px 7px 0 0;
  background: orange;
}

#openWordSearch{border-top-right-radius: 7px;}

#searchButton{
  width: 100%;
  height: 30px;
  border: 0;
  outline: 0;  
  border-radius: 0 0 7px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#searchButton:hover{
  height: 37px;
  background: orange;
}

#resultsContainer{
  width: fit-content;
  margin: 20px auto;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

#resultsContainer > div{
  padding: 10px;
  background-color: gray;
  border: 1px solid white;
  margin: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

#resultsContainer > :nth-child(1){
  border-radius: 10px 10px 0 0;
}

#resultsContainer > :last-child{
  border-radius: 0 0 10px 10px;
}

#resultsContainer > div:hover{
  scale: 1.05;
  background-color: rgb(160, 160, 160);
}

#resultsContainer > div div{
  font-size: 13px;
  margin-bottom: 10px;
  color: rgb(255, 213, 136);
}

#resultsContainer > div a{
  color: white;
}

mark{
  background-color: orange;
}

.highlight {
    font-weight: bold;
    color: orange;
}

.searchedPoems{
  color: white;
  margin: 0 auto;
  max-height: 50%;
  width: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  scrollbar-width: 5px;
}

.searchedPoems div{
  padding-right: 5px;
}

.searchedPoems div a{
  display: block;
  height: auto;
  min-height: 25px;
  width: 100%;
  background: white;
  color: black;
  text-decoration: none;
  border: 0.5px 0 0.5px 0;
  border-bottom: 1px solid #e3e3e3;
  padding-right: 5px;
  transition: all 0.15s ease;
}

.searchedPoems div a:hover{
  background: #dedede;
}

.searchedPoems p{
  margin: 0 auto;
  color: white;
}

.searchByTypeSelect{
    width: 260px;
    margin: 0 auto;
}

#readOnStihiRu{
  color: gray;
}

#readOnStihiRu:hover{
  color: #A06800;
}

/* WebKit-based browsers */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background-color: orange;
  border-radius: 5px;
  border: 2px solid white; /* creates padding and a white outline */
}

/* Firefox */
#resultsContainer {
  scrollbar-width: thin;
  scrollbar-color: orange white;
}
