﻿/* Card tweaks (unchanged) */
.feature-card {
    border-top: 2px solid #DB4437; /* Red */
    border-right: 2px solid #F4B400; /* Yellow */
    border-bottom: 2px solid #0F9D58; /* Green */
    border-left: 2px solid #4285F4; /* Blue */
}

.normal-card {
    border-top: 2px solid #2e2e2e; /* Red */
    border-right: 2px solid #2e2e2e; /* Yellow */
    border-bottom: 2px solid #2e2e2e; /* Green */
    border-left: 2px solid #2e2e2e; /* Blue */
}

.feature-card .feature-icon {
    font-size: 48px;
    color: #555;
}


/* Overlay panel base */
/* earnCredit.css */
.overlay {
    position: fixed;
    top: calc(var(--navbar-height-pct) + 1%);
    bottom: calc(var(--footer-height-pct) + 1%);
    left: 10%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.5); /* semi-transparent */
    backdrop-filter: blur(20px); /* apply blur */
    -webkit-backdrop-filter: blur(20px); /* Safari fallback */
    border: 0; /* <-- changed from 1px to 0 */
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    transition: width 0.5s ease, height 0.5s ease 0.5s;
}

    .overlay.open {
        width: 80vw; /* fill most of viewport horizontally */
        height: calc(100vh - (var(--navbar-height-pct) + 1%) - (var(--footer-height-pct) + 1%));
        border: 1px solid rgb(0, 0, 0); /* <-- add 1px border once “open” */
    }

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    background-color: rgba(241, 241, 241, 0.2);
}

.overlay-title {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* When overlay has .open, wait for the 0.5s width + 0.5s delayed height = 1s total, then fade in */
.overlay.open .overlay-title {
    transition-delay: 0.75s;
    opacity: 1;
}

/* Close button – make it bigger on hover rather than changing colour */
.overlay .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.1s ease;
    color: black;
}

.close-btn:hover {
    color: black;
}


.earn-btn-login {
    text-decoration: none;
    font-family: var(--maintext-font);
    padding: 0.4rem 1rem;
    font-size: var(--btn-font-size);
    line-height: 1;
    min-width: 4rem;
    text-align: center;
    border: 1px solid var(--btn-border-color, #ccc);
    border-radius: 0.25rem;
    background-color: var(--accent-color);
    color: white !important;
    transition: padding 0.2s ease;
}

    .earn-btn-login:hover,
    .earn-btn-login:focus {
        padding: 0.4rem 1.8rem;
    }


.earn-btn-earn {
    text-decoration: none;
    font-family: var(--maintext-font);
    padding: 0.4rem 1rem;
    font-size: var(--btn-font-size);
    line-height: 1;
    min-width: 4rem;
    text-align: center;
    border: 1px solid var(--btn-border-color, #ccc);
    border-radius: 0.25rem;
    background-color: var(--accent-color);
    color: white !important;
    font-size: 20px;
    transition: font-size 0.2s ease;
}

    .earn-btn-earn:hover,
    .earn-btn-earn:focus {
        font-size: 24px;
    }
