/* Basic reset and typography */
body {
    /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */
    font-family: Calibri;
    background-color: #ffffff;
    color: #fffcfc;
    margin: 0;
    padding: 20px;
    display: block;
    justify-content: center;
    align-items: start;
    min-height: 200px;
    position: relative;

    
}

/* Add a top spacing container to prevent overlaps */
.main-container {
    padding-top: 80px; /* Ensures space for the absolute-positioned button */
    position: relative;
}

/* Main container for centering content */
.container {
    text-align: right;
    max-width: 1200px;
    width: 100%;
    height: 200px;
}



/* Adjust the h1 margin to be responsive */
h1 {
    font-size: 3rem;
    color: #4b6382;
    margin: 0 0 30px 0; /* Reduced bottom margin */
    padding: 20px 0; /* Added padding for breathing room */
    text-transform: uppercase;
    text-align: center;
}


.top-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px; /* Added to push grid below title */
}

.button {
    background-color: #cdd5d8;
    border: none;
    border-radius: 12px;
     box-shadow:   2px 2px 5px #a4b5c4;
   
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    padding: 15px;
    font-weight: bold;
    color: #4b6382;
    font-size: 25px;
    position: relative;
   width: 50rem; /* ✅ allow grid to control the width */
    
}


.button-single {
    background-color: #cdd5d8;
    border: none;
    border-radius: 12px;
     box-shadow:   2px 2px 5px #a4b5c4;
   
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    padding: 15px;
    font-weight: bold;
    color: #4b6382;
    font-size: 25px;
    position: relative;
   width: 50rem; /* ✅ allow grid to control the width */
   margin-top: 100px;
    
}

/* Button styles with text only */
.button-text-only {
    background-color: #4b6382;
    border: none;
    border-radius: 12px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 100%;
    padding: 20px;
    font-size: 20px;
    text-align: start;
    font-weight: bold;
}

/* /* Hover and active effects for buttons */
.button:hover, .button-text-only:hover, .return-to-main-menu-btn:hover {
    transform: translateY(-5px);
 
    box-shadow:   5px 5px 10px #a4b5c4;
} */

.button:active, .button-text-only:active, .return-to-main-menu-btn:active {
    transform: translateY(0);
 
}



/* Link inside button */
.button a, .button-text-only a {
    text-decoration: none !important; /* Already present, but ensure it's working */
    color: #cdd5d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    font-weight: bold;
}

/* Image inside button */
.button img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Text inside button with icon */
.button p {
    font-size: 20px;
    font-weight: bold;
    color: #4b6382;
    margin: 0;
    flex-grow: 1;
}

/* Main menu button style */
.return-to-main-menu-btn {
       position: fixed; /* Changed from absolute to fixed */
    top: 40px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #4b6382;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

/* Main menu button image */
.return-to-main-menu-btn img {
    width: 50%;
    height: 50%;
}

/* Tooltip styling for all buttons */
.button::after, .return-to-main-menu-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4b6382;
    color: white;
    padding: 5px 5px;
    border-radius: 6px;
    white-space: wrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Show tooltip on hover */
.button:hover::after, .return-to-main-menu-btn:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem; /* Smaller font size */
        padding: 15px 0; /* Reduced padding */
    }
    .main-container {
        padding-top: 70px; /* Less top spacing on mobile */
    }
    .return-to-main-menu-btn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
}

.grid-container a, .grid-container a:hover, .grid-container a:focus {
    text-decoration: none !important;
}

 .btn-fixed-return {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 8px 15px;
        border: 3px solid #4b6382;
        border-radius: 5px;
        color: #4b6382;
        background-color: #fff;
        font-weight: bold;
        font-size: 16px;
        transition: background-color 0.3s, color 0.3s, transform 0.3s;
        white-space: nowrap;
        z-index: 1000;
        text-decoration: none;
    }
    
    .btn-fixed-return:hover {
        background-color: #4b6382;
        color: #fff;
        transform: scale(1.05);
    }
