/* 
  Fonts 
*/
@font-face {
    font-family: Poppins;
    src: url(/assets/fonts/Poppins/Poppins-Regular.ttf);
}

@font-face {
    font-family: Playwright;
    src: url(/assets/fonts/Playwright/PlaywriteIN-Regular.ttf);
}

@font-face {
    font-family: Barriecito;
    src: url(/assets/fonts/Barriecito/Barriecito-Regular.ttf);
}

:root {
    /* Color */
    --light-blue: #B0E0E6;
    --light-green: #98FB98;
    --light-pink: #FFB6C1;
    --tomato-red: #FF6347;
    --vibrant-yellow: #FFD700;
}

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

body {
    font: 1rem "Poppins", sans-serif;
    background-color: #F8F8F8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

header {
    height: auto;
    width: 100vw;
    margin: auto;
    text-align: center;
}

.header-a {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
}

main {
    width: 85vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--vibrant-yellow);
    padding: 15px;
    border: thin solid black;
    margin-bottom: 25px;
    margin-top: 20px;
}

a {
    color: var(--tomato-red);
    font-weight: bold;
    font-family: monospace;
}

p {
    text-align: center;
}

.little-description {
    font: 1.2rem "Barriecito", sans-serif;
    font-weight: bold;
    margin: 30px auto;
    width: 90%;
}

.tomato-red {
    color: var(--tomato-red);
}

.logo {
    display: block;
    font-family: "Playwright", sans-serif;
    color: var(--tomato-red);
    margin: 10px;
    padding: 5px;
    text-decoration: none;
}

button {
    display: block;
    background-color: #2A994C;
    color: white;
    width: 90%;
    height: 40px;
    padding: 5px;
    border: 1.6px solid black;
    font: inherit;
    font-weight: bolder;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

button:active,
button:hover,
button:focus {
    filter: brightness(80%);
}

label {
    margin-left: 20px;
}

input {
    display: block;
    margin: 10px auto;
    width: 95%;
    height: 35px;
    padding: 12px;
    border: 2px solid var(--tomato-red);
    border-radius: 5px;
    font: inherit;
}

input:focus {
    outline: 0;
}

input[type="text"] {
    text-transform: capitalize;
}

.dialog-box {
    width: 80%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10%;
    padding: 10px;
    border: thin solid black;
    position: fixed;
    top: 40px;
    transition: all ease 3s;
    animation: pop 0.5s ease;
}

.message {
    width: 70%;
}

.dialog-box .hide-btn {
    color: black;
    font-weight: bold;
    font-size: 1.8rem;
    cursor: pointer;
}

.hide-btn:hover {
    opacity: 70%;
}

.success {
    color: #02531a;
    background: var(--light-green);
}

.error {
    color: #94091e;
    background: var(--light-pink);
}

.hide {
    display: none;
}

.show {
    display: flex;
}

.disabled {
    user-select: none;
    opacity: 70%;
}

/* Animations */
@keyframes pop {
    0% {
        transform: scale(80%);
    }

    100% {
        transform: scale(100%);
    }
}

@media screen and (min-width: 760px) {
    main {
        max-width: 500px;
    }

    input {
        width: 400px;
    }

    .dialog-box {
        width: 450px;
    }
}