@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #0015a0;
    --secondary-color: #2212ff;
    --accent-color: #0b99ff;
    --background-color: #50abff;
    --text-color: #00007d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.output-container {
    position: relative;
    margin-bottom: 1rem;
}

#output {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

#output:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.copy-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
}

.refresh-btn {
    width: 100%;
    margin-top: 1rem;
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container, .btn, #output, .copy-btn, footer {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 80%;
    }
}

@media (min-width: 769px) {
    .container {
        width: 400px;
    }
}

