@import url('https://fonts.googleapis.com/css2?family=Edu+VIC+WA+NT+Hand:wght@400..700&display=swap');

:root {
    --dark-blue: #0b1929;
    --blue: #0f2035;
    --black: #000;
    --white: #fff;
    --gray: #667e8f;
    --golden: #c9a84c;
    --box-shadow: 0 0.5rem 1.5rem rgba(31, 14, 14, 0.1);
    --border: 1px solid rgba(201, 168, 76, 0.2);
    --font-hand: 'Edu', cursive;
}

* {

    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    transition: all .1s linear;
}


*::selection {
    background-color: var(--white);
    color: var(--blue);
}

::-webkit-scrollbar {
    width: 10px;

}

::-webkit-scrollbar-thumb {
    background-color: var(--golden);
    border-radius: 0.4rem;
}

::-webkit-scrollbar-track {
    background-color: var(--dark-blue);
}

body {
    background-color: var(--dark-blue);
    color: var(--white);
    font-family: var(--font-hand);
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
}

/* Header & Title Styling */
header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--golden);
    letter-spacing: 0.05em;
    margin: 1rem 0;
    margin-top: 2rem;
}



.main_text {
    max-width: 70vw;
    text-align: center;
    margin: 1% auto;
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}



/* Text Input Styling */
input[type="text"] {
    width: 100%;
    padding: .8rem 1.5rem;
    background-color: var(--dark-blue);
    border: var(--border);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-hand);
    font-size: 2rem;
    outline: none;
    letter-spacing: 0.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    border-color: var(--golden);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25);
}

/* Textarea Output & Tooltip */
.output-wrapper {
    position: relative;
}

.main {
    padding: 2.5%;
}

.hover:hover .tooltiptext {
    opacity: 1;
}

textarea {
    width: 100%;
    background-color: var(--dark-blue);
    border: var(--border);
    border-radius: 10px;
    color: var(--gray);
    padding: 1.2rem;
    font-family: var(--font-hand);
    font-size: 2rem;
    line-height: 1.6;
    resize: vertical;
    height: 30vh;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    resize: none;
    max-width: 100vw;
}

textarea:hover {
    border-color: var(--golden);
    color: var(--white);


}
/* 
i {
    width: 100%;
    font-size: 1rem;
    text-align: right;
    cursor: pointer;
}

i:hover {
    color: var(--golden);

}
*/
/* Copied Alert Badge */
.tooltiptext {
    width: fit-content;
    background-color: var(--golden);
    color: var(--black);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    margin: 1% auto;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25 ease, transform 0.25s ease;
    pointer-events: none;
}

.ps {
    padding: 1% 2.5%;
    color: var(--gray);
    font-size: small;
    font-weight: 400;
}

/*Footer*/
footer {
    background-color: var(--blue);
    padding: 1% 5%;
    display: flex;
    justify-content: space-between;
    color: var(--white);
    width: 100%;

}
a{
    color: white;
}
a:hover{
    color: var(--golden);
}
@media (max-width: 800px) {
    h1 {
        margin-top: 4rem;
        font-size: 2.5rem;
    }

    .main_text {
        max-width: 80vw;
        font-size: 1rem;
    }

    .tooltiptext {
        padding: .5rem 1rem;
        font-size: 1rem;
        margin: 1% auto;
    }

    .ps {
        font-size: .7rem;
    }
}

@media (max-width: 500px) {
    footer #new {
        font-size: 0;
    }

    footer #new::after {
        font-size: 1rem;
        content: " © 2026 ";
    }

    .ps {
        font-size: .5rem;
    }
}

@media (min-width: 1400px) {
    h1 {
        margin-top: 2rem;
        font-size: 3.3rem;
    }

    .main_text {
        font-size: 2rem;
    }

    input[type="text"] {
        padding: 1rem 1.7rem;
        font-size: 2.7rem;
    }

    input[type="text"]:focus {
        box-shadow: 0 0 0 5px rgba(201, 168, 76, 0.25);
    }

    .tooltiptext {
        padding: .5rem 1rem;
        font-size: 1.2rem;
        margin: 1% auto;
    }

    textarea {
        padding: 1.7rem;
        font-size: 3rem;
    }

    .ps {
        padding: 1% 2.5%;
        color: var(--gray);
        font-size: 1.3rem;

    }

    footer {
        font-size: 1.5rem;
    }

}