@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
}

body{
    height: 100vh;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    width: 400px;
    padding: 50px 30px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
}

.container *:not(i) {
    font-family: 'Poppins', sans-serif;
}

.colors {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

input[type="color"] {
    appearance: none;
    --webkit-appearance: none;
    background-color: transparent;
    width: 100px;
    height: 45px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    border-radius: 20px;
    border: none;
}

.botoes {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.botoes button {
    height: 35px;
    width: 35px;
    background-color: transparent;
    border: 2px solid #d5d5d5;
    border-radius: 5px;
    cursor: pointer;
}

.rotate-icon i {
    transform: rotate(45deg);
}

.botoes .active {
    border: none;
    background-color: #a04ae2;
    color: #fff;
}

#submit {
    display: block;
    background-color: #a04ae2;
    color: #fff;
    font-size: 16px;
    padding: 12px 70px;
    border-radius: 25px;
    margin: 0 auto 30px auto;
    cursor: pointer;
}

.output {
    background-color: #f0f2fc;
}

#code {
    width: 100%;    
    resize: none;
    color: #30304a;
    padding: 10px 20px;
    background-color: transparent;
}

#copy {
    font-size: 14px;
    background-color: #a04ae2;
    color: #fff;
    position: relative;
    left: 85%;
    bottom: 10px;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
}

.alert {
    display: none;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #bc6cfe;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    z-index: 1001;
    animation: fadeIn 0.5s ease-in-out;
}

.alert button {
    background-color: #ffffff;
    color: #a061ff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
}

.alert button:hover {
    background-color: #f1f1f1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

footer {
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

footer a {
    color: #4d2ba3;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
    color: #a061ff;
}
