/* ----- general ----- */
.showing {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 120px;
    padding: 50px 0px 0px;
    justify-content: center;
    align-items: center;
}


.hidden {
    display: none;
}

.visibility {
    visibility: hidden;
    opacity: 0;
}

@keyframes input {
    from {visibility: visible; opacity: 1;}
    to {opacity: 0;}
}


.displayForm {
    display: block;
}

/* ----- intro ----- */
body {
    background-color: #222;
    color: #F8F8F8;
    font-family: Arial, Helvetica, sans-serif;
    margin: auto;
    width: 1200px;
    height: 750px;
    transition: backrgoundColor 5s ease-in-out;
}

#intro h1 {
    font-size: 3em;
}

#intro p {
    font-size: 1.5em;
    line-height: 1.5em;
    margin: 30px 0px;
}

#start {
    background-color: #007AFF;
    color: #F8F8F8;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    padding: 15px 50px;
    transition: color 0.5s ease, background-color 0.5s ease;
    cursor: pointer;
}

#start:hover {
    background-color: #E9E9EB;
    color: #007AFF;
}

/* ----- inputs ----- */

#input {
    padding-top: 60px;
    position: relative;
}


body {
    background-color: #222;
    transition: backrgoundColor 5s ease-in-out;
}

#input img {
    position: absolute;
    top: 120%;
    left: 15%;
}

#input form {
    background-color: #F5F5F5;
    border-radius: 15px;
    color: #333;
    width: 35%;

    position: absolute;
    top: 140%;
    left: 55%;

}

#form1, #form2, #form3 {
    margin: auto;
    padding: 40px 40px 0px;
}

h2 {
    font-size: 24px;
    font-weight: 550;
    margin: 0;
    padding: 40px 0px 0px;
    text-align: center;
}

label, input {
    display: block;
}

label {
    margin-bottom: 8px;

}

#form1 input, #form2 input, #form3 input {
    border: 1.5px solid transparent;
    border-radius: 5px;
    margin-bottom: 25px;
    padding: 8px;
    width: 95%;
}

#form1 input[type="text"]:focus, #form2 input[type="text"]:focus, #form3 input[type="text"]:focus {
    border: 1.5px solid #B2B2B5;
    outline: 0;
    transition: border 250ms linear;
}

#input p {
    color: #888;
    font-size: 0.8em;
    text-align: center;
    margin: 0;
}

#buttons {
    display: flex;
    flex-direction: row;
    border-radius: 0 0; 
}

#buttons button, #submit {
    background-color: #F5F5F5;
    border: 0;
    border-top: 1px solid #B2B2B5;
    color: #007AFF;
    font-weight: 600;
    margin: 20px 0 0;
    padding: 23px;
    width: 100%;
    transition: color 0.2s ease-in-out;
}

#buttons button:hover, #submit:hover {
    color: rgb(58, 58, 165);
    cursor: pointer;
}

#backIntro, #backInput, #backSubmit {
    border-bottom-left-radius: 15px;
}

#buttons #next, #buttons #next2, #buttons #submit {
    border-bottom-right-radius: 15px;
    border-left: 1px solid #B2B2B5;
}


/* ---- outputs ----- */

#output {
    gap: 160px;
    padding-top: 60px;
}

#output h2{
    color: #333;
    font-size: 3em;
    font-weight: 600;
    padding: 10px;
    text-align: left;
}

#outputHeader2 {
    margin-bottom: 30px;
}

#restart {
    background-color: #007AFF;
    color: #F8F8F8;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    padding: 15px 30px;
    width: 275px;

    cursor: pointer;
    transition: color 1s ease, background-color 1s ease;

}

#restart:hover {
    background-color: #ECECEC;
    color: #0061ca;
}

#phone {
    position: relative;
    font-size: 0.92em;
}

#contact {
    color: #333;
    font-size: 0.8em;
    text-align: center; 

    position: absolute;
    top: 14.5%;
    left: 45%;
}


#messages {
    overflow: scroll;
    width: 295px;
    height: 462.7px;
    position: absolute;
    bottom: 11.1%;
    left: 4%;
}

.sender {
    background-color: #007AFF;
    border-radius: 15px;
    margin: 15px 15px 15px auto;
    padding: 10px 15px;
    width: fit-content;
    max-width: 60%;
}

.receiver {
    background-color: #ECECEC;
    border-radius: 15px;
    color: #333;
    margin: 15px auto 15px 15px;
    padding: 10px 15px;
    width: fit-content;
    max-width: 60%;
}

.followup {
    margin-top: 5px;
    margin-bottom: 5px;
}

.followupNew {
    margin-top: 5px;
    margin-bottom: 15px;
}

#sent {
    color: #a7a7a7;
    font-size: 0.75em;
    font-weight: 600;
    text-align: right;
    margin: 5px 15px 20px 15px;

}

/* ---- ANIMATIONS ----- */

/* ---- beginning phone ----- */
#phoneAni {
    position: relative;
}

#loading {
    display: flex;
    position: absolute;
    gap: 8px;
    right: 15%;
    bottom: 15.6%;
    /* width: 320px;
    height: 500px; */
}

#circle1, #circle2, #circle3 {
    width: 8px;
    height: 8px;
    background-color: #F8F8F8;
    border-radius: 100px;
}

.circle1{
    animation-name: circle1;
    animation-duration: 0.4s;
    /* animation-iteration-count: infinite; */
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

/* #circle2 {
    animation-name: circle2;
    animation-delay: 0.5s;
    animation-duration: 0.75s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

#circle3 {
    animation-name: circle3;
    animation-delay: 1s;
    animation-duration: 0.75s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
} */

@keyframes circle1 {
    0%, 100% {opacity: 1;}
    50% {opacity: 0;}
}

@keyframes circle2 {
    0%, 100% {opacity: 0;}
    50% {opacity: 1;}
}

@keyframes circle3 {
    0%, 100% {opacity: 0;}
    50% {opacity: 1;}
}


/* ---- restart button ----- */
.fade {
    visibility: hidden;
    opacity: 0;

    animation-name: fadeIn;
    animation-delay: 0.5s;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {visibility: visible; opacity: 0;}
    to {visibility: visible; opacity: 1;}
}

.fadeLong {
    visibility: hidden;
    opacity: 0;

    animation-name: fadeInLong;
    animation-delay: 6s;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes fadeInLong {
    from {visibility: visible; opacity: 0;}
    to {visibility: visible; opacity: 1;}
}

.fadeFast {
    visibility: hidden;
    opacity: 0;

    animation-name: fadeInFast;
    animation-delay: 0.1s;
    animation-duration: 0.75s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes fadeInFast {
    from {visibility: visible; opacity: 0;}
    to {visibility: visible; opacity: 1;}
}


.glow {
    animation-name: glow;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes glow {
    0%, 100% {background-color: #007AFF; color: #F8F8F8;}
    50% {background-color: #41a0ff; color: #ffffff;}
}

.moveUp {
    transform: translateY(110%);

    animation-name: moveUp;
    animation-delay: 1s;
    animation-duration: 1.5s;
    animation-timing-function: cubic-bezier(.58,.02,.3,1.27);
    animation-fill-mode: forwards;
}

@keyframes moveUp {
    from {transform:translateY(100%);}
    to {transform: translateY(0%);}
}
