*,
*::before,
*::after{
    box-sizing:border-box;
}

body{
    font-family: Arial,monospace;
    font-size:1rem;
    font-weight:300;
    line-height:0.8rem;
    margin:0;
}



body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    height:100%;
    width:100%;
    z-index:-1;
    background-color: rgb(6, 20, 49);
}

.container{
    width:100%;
    margin:8rem auto 5rem auto;
    background-color: rgb(6, 20, 49);
    border-radius: 8px;
    position:relative;
    border-style:dashed;
    border-color:rgb(6, 20, 49);
    border-width:8px;

}
h1 {
padding:2rem;
font-size: 3rem;
  margin-top: 0rem;
  margin-bottom: 0.5rem;
  text-align:center;
}

h2{

    padding:1rem;
    margin: 0 0 0.5rem 0;
    text-align:center;

}
p{
    text-align: center;

}
.container__button{
    display: flex;
    align-items: center;
    justify-content: center;
}
button{
    width:30%;
    font-family: inherit;
    font-size: inherit;
    margin-bottom: inherit;
    border:none;
    display: block;
    background:rgb(6, 20, 49);
    color: white;
    cursor: pointer;
    text-align: center;
    text-decoration:none;
	border-radius: 2px;
	border-style:solid;
    border-color:white;

    padding: 0.75rem;
    margin: 0.2rem;

}
button:disabled{
    background:rgb(105, 103, 103);
    cursor:not-allowed;

}


@media (min-width: 76em) {
    .container {
        max-width: 720px;
      }
      .h2{
        font-size:2rem;
    }
    #modal{
        margin: 70px auto;
        padding: 20px;
        max-width: 30%;
    }
    button{
        border-radius: 10px;
    }

  }
  @media (max-width: 75em) {
    .container{
        max-width:50rem;
    }
    #modal{
        margin: 70px auto;
        padding: 20px;
        max-width: 30%;
    }
    button{
        border-radius: 15px;
    }
  }
  @media (max-width: 50em) {
    html {
      font-size: 60%;
    }
    #modal{
        padding: 1rem;
        max-width:80%;

    }
    button{
        border-radius: 5px;
    }
  }
  @media (max-width: 28.75em) {
    html {
      font-size: 55%;
    }
    #modal{
        padding: 1rem;
        max-width:100%;
    }
    button{
        border-radius: 5px;
    }
  }



.container__inputs{

    display: flex;
    justify-content: space-between;
    margin: 3rem;
  
}
.container__inputs label{
    display: flex;
    flex-wrap: wrap;
    margin:0;
    font-size:1rem;
}

input{
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    margin-bottom: inherit;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.inputs__phone--invalid, 
.inputs__code--invalid{
    animation: shake 0.2s ease-in-out 0s 2;
    box-shadow: 0 0 0.5em red;

}
@keyframes shake {
    0% { margin-left: 0rem; }
    25% { margin-left: 0.5rem; }
    75% { margin-left: -0.5rem; }
    100% { margin-left: 0rem; }
  }


/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

#overlay{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;

}
#overlay:target {
    visibility: visible;
    opacity: 1;
  }

#modal{
    background: #fff;
    border-radius: 5px;
    position: relative;
    transition: all 5s ease-in-out;
}
.modal__info{
    font-size: 1rem;
    font-weight:400;
    margin-top:3rem;
}
.modal__button{
    font-size: 1rem;
    font-weight:800;
}
.modal__buttons{
    display: flex;
    justify-content: space-around; 
}

#loader {
    display: flex;
    align-self: center;
    justify-content: center;
    margin-left:30%;
    z-index: 1;
    width: 120px;
    height: 120px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #b10000;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
  }
  
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }