@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #ffffff;
    padding: 20px;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    height: 60px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

a.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.51);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #fff;
    background-clip: padding-box;
    background-color: #fff;
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    margin: 0;
}

.card-title,
.card-desc {
    margin-top: 8px;
    text-align: center;
    color: #333;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
}

.card-desc {
    font-size: 12px;
    color: #666;
}

@media screen and (max-width: 600px) {
    .logo-container img {
        height: 40px;
    }

    h1 {
        font-size: 16px;
        margin-bottom: 20px;
    }
}


/* Preloader full screen overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    /* Match your page background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top: 6px solid #000;
    /* Spinner color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



.floating-back-button {
    position: fixed;
    top: 50%;
    left: 20px; /* Position to the left */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #e0e0e0; /* Light gray base */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    text-decoration: none;
    font-weight: bold; /* Makes the arrow bold */
    box-shadow:
        8px 8px 15px rgba(0, 0, 0, 0.1),
        -8px -8px 15px rgba(255, 255, 255, 0.8);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-back-button:hover {
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    color: #222;
}

@media (max-width: 600px) {
    .floating-back-button {
        top: 20px;
        left: 20px; /* Position to the left */
        bottom: auto;
        transform: none;
    }
}
