html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
body {
    background: linear-gradient(135deg, #d8f3dc, #b7e4c7, #95d5b2);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; /* Prevent overflow caused by floating or decorative elements */
    min-height: calc(100vh - 80px); /* Ensure it stretches to at least viewport height */
    box-sizing: border-box;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.main-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* Floating Decorative Elements */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

body::before {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.6);
    top: -30px;
    left: 10%;
}

body::after {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.4);
    bottom: -50px;
    right: 5%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Dynamic Floating Text */
.floating-text {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.2);
    animation: floatText 12s ease-in-out infinite;
    white-space: nowrap;
    z-index: 0;
}

    .floating-text:nth-child(1) {
        top: 10%;
        left: 5%;
        animation-delay: 0s;
    }

    .floating-text:nth-child(2) {
        top: 45%;
        left: 30%;
        animation-delay: 2s;
    }

    .floating-text:nth-child(3) {
        top: 75%;
        left: 60%;
        animation-delay: 4s;
    }

@keyframes floatText {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px) translateX(5px);
        opacity: 1;
    }

    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-text {
        font-size: 1.2rem;
    }

    body::before {
        width: 100px;
        height: 100px;
    }

    body::after {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .floating-text {
        font-size: 1rem;
    }

    body::before {
        width: 80px;
        height: 80px;
    }

    body::after {
        width: 120px;
        height: 120px;
    }
}
