@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
}

h1 {
  font-family: 'Montserrat',
  sans-serif;
  margin-top: 38px;
  text-align: center;
  color: white;
}

a {
  text-decoration: none;
  color:#8b7eff;
}

a:hover {
  text-decoration: underline;
}

p.desc {
  font-family: 'Montserrat',
  sans-serif;
  text-align: center;
  margin-top: 10px;
  color: white;
  font-weight: 500;
  font-size: 15px;
}

.background-shape {
  z-index: -1;
  background-color: #333;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 65%;
  border-radius: 0 0 150px 0;
  width: 100%;
}

#btn-info {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 36px;
  transition: .4s;
}

#btn-info:hover {
  color: #4c39ff;
}

.container {
  width: 40%;
  height: 450px;
  position: absolute;
  top: 125px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.result-box {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  height: 40%;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  padding: 12px;
  column-gap: 15px;
}

.total-vowels-container {
  width: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #4c39ff;
  color: white;
  border-radius: 8px;
}

.total-vowels {
  font-size: 64px;
  font-weight: 600;
}

.total-vowels-container span {
  font-size: 20px;
  font-weight: 500;
}

.total-single-container {
  width: 65%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 15px;
}

.vowel-box {
  background-color: #4c39ff;
  color: white;
  width: 45%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-radius: 5px;
}

.vowel-box.letter-count {
  justify-content: center;
}

.vowel-box p {
  font-weight: 600;
}

.input-box {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50%;
  width: 100%;
  background-color: white;
  box-shadow: 0 0 50px rgba(51, 51, 51, 0.212);
  border-radius: 10px;
  padding: 15px;
  gap: 15px;
}

.textarea-box {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  position: relative;
}

.fake-textarea , #words {
  border-radius: 5px;
  padding: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  font-family: inherit;
}

.fake-textarea {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: #ededf0;
  z-index: 1;
  border: 1.5px solid #ededf0;
}

#words {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: none;
  resize: none;
  border: 1.5px solid #ededf0;
}

#words:focus{
  outline: none;
  border-color: #4c39ff;
}

#btn-reset {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 999;
  border: none;
  border-radius: 5px;
  padding: 8px 25px;
  background-color: #4c39ff;
  color: white;
  cursor: pointer;
  transition: .3s;
  opacity: 0;
}

#btn-reset:hover {
  background-color: #3927df;
}

#btn-reset:active {
  background-color: #5441ff;
}

#limit-char {
   font-weight: 500;
   position: absolute;
   font-size: 15px;
   bottom: 15px;
   left: 15px;
   z-index: 999;
}

mark {
  background-color: rgb(255, 251, 0);
}

/* RESPONSIVE */
@media only screen and (max-width: 768px) {
  .container {
    width: 100%;
    top: 150px;
  }
}

@media only screen and (max-width: 600px) {
  .container {
    width: 100%;
    gap: 0;
    box-shadow: 0 0 50px rgba(51, 51, 51, 0.212);
  }

  .result-box {
    border-radius: 5px 5px 0 0;
  }

  .input-box {
    border-radius: 0 0 5px 5px;
    box-shadow: none;
  }

  #btn-info {
    left: 50%;
    transform: translateX(-50%);
  }

  h1 {
    margin-top: 70px;
  }
}