body {
    font-family: 'Source Sans Pro';
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #FFF;
    overflow: hidden;
    
    background-image: url('../images/MainMenu-background.jpg');
    background-repeat: no-repeat;       /* Prevents tiling */
    background-attachment: fixed;       /* Makes the background stay fixed during scroll */
    background-position: center center; /* Centers the image */
    background-size: cover;              /* Keeps the original image size (does not scale) */
}

@media (max-width: 570px) { /* Mobile */
    .logo {
        scale: 72% !important;
        top: 8px !important;
        right: 0px !important;
    }
    .top-bar {
        justify-content: center; /* Center buttons */
        left: 16px !important;
        top: 14px !important;
    }
    .title_text {
        margin-top:8px !important;
        font-size: 20px !important;
    }
    .button-group {
        display: block !important;
        position: absolute !important;
        width: 100% !important;
        left: 0px !important;
        right: 0px !important;
        top: 80px !important;
        bottom: 64px !important;
        padding-bottom: 64px !important;
        overflow-y: auto !important;
        height: 100vh !important;
        max-height: calc(100vh - 80px); /* Limit height based on screen */
    }
    .machine-button {
        margin-top: 16px !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        margin-bottom: 16px !important;
    }
    .machine-button-header {
        /*padding: 0px !important;*/
        padding: 10px 12px !important;
        font-size: 20px !important;
    }
    .machine-button-content {
        padding-top: 62px !important;
    }
    .button-group .machine-button:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 571px) and (max-width: 738px) {
    .top-bar {
        justify-content: flex-start; /* Align buttons to top-left */
        left: 30px !important;
        top: 28px !important;
    }
    .logo {
        top: 28px !important;
        right: 30px !important;
    }
    .button-group {
        margin-top: 80px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 90% !important;
        align-items: center;
        gap: 16px !important;
    }

    .machine-button-header {
        padding: 10px 12px !important;
        font-size: 18px !important;
    }
    .machine-button-content {
        padding-top: 64px !important;
    }
}

@media (min-width: 739px) and (max-width: 1110px) {
    .top-bar {
        justify-content: flex-start; /* Align buttons to top-left */
        left: 30px !important;
        top: 28px !important;
    }
    .logo {
        top: 28px !important;
        right: 30px !important;
    }
    .button-group {
        margin-top: 80px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 90% !important;
        align-items: center;
        gap: 16px !important;
    }

    .machine-button-header {
        padding: 10px 12px !important;
        font-size: 18px !important;
    }
    .machine-button-content {
        padding-top: 68px !important;
    }
}

@media (min-width: 1111px) and (max-width: 1280px) {
    .top-bar {
        justify-content: flex-start; /* Align buttons to top-left */
        left: 30px !important;
        top: 28px !important;
    }
    .logo {
        top: 28px !important;
        right: 30px !important;
    }
    .button-group {
        margin-top: 80px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 60% !important;
        align-items: center;
        gap: 16px !important;
    }

    .machine-button-header {
        padding: 10px 12px !important;
        font-size: 18px !important;
    }
    .machine-button-content {
        padding-top: 68px !important;
    }
}

@media (min-width: 1281px) and (max-width: 1920px) { /* Tablet */
    .top-bar {
        justify-content: flex-start; /* Align buttons to top-left */
        left: 30px !important;
        top: 28px !important;
    }
    .logo {
        top: 38px !important;
        right: 40px !important;
    }
    .button-group {
        margin-top: 80px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 60% !important;
        align-items: center;
        gap: 16px !important;
    }

    .machine-button-header {
        padding: 10px 12px !important;
        font-size: 20px !important;
    }
    .machine-button-content {
        padding-top: 68px !important;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) { /* Tablet */
    .top-bar {
        justify-content: flex-start; /* Align buttons to top-left */
        left: 30px !important;
        top: 28px !important;
    }
    .logo {
        top: 38px !important;
        right: 40px !important;
    }
    .button-group {
        margin-top: 80px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 80% !important;
        align-items: center;
        gap: 16px !important;
    }

    .machine-button-header {
        padding: 10px 12px !important;
    }
    .machine-button-content {
        padding-top: 68px !important;
    }
}

@media (min-width: 2561px) { /* Desktop */
    .top-bar {
        justify-content: flex-start; /* Align buttons to top-left */
        left: 30px !important;
        top: 28px !important;
    }
    .logo {
        top: 38px !important;
        right: 40px !important;
    }
    .button-group {
        margin-top: 80px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        align-items: center;
        gap: 16px !important;
    }

    .machine-button-header {
        padding: 10px 12px !important;
    }
    .machine-button-content {
        padding-top: 68px !important;
    }
}

.ui {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    position: fixed;
    top: 38px;
    right: 40px;
    width: 112px;
    height: 56px;
}

.logo img {
    width: 112px;
    height: 56px;
}

.top-bar {
    position: fixed;
    left: 40px;
    top: 38px;
    display: block;
    line-height: 100%;
    letter-spacing: -0.32px;
    font-family: "Source Sans Pro";
    font-weight: 600;
    font-style: normal;
    color: #2F363A;
}

.title_text {
    margin-top: 18px;
    font-size: 32px;
}

/* Stack buttons for mobile, horizontal for desktop */
.button-group {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 24px;
    width: 80%;
}

/* Common button styling */
button {
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight */
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: none;
    overflow: hidden; /* Prevents extra highlight outside */
}

.machine-button {
    /*max-width: 40%;*/
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    background-color: white;
    display: flex;
    justify-content: center;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease;
}

.machine-button:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.machine-button-header {
    background-color: #0092bC; /* Top blue bar */
    color: white;
    padding: 16px 32px;
    /*text-align: Center;*/
    line-height: 100%;
    letter-spacing: -0.32px;
    font-family: "Source Sans Pro";
    font-weight: 600;
    font-style: normal;
    font-size: 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.machine-button-content {
    background-color: white;
    padding: 0px;
    position: relative;
    padding-top: 68px;
}

.machine-button-content img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.machine-button:hover {
    transform: scale(1.02);
    box-shadow: 0px 2.04px 20px 0px rgba(0, 0, 0, 0.05);


    .machine-button-content img { 
        transform: scale(1.02);
    }
}

/* Disabled state for action buttons */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}