@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

.sr-only {
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1rem;
}

.logo {
  filter: var(--logo-filter);
  width: 1.5rem;
}

.container__left {
  height: 100%;
  width: 100%;
}

.container__right {
  align-items: center;
  background-color: var(--output-bg-col);
  box-shadow: var(--output-box-shadow);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem;
  width: 100%;
}

.header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.message-encrypt {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
}

.message {
  width: 100%;
}

.message__img {
  display: none;
}

.message__title {
  color: var(--output--title-col);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

.message__description {
  color: var(--output--desc-col);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-align: center;
}

.message-field {
  resize: none;
}

.message-input {
  background-color: transparent;
  border: none;
  border-radius: 1rem;
  color: var(--input-col);
  font-size: 2rem;
  height: 100%;
  padding: 1rem;
  width: 100%;
}

.message-warning {
  background: url("../../img/warning.png") no-repeat;
  color: var(--msg-warning-col);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.125rem 0 0.125rem 1.5rem;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn {
  border-radius: 1.5rem;
  cursor: pointer;
  font-weight: 400;
  font-size: 1rem;
  padding: 1rem 0;
  transition: background-color 300ms;
  width: 100%;
}

.btn-encrypt {
  border: 1px solid var(--encripy-btn-border-col);
  background-color: var(--encripy-btn-bg-col);
  color: var(--encripy-btn-col);
}

.btn-encrypt:hover {
  background-color: var(--encripy-btn-hover-col);
}

.btn-decrypt {
  border: 1px solid var(--decrypt-btn-border-col);
  background-color: var(--decrypt-btn-bg-col);
  color: var(--decrypt-btn-col);
}

.btn-decrypt:hover {
  background-color: var(--decrypt-btn-hover-col);
}

.message-result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.message-output {
  background-color: transparent;
  border: none;
  border-radius: 1rem;
  color: var(--output-col);
  font-size: 2rem;
  height: 100%;
  width: 100%;
}

.btn-copy {
  border: 1px solid var(--copy-btn-border-col);
  background-color: var(--copy-btn-bg-col);
  color: var(--copy-btn-col);
  width: 100%;
}

.btn-copy:hover {
  background-color: var(--copy-btn-hover-col);
}

.invisible {
  display: none;
}

.theme-switcher {
  align-items: center;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.theme-switcher__icon {
  width: 100%;
  filter: var(--switcher-filter);
  display: block;
}

@keyframes focus {
  0% {
    outline-offset: 0px;
  }

  100% {
    outline-offset: 4px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-20px);
  }
}

@media screen and (min-width: 576px) {
  .header {
    margin-bottom: 4rem;
  }

  .logo {
    width: auto;
  }

  .container__right {
    margin-top: 3.5rem;
  }

  .message__title {
    font-size: 1.5rem;
    line-height: 1.8rem;
    margin-bottom: 1rem;
  }

  .message__description {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .btn {
    padding: 1.25rem 0;
  }
}

@media screen and (min-width: 768px) {
  .buttons {
    gap: 1.5rem;
    flex-direction: row;
  }
}

@media screen and (min-width: 992px) {
  .container {
    flex-direction: row;
    padding: 2rem;
  }

  .header {
    flex-direction: column;
    margin-bottom: 0;
  }

  .logo {
    padding: 0 50px;
  }

  .container__left {
    height: auto;
    width: 70%;
  }

  .container__right {
    margin-top: 0;
    width: 30%;
  }

  .message-encrypt {
    margin: 0 auto;
    max-width: 800px;
    padding-bottom: 1rem;
    width: 90%;
  }

  .message__img {
    animation: float 2s infinite alternate ease-in-out;
    border-radius: 50%;
    display: initial;
    margin-bottom: 1rem;
    width: 100%;
  }

  .message__text {
    margin: 0 auto;
    max-width: 300px;
  }

  .message-input {
    height: 70%;
  }

  .btn:not(.btn-copy) {
    width: 50%;
  }
}
