:root {
  --mainFont: "Raleway", sans-serif;
  --secFont: "Josefin Sans", sans-serif;
  --dark: #1d0d33;
  --mainDark: #003f69;
  --main: #106b87;
  --mainLight: #157a8c;
  --light: #b3aca4;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--dark);
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--mainFont);
}

main {
  margin-top: 4rem;
  width: 80%;
  background: url(../assets/bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 1.5rem;
  box-shadow: 0px 0px 42px -14px rgba(175, 167, 175, 0.89);
}

.container {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  padding: 3.5rem;
  border-radius: 1.5rem;
  display: flex;
  justify-content: space-around;
  gap: 3rem;
}

.container__title {
  box-sizing: border-box;
  padding: 2rem;
  display: block;
  text-align: center;
  flex-direction: column;
  color: white;
  font-size: 4rem;
  margin: 0;
  background-color: var(--mainLight);
  backdrop-filter: blur(5px);
  border-radius: 1rem;
  width: fit-content;
  box-shadow: inset 0px 0px 42px -14px rgba(115, 108, 115, 1);
}

.container__title span {
  text-align: center;
  display: block;
  color: var(--dark);
  font-size: 1.8rem;
  padding: 1rem 0 0 7.8rem;
  box-sizing: border-box;
}
.encripter {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: calc(55%);
}
.encripter__container {
  gap: 2rem;
  display: flex;
  flex-direction: column;
}
.encripter__textarea {
  font-size: 1.6rem;
  box-sizing: border-box;
  width: 100%;
  height: 23rem;
  border: none;
  border-radius: 1rem;
  box-shadow: inset 0px 0px 42px -14px rgba(115, 108, 115, 1);
  padding: 1.5rem;
}

.buttons {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 4.24rem;
}
.button {
  border: none;
  border-radius: 0.5rem;
  padding: 1.2rem 4rem;
  background-color: var(--mainLight);
  font-weight: bold;
  color: var(--dark);
  transition: 400ms;
}

.button:active {
  background-color: var(--dark);
  color: var(--light);
  transform: scale(1.01);
}

@media screen and (min-width: 966px) {
  .button:hover {
    transform: scale(1.01);
    background-color: var(--mainDark);
    cursor: pointer;
  }
}

.result {
  width: 35%;
  background-color: rgba(115, 108, 115, 0.6);
  box-shadow: inset 0px 56px -7px rgba(115, 108, 115, 0.89);
  border-radius: 1rem;
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.img__wait {
  background-image: url(../assets/cyp.jpg);
  background-position: center;
  background-size: cover;
  width: 15rem;
  height: 150px;
  border-radius: 50%;
  box-shadow: inset 0px 56px -7px rgba(115, 108, 115, 0.89);
}

.none {
  display: none;
}

.result--show {
  line-height: 1.9rem;
  margin: 0 0 2rem 0;
  color: white;
  font-size: 1.4rem;
  height: 100%;
  border-radius: 1rem;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  backdrop-filter: blur(40px);
}

.alert {
  color: red;
  backdrop-filter: blur(40px);
  padding: 1rem;
  width: 100%;
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  border-radius: 1rem;
}

@media screen and (max-width: 786px) {
  main {
    margin-bottom: 4rem;
  }
  .container {
    gap: 0rem;
    justify-content: space-between;
  }
  .container__title {
    width: 100%;
    font-size: 3rem;
  }
  .container__title span {
    padding-left: 0;
    font-size: 1.6rem;
  }
  .encripter {
    width: calc(50% - 1.5rem);
  }
  .encripter__container {
    width: 100%;
  }
  .encripter__textarea {
    width: 100%;
  }
  .buttons {
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
  }
  .result {
    width: calc(50% - 1.5rem);
  }
}

@media screen and (max-width: 480px) {
  .container {
    flex-direction: column;
    gap: 3rem;
  }
  .encripter {
    width: 100%;
  }

  .result {
    width: 100%;
    height: 50vh;
  }
}
