@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Colors and Fonts */
body {
    @apply bg-gradient-to-tr from-indigo-50 to-blue-100 text-gray-900 dark:bg-black dark:text-white;
    font-family: 'Inter', sans-serif;
}

/* Icon Animations */
.icon-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive Utilities */
@media (max-width: 768px) {
    h1 {
        @apply text-xl;
    }
    button {
        @apply w-full text-center;
    }
}

@media (max-width: 768px) and (min-width: 300px) {
    .main-40 {
        margin: 2.25rem !important;
    }
#form_title {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 1em;
}
 #usa-flag {
        margin: 1em;
    width: 85% !important;
}
}

@media (min-width: 769px) {
    .main-40 {
        margin-top: 6.25rem !important;
        margin-bottom: 6rem;
    }
}

/* Dark mode for the entire site */
html.dark {
    background-color: black !important; /* Ensures the background is black */
    color: white !important; /* Ensures text color is white */
}

/* Smooth transition for background and text color */
header, footer, body {
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* form style */
 /* Background image on desktop only */
    .bg-img {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        background-image: url('/us-dv-lottery-2026/images/travel-background-composition-with-baggage_23-2149603150.jpg');
         background-repeat: no-repeat;
  background-size: cover;
  position: relative;
    }
    #form-box {
        max-width: 72rem;
    width: 45%;
}
    /* Hide background image on small screens */
    @media (max-width: 768px) {
        .bg-img {
           display: none;
        }
        #form-box {
        max-width: 72rem;
    width: 75%;
        }
    }