/* Helpers */
.clickable {
    cursor: pointer;
}

.ghost {
    opacity: 0.4;
}

/* Card Headers */
.mud-card-header h1 {
    color: var(--mud-palette-primary)
}

/* you are studying */
.you-are-studying-card {
    height: calc(100dvh - 120px); /* preferred modern */
    display: flex;
    flex-direction: column;
}

.you-are-studying-card div.drawer-content {
    position: relative;
    padding-top: 00px;
    overflow-y: hidden;
}

.you-are-studying-card div.readout {
    position: absolute;
    top: calc(50vw - 15px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.you-are-studying-card div.readout h1 {
    font-size: 80px;
    color: var(--mud-palette-primary)
}

.you-are-studying-card .progress-wheel {
    width: calc(100vw - 30px);
    height: calc(100vw - 30px);
}


/* drawers */
.drawer-content {
    height: 500px;
    overflow-y: auto;
}

/* App Bar (Top)*/
.mud-toolbar.mud-toolbar-gutters.mud-toolbar-appbar {
    padding-left: 6px;
    padding-right: 6px;
}

/* General */
.fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 1000;
}

.secondary-fab {
    border: 2px solid #034078;
    margin-top: 10px;
    background: #eee;
}

.secondary-fab:hover {
    border: 2px solid #022A50;
    margin-top: 10px;
    background: #e3e3e3;
}

/* Landing page */

landing-hero {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
}

landing-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
}

landing-hero p {
    font-size: 1.25rem;
}

landing-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem 2rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

landing-menu > item {
    background: white;
    color: var(--mud-palette-primary);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

landing-menu > item.settings {
    background: transparent;
    border: 1px solid transparent;
}

landing-menu > item > i {
    font-size: 50px;
}

landing-menu > item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

landing-menu > item h2 {
    margin: 0 0 0.5rem;
}

landing-menu > item p {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
}

/* Exams Page */
.mud-timeline-item:last-child {
    margin-bottom: 82px; /* Leave space for fab buttons*/
}

.exam-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1rem 1.5rem 1.4rem 1.5rem;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.exam-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.exam-card > h2 {
    margin-top: 0;
}

.exam-card > p:last-child {
    margin-bottom: 0;
}

.subject-icon {
    font-size: 50px;
    color: #aaa
}

/* Brand name (studySteps */

.brand-name span:first-child {
    color: #004A96;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.mud-appbar .brand-name span:first-child {
    color: #fff;
}

.brand-name span:last-child {
    color: #02BD64;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

/* loading logo */
#splash-screen {
    background: #eceff1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#splash-screen > div {
    display: flex;
    align-items: center; /* vertical */
    justify-content: center; /* horizontal */
    height: 100%; /* or fixed height */
}

svg#logo .step {
    animation: pulse 0.6s infinite alternate;
}

svg#logo .step:nth-child(4) {
    animation-delay: 0s;
}

svg#logo .step:nth-child(3) {
    animation-delay: 0.2s;
}

svg#logo .step:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}


/* attention grabber (often for buttons)*/

.attention-pulse {
    animation: attn-pulse 1.2s infinite ease-in-out;
}

@keyframes attn-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.attention-pulse-2 {
    animation: attn-pulse-2 1.6s infinite ease-in-out;
}

@keyframes attn-pulse-2 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1);
        opacity: 0.75;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.attention-pulse-3 {
    animation: attn-pulse-3 1.6s infinite ease-in-out;
}

@keyframes attn-pulse-3 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    20% {
        transform: scale(1.1);
        opacity: 0.9;
    }


    40% {
        transform: scale(1);
        opacity: 0.9;
    }
}


.review-subject-attention-pulse .fa-star{
    animation: review-subject-attention-pulse 1.2s infinite ease-in-out;
}

@keyframes review-subject-attention-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: grayscale(0%);
    }

    50% {
        transform: scale(0.8);
        opacity: 0.5;
        filter: grayscale(100%);
    }
}