*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    color: #333;
}

a {
    text-decoration: none;
    color: #333;
}

label {
    text-transform: uppercase;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

.container {
    overflow: hidden;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.title {
    margin-bottom: 5rem;
    text-align: center;
}

.form {
    display: flex;
    width: 50vw;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #333;
    padding: 2rem;
    border: #333 solid 1px;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.5) 3px 5px;
}

.btn {
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 2rem;
    width: 15rem;
    color: #333;
    cursor: pointer;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 10px, 10px, 5px, rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-in-out;
}

.btn:hover {
    transform: translateY(-3px);
    border: none;
    color: coral;
    background: #333;
}

.btn:not-hover {
    border: none;
}

.btn:active {
    transform: translateX(0);
}

.btn:focus {
    outline: none;
}

.btn-submit {
    margin-top: 3rem;
}

:focus {
    outline: none;
}

.form-signin input:focus,
textarea:focus,
.form-signup input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding-right: 40px;
    transition: background-color 0.5s ease;
}

[type='checkbox']:not(:checked),
[type='checkbox']:checked {
    position: absolute;
    display: none;
}

[type='checkbox']:not(:checked) + label,
[type='checkbox']:checked + label {
    position: relative;
    padding-left: 85px;
    cursor: pointer;
    margin-top: 8px;
}

[type='checkbox']:not(:checked) + label:before,
[type='checkbox']:checked + label:before,
[type='checkbox']:not(:checked) + label:after,
[type='checkbox']:checked + label:after {
    content: '';
    position: absolute;
}

[type='checkbox']:not(:checked) + label:before,
[type='checkbox']:checked + label:before {
    width: 65px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    left: 0;
    top: -3px;
    transition: all 0.2s ease;
}

[type='checkbox']:not(:checked) + label:after,
[type='checkbox']:checked + label:after {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 7px;
    left: 10px;
    transition: all 0.2s ease;
}

/* on checked */
[type='checkbox']:checked + label:before {
    background: #0f4fe6;
}

[type='checkbox']:checked + label:after {
    background: #ffffff;
    top: 7px;
    left: 45px;
}

[type='checkbox']:checked + label .ui,
[type='checkbox']:not(:checked) + label .ui:before,
[type='checkbox']:checked + label .ui:after {
    position: absolute;
    left: 6px;
    width: 65px;
    padding-top: 0.75px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    line-height: 22px;
    transition: all 0.2s ease;
}

[type='checkbox']:not(:checked) + label .ui:before {
    content: 'no';
    left: 32px;
    color: rgba(255, 255, 255, 0.7);
}

[type='checkbox']:checked + label .ui:after {
    content: 'yes';
    color: #ffffff;
}

[type='checkbox']:focus + label:before {
    box-sizing: border-box;
    margin-top: -1px;
}

input:not(label):hover {
    color: coral;
    background: #333;
}

.input-btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
}

.error {
    font-size: 1rem;
    color: #ff4444;
}

.output {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.output-list {
    display: grid;
    height: auto;
    width: auto;
    max-height: 100%;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem 2rem;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.5) 3px 5px;
}

li {
    list-style: none;
    font-size: 1rem;
}

.copy-btn {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 80%;
}

.copy {
    font-size: 1.5rem;
}

.hidden {
    display: none;
}
