body {
    font-family: Arial, sans-serif;
    background-image: url("images/background.jpg");
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    padding-top: 50px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 500px;
}

h1 {
    text-align: center;
}

input, select {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 45%;
    padding: 10px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#clearBtn {
    background-color: #f44336;
    color: white;
}

#submitBtn {
    background-color: #4CAF50;
    color: white;
}

button:hover {
    opacity: 0.8;
}

#buttonsContainer {
    align-items: left;
    display: inline-grid;
    grid-template-columns: repeat(3, 150px);
    gap: 16px;
}

.grid-wrapper {
    text-align: center;
}

.dynamicBtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.btn-image {
    width: 120px;
    height: auto;
    transition: transform 0.2s ease;
}

.dynamicBtn:hover .btn-image {
    transform: scale(1.05);
}

.dynamicBtn:active .btn-image {
    transform: scale(0.95);
}

.dynamicBtn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.dynamicBtn:hover .tooltip,
.dynamicBtn:focus-visible .tooltip {
    opacity: 1;
}

.btn-image {
    width: 120px;
    height: auto;
    transition: transform 0.2s ease;
}

.submitCentered {
    display: none;            /* hidden by default */
    width: 60%;
    margin: 20px auto 0 auto; /* center horizontally */
    display: none;
    background-color: #4CAF50;
    color: white;
}
