/*
   CSS styling examples for the Vaadin app.

   Visit https://vaadin.com/docs/styling/application-theme/ for more information.
*/

/* Example: CSS class name to center align the content . */
.centered-content {
  margin: 0 auto;
  max-width: 250px;
}

/* Example: the style is applied only to the textfields which have the `bordered` class name. */
vaadin-text-field.bordered::part(input-field) {
  box-shadow: inset 0 0 0 1px var(--lumo-contrast-30pct);
  background-color: var(--lumo-base-color);
}


.responsive-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 600px) {
    .responsive-layout {
        padding: 20px;
    }


    .responsive-layout vaadin-button {
        font-size: 1rem; /* Smaller font size on mobile */
    }

    .responsive-layout vaadin-button .vaadin-button-container {
        padding: 12px;
    }
}
    .responsive-layout vaadin-button {
        font-size: 1.2rem; /* Larger font size on larger screens */
    }

    .responsive-layout vaadin-button .vaadin-button-container {
        padding: 16px;
    }

    .responsive-logo {
        display: block;
        margin: 0 auto;
        max-width: 50%;  /* Limit the image size on large screens */
        height: auto;    /* Keep aspect ratio */
    }

    @media (max-width: 600px) {
        .responsive-logo {
            max-width: 80%;  /* Make the image smaller on mobile devices */
        }
    }

    @media (min-width: 1200px) {
        .responsive-logo {
            max-width: 30%;  /* Limit the image size even more on extra-large screens */
        }
    }

    /*Custom CSS*/
@media (max-width: 600px) {
    .tool-card {
        width: 100% !important;
        margin: 10px 0;
    }
    vaadin-text-field {
        width: 90% !important;
    }
}
.tool-card {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tool-card:hover {
    background: linear-gradient(45deg, #42a5f5, #478ed1);
    color: white;
}

.tool-card:hover vaadin-button {
    background-color: white;
    color: #333;
}

.tool-card:hover span,
.tool-card:hover h1,
.tool-card:hover p {
    color: white !important;
}

.tool-card:hover .badge {
    background-color: rgba(255, 255, 255, 0.2);
}

}
