@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

body 
{
  background-color: black;
  box-sizing: border-box;
  place-items: center;
}

.container 
{
  padding: 3% 12%;
  display: grid;
}

.container__child 
{
  display: grid;
  font-family: "JetBrains Mono", monospace;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
}

.container__child__leftbox 
{
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: space-around;
  gap: 10rem;
}

.container__child__leftbottom 
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.container__child__rightbox 
{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.container__child__rectangle 
{
  width: 22rem;
  height: 45rem;
  background: rgb(226, 226, 226);
  border-radius: 2rem;
  box-shadow: 0.2rem 0.2rem 0.2rem #3a3a3a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  justify-content: space-between;
  
}

.container__child__title 
{
  font-size: 3rem;
  color: white;
}

.container__child__titleboxandtext 
{
  gap: 5rem;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
}

.caret 
{
  background-color: white;
  width: 0.4rem;
  height: 2.5rem;
  animation: blink 1.25s infinite;
}

@keyframes blink 
{
  0%, 100% {
    background-color: transparent;
  }
  50% {
    background-color: white;
  }
}

.container__child__titlebox 
{
  align-items: center;
  display: flex;
}

.container__child__input 
{
  font-size: 1.6rem;
  color: white;
  background-color: transparent;
  font-family: "JetBrains Mono", monospace;
  outline: none;
  border: none;
  resize: none;
  padding: 1rem;
  height: 20rem;
}

.container__child__output
{
  word-break: break-word;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: scroll;
  font-size: 1.3rem;
  text-align: left;
  margin-right: auto;
  width: 100%;
  padding-right: 3%;
  box-sizing: border-box;
}

.container__child__btns 
{
  color: black;
  justify-content: center;
  gap: 3.125rem;
  display: flex;
}

.container__child__btn 
{
  width: 12.5rem;
  height: 3.125rem;
  font-size: 1.25rem;
  background-color: white;
  border-radius: 1rem;
}

.container__child__texts 
{
  color: black;
  display: flex;
  flex-direction: column;
  gap: 1.5625rem;
  align-items: center;
}

.container__child__text1 
{
  font-size: 1.3rem;
  font-weight: bold;
}

.container__child__text2 
{
  font-size: 0.7rem;
}

.container__child__rule 
{
  color: white;
  font-size: 0.8rem;
}

.mag-cat 
{
  height: 20.3125rem;
  width: 14.6875rem;
}

.container__child__copybtn 
{
  width: 12.5rem;
  height: 3.125rem;
  font-size: 1.25rem;
  background-color: white;
  border-radius: 1rem;
  visibility: hidden;
  pointer-events: none;
}

.credits 
{
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  justify-content: center;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
}

.madeby 
{
  background-color: transparent;
  text-decoration: none;
  color: white;
}

.pecodigos 
{
  background-color: transparent;
  text-decoration: none;
  color: rgb(152, 152, 240);
}

.githublogo 
{
  height: 2rem;
  width: 2rem;
}

@media (max-height: 768px)
{
  .container {
    padding: 2.5% 10%;
  }

  .container__child__leftbox,
  .container__child__rightbox {
    gap: 4rem;
  }

  .container__child__rectangle {
    width: 18rem;
    height: 30rem;
    padding: 1.5rem;
  }

  .container__child__input {
    height: 12rem;
  }

  .container__child__title {
    font-size: 2.5rem;
  }

  .container__child__btn {
    width: 10rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .mag-cat {
    height: 18rem;
    width: 13rem;
  }

  .container__child__titleboxandtext {
    gap: 3rem;
  }

  .container__child__btns {
    gap: 2.5rem;
  }

  .container__child__texts {
    gap: 1rem;
  }

  .container__child__text1 {
    font-size: 1.2rem;
  }

  .container__child__text2 {
    font-size: 0.6rem;
  }

  .container__child__rule {
    font-size: 0.7rem;
  }

  .container__child__copybtn {
    width: 10rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .credits {
    gap: 0.2rem;
    font-size: 0.7rem; 
  }

  .githublogo {
    height: 1.5rem;
    width: 1.5rem;
  }
}

@media (max-width: 1200px)
{
  .container
  {
    flex-direction: column;
    padding: 5%;
    display: flex;
  }
  .container__child
  {
    flex-direction: column;
    display: flex;
  }

  .container__child__leftbox
  {
    align-items: center;
    gap: 5%;
    flex-direction: column;
  }

  .container__child__rightbox
  {
    align-items: center;
    padding: 2%;
    gap: 2%;
  }

  .container__child__rectangle
  {
    width: 15rem;
    height: 30rem;
  }

  .container__child__input 
  {
    height: auto;
  }

  .container__child__btns
  {
    margin-bottom: 2%;
  }

  .mag-cat
  {
    height: 14rem;
    width: 11rem;
  }

}