
/* Base Styles */
*{
  margin: 0;
  padding: 0;
}


body{
  overflow-x: hidden;
  font-family: 'BIZ UDMincho', serif;
  background-color:#fefeff;
}


/* width */
::-webkit-scrollbar {
  width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #1a1a1a; 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a; 
}

/* Main Header Section */

.main-header{
  background:  linear-gradient(0deg,#fefeff,transparent 90%),
              #ffff url('img/header-img.jpg') no-repeat center / cover ;
  background-position: 45%;
  width: 100vw;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px 25px;
}

.main-header h1{
  font-size: 55px;
  border-bottom: 2px #1a1a1a solid;
  padding-bottom: 5px;
  text-align: center;
}

.main-header p{
  font-size: 25px;
  font-weight: bold;
}

#intro{
  display: none;
}

/* Primary Container & Elements */

.search-img{
  height: 25px;
  width: 25px;
}
.word-container, .primary-box{
  display: flex;
}

.primary-container{
  width: 100vw;
  height: auto;
}

.input-group{
  padding: 5px 20px;
}

.primary-container input:hover{
  border-color: #1a1a1a;
  transition: ease-in-out 1s;
}
.clear-button, .favorite-button{
  margin: 10px 15px;
  padding: 5px 5px;
}


.word-container{
  width: 100vw;
  height: 400px;
  flex-direction: row;
}

.primary-box{
  flex-direction: column;
  align-items: center;
  border-radius: 50px;
  background: linear-gradient(145deg, #e5e5e6, #ffffff);
  box-shadow:  20px 20px 33px #b9b9ba,
              -20px -20px 33px #ffffff;
  height: auto;
  width: 350px;
  margin: 25px 15px;
  padding: 10px 10px;
  overflow-y: scroll;
}

.primary-box img{
  height: 120px;
  width: 120px;
  padding: 25px 25px;
}

.primary-box p{
 font-size: 25px;
}

#word{
  flex: 1;
}

#other{
  flex: 2;
}

.part_of_speech{
  list-style: none;
  font-style: italic;
  font-size: 20px;
  padding: 5px 10px;
}

.notify-msg{
  width: 100%;
  height: 50px;
  padding: 10px 10px;
  margin: 5px 0;
  border-radius: 15px;
  color: #ffffff;
}
/* Secondary Container & Elements */
.secondary-container{
  width: 100vw;
  height: auto;
}

.secondary-box{
  width: 100vw;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.second-boxs{
  border-radius: 50px;
  background: linear-gradient(145deg, #e5e5e6, #ffffff);
  box-shadow:  20px 20px 33px #b9b9ba,
              -20px -20px 33px #ffffff;
  margin: 5px 10px;
  width: 700px;
  height: auto;
}

#favorites-box{
  padding: 10px 10px;
  overflow-y: scroll;
}

.second-img-contain{
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.tip{
  border-radius: 100px;
  background-color: #cc0000;
  margin: 0 10px;
  height: 25px;
  width: 25px;
}

.open-modal{
  position: absolute;
  left: 40%;
  height: 350px;
  width: 350px;
  padding: 10px;
  background: rgba( 255, 255, 255, 0.6 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 4px );
  -webkit-backdrop-filter: blur( 4px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  z-index: 2;
  overflow-y: scroll;
}

.open-modal div{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.favorite-list-box{
  height: auto;
}

.favorite-list{
  width: 100%;
  padding: 10px;
  margin: 20px 5px;
  padding: 10px;
}

.favorite-list div:hover{
  cursor: pointer;
}

.list-group-item{
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.closeBtn, .definitionBtn{
  color: #fefeff;
}

.closeBtn{
  background-color: #DC3545;
}

.definitionBtn{
  background-color: #198754;
}

.deleteBtn{
  width: 20px;
  height: 20px;
  border-radius: 100px;
  background-image: url('icons/cancel.png');
  background-repeat: no-repeat;
  background-size: contain;
}

.list-delete{
  width: 20px;
  height: auto;
}

#syn-ant{
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 10px;
}

.second-child{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  height: 150px;
  width: auto;
  margin: 5px 0;
  padding: 5px;
  border: solid #1a1a1a 2px;
  border-radius: 25px;
  overflow-y: scroll;
}

.synonyms-child{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: auto;
  min-width: 150px;
  border-radius: 50px;
  background: linear-gradient(145deg, #ffffff, #e5e5e6);
  margin-bottom: 5px;
  font-size: 20px;
}

/* Media Query */

@media (min-width: 0px) and (max-width: 480px) {


  .word-container,.secondary-box{
    justify-content: center;
    flex-direction: column;
  }

  .word-container{
    width: 100vw;
    height: 400px;
  }

  .primary-box img{
    height: 100px;
    width: 100px;
    padding: 25px 25px;
  }

  #word, #other{
    flex: 2;
  }

  .open-modal{
    left: 7%;
  }

  #favorites-box, #syn-ant{
    width: auto;
    margin-top: 25px;
  }

  #favorites-box{
    padding: 10px 10px;
    height: 300px;
  }

  #syn-ant{
    height: 400px;
  }

  .second-child{
    flex-direction: column;
    flex-wrap: nowrap;
    height: 200px;
  }

  .synonyms-child{
    height: auto;
  }

 
}