* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    font-family: 'Alegreya Sans', sans-serif; 
    color: whitesmoke;
    /* max-width: 90%; */
    text-align: center;
    
}

/************** 
Typography 
***************/

#title {
    margin: 0;
    font-size: 3rem;
    line-height: 1.25;
    color: white;
}

.orange {
    margin: 0;
    color: #ffd500;
}

.text-animation {
    animation: blink 8s infinite;
    text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
}

.text-opacity {
    font-size: 1.25rem;
    margin-top: 5px;
    opacity: 0.75;
}


/*? Layout */

.main-container {
    margin: 0 auto;
    padding: 3em;
    background: linear-gradient(150deg, #1488cc, #2b32b2);
    border: 1px solid #ffd500;
    box-shadow: 0 0 10px #ffd500;
    border-radius: 15px;
    max-width: 70%;
}

/******************************** 
    Select strength of password
*********************************/

.checkbox--title,
#password-parameters--title {
    font-size: 1.75rem;
    color: #ffd500;
    letter-spacing: 1.25px;
    margin: 1.5em 0 0.25em;
}

.password-strength--radio {
    display: grid; 
    grid-template: auto / repeat(3, 125px);
    justify-content: center;
    margin: 0;

}

.radio-label {
  font-size: 1.25rem;
  line-height: 2em;
  margin: 0;
}

.strength-radio {
    display: block;
    margin: 0 auto;
    appearance: none;
    background-color: #fff;
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid white;;
    border-radius: 50%;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
  }

.strength-radio::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 250ms transform ease-in-out;
    box-shadow: inset 1em 1em #ffd500;
  }

.strength-radio:checked::before {
    transform: scale(1);
  }

/******************************** 
    Password parameters section
*********************************/

#password-parameters--title {
    margin-bottom: .75em;
}

input[type="checkbox"] { 
    accent-color: #ffd500;
  }


.pass-param-checkbox {
    margin-top: .75em;
}
.password-parameters label {
    padding: 0.75em;
    letter-spacing: 1px;   
}

#input-lentgth {
    font-size: .75rem;
    padding: 0.5em 0.5em;
    background-color: #294ea9;
}

/******************************** 
    Generate password section
*********************************/

.generate-password-btn {
    background: #ffd500;
    color: #2b32b2;
    cursor: pointer;
    padding: 0.75em 2em;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    border: none;
    margin: 2.5em 0 1.5em;
}

.generate-password-btn:active {
    transform: translateY(3px);
  }

.generate-password-btn:hover {
    box-shadow: 0 0 30px #ffd500; 
}

.output-wrapper {
    display: flex;
    justify-content: space-around;
}

#output,
#output2 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.25em;
    min-width: 200px;
    max-width: content;
    height: 50px;
    background: #254799;
    color: #ffd500;
    border: 1px solid #ffd500;
    border-radius: 10px;
    gap: 1em;
    
}

#password {
    margin: 0;
}

.fa-copy {
    cursor: pointer;
    display: none;
    margin-left: auto;
}


@media only screen and (min-device-width: 650px) {
    .main-container {
        max-width: 700px;
        width: 95%;
    }
    .fa-copy {
        display: block;
    }
}

@media (prefers-color-scheme: dark ) {
    body {
        background-color: #1e1e1e;
    }
}

@keyframes blink {
    20%,
    24%,
    55% {
      color: rgb(255, 255, 255);
      text-shadow: none;
    }
  
    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
    text-shadow: 0 0 5px #ffa500, 0 0 15px #ffa500, 0 0 20px #ffa500, 0 0 40px #ffa500, 0 0 60px #ff0000, 0 0 10px #ff8d00, 0 0 98px #ff0000;
      color: #fff6a9;
    }
  }
  