:root{
    --chewy: 'Chewy', cursive;
}


body{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 52px;
}

.darken {
    width: 100%;
    height: calc(100%);
    position: fixed;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Acotamos el ancho de la introducción y lo centramos */

.intro, 
.default-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 520px;
    text-align: center;

}

/* Título y subtítulo */

h1, 
p {
    margin: 0px;
}

.title{
    font-family: var(--chewy);
    font-size: 25px;
}

.subtitle {
    font-size: 18px;
}

.img-header {
    width: 120px;
}

/* Estilos para le minform */
.word-check{
    display: flex;
    gap: 8px;
    flex-direction: column;
    width: 296px;
}

/* Estilos para el input */
.word-input{
    height: 46px;
    border-radius: 0.5em;
    border: solid rgb(202, 202, 202);
    padding: 0px 12px;
    font-size: 16px;
}


/* Botón para agregar nuevos servicios */

.button-add {
    /* width: 212px; */
    background-color: #FFFFFF;
    border: 1px solid #222222;
    border-radius: 8px;
    box-sizing: border-box;
    color: #222222;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
    outline: none;
    padding: 13px 23px;
    position: relative;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    transition: box-shadow .2s,-ms-transform .1s,-webkit-transform .1s,transform .1s;
    user-select: none;
    -webkit-user-select: none;
}

.button-add:hover {
    background-color: linear-gradient(56deg, rgba(191,129,66,0.2987788865546218) 10%, rgba(244,221,77,0.3744091386554622) 44%);;;
}

.button-add:focus-visible {
  box-shadow: #222222 0 0 0 2px, rgba(255, 255, 255, 0.8) 0 0 0 4px;
  transition: box-shadow .2s;
}

.button-add:active {
  background-color: #F7F7F7;
  border-color: #000000;
  transform: scale(.96);
}

.button-add:disabled {
  border-color: #DDDDDD;
  color: #DDDDDD;
  cursor: not-allowed;
  opacity: 1;
}

.row-service{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.title-result {
    font-weight: 700;
}

/* Estilo para que aparezca y desaparezca el modal */

.inactive {
    display: none;
}


/* Estilos para la sección de respuesta */

.response-space {
    height: auto;
    min-height: 25vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.response-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* margin: 32px 0px; */
}

/* Estilos para posicionar el modal */
.modal {
    z-index: 3;
    background: #f7f5e0;
    padding: 24px;
    border-radius: 0.7em;
    position: absolute;
    flex-direction: column;
    top: 30vh;
    max-width: 580px;
    margin: 0px 24px;
    width: 100%;
}

/* Estilos para el loader del modal */
.loader {
    width: 64px;
    height: 64px;
    background: #f3c510;
    display: inline-block;
    border-radius: 50%;
    box-sizing: border-box;
    animation: animloader 1s ease-in infinite;
  }
  
  @keyframes animloader {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 0;
    }
} 

.think-text {
    color: #bf8142;
}


.end-section {
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    position: absolute;
    bottom: 30px;
    font-size: 14px;
}

/* Separador del modal */

.close-row {
    display: none;   
    margin-bottom: 52px; 
}

.close-modal {
    cursor: pointer;
    color: #bf8142;
}

.close-row img {
    width: 16px;
}

.close-row span {
    font-size: 16px;
}

.separator {
    height: 3px;
    width: 20%;
    background-color: #bf8142;
}

/* Estilos para la respuesta */
.response-text{
    font-size: 20px;
    text-align: center;
    color: pistache;
    color: #bf8142;
}


/* Estilos para el efecto shake de la imagen */

.shake {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
  }
  
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
  

/* Estilos para el responsive */
@media (max-width: 580px) {

    body {
        height: 100vw;
    }

    .intro{
        width: calc(100% - (48px));
    }
    
    .response-section {
        width: calc(100% - (72px));
        /* height: 35vh; */
    }

    .response-space {
        height: auto;
        min-height: 50vw;
    }
    
    .response-text {
        font-size: 18px;
    }

    .subtitle {
        max-width: 360px;
        line-height: 1.2em;
    }
}

.copy-link{
    padding: 8px;
    border: solid 1px grey;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Noto Sans JP', sans-serif;
}