* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    overflow: hidden;
}

/* Advanced Loading Spinner Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-out;
}

.loader .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loader .dot {
    width: 16px;
    height: 16px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.loader .dot:nth-child(1) {
    animation-delay: 0s;
}

.loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Main container styles */
.container {
    text-align: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

h1 {
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.5s;
}

.text-to-type {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

textarea {
    width: 80%;
    height: 100px;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #4CAF50;
}

/* From Uiverse.io by KSAplay */ 
button {
    background-color: #00ec0c;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 2em;
    cursor: pointer;
    transition: 0.1s ease;
    border-width: 0;
    box-shadow: 1px 5px 0 0 #0e4d05;
  }
  
  button:hover {
    transform: translateY(-4px);
    box-shadow: 1px 9px 0 0 #0e4d05;
  }
  
  button:active {
    transform: translateY(4px);
    box-shadow: 0px 0px 0 0 #0e4d05;
  }

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
