body {
    overflow: hidden;
    min-height: 100vh;
    background: linear-gradient(-45deg,
    #19cb07,
    #505050,
    #4CAF50,
    #007bff,
    #6f42c1,
    #e44d26,
    #4a148c,
    #00acc1
    );
    background-size: 1000% 1000%;
    animation: gradient 15s ease infinite;
    display: flex;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

.main-title {
    display: flex;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 200px);
    animation: titleAnimation 5s ease forwards;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 10px;
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.container {
    display: flex;
    justify-content: center; 
    align-items: center;   
    gap: 20px;              
    flex-wrap: wrap;       
    width: 100%;
}

.card {
    min-width: 200px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 20%;
    height: 30%;
    animation : cardAnimation 3s ease forwards;
    transform: translateY(100px);
    animation-delay: 2s;
    opacity: 0;
}

.btn-microsoft {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border: 1px solid #8c8c8c;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-microsoft:hover {
    background-color: #f3f3f3;
}

@keyframes titleAnimation {
    0% {
        transform: translate(-50%, 200px);
    }
    40% {
        transform: translate(-50%, 0);
    }
    70% {
        transform: translate(-50%, 0) scale(1.2);
    }
    100% {
        transform: translate(-50%, 0) scale(1);
    }
}

@keyframes cardAnimation {
    
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-background {
    overflow: hidden;
    background: linear-gradient(-45deg,
        #1a1a1a,
        #2d2d2d,
        #0e2506,
        #404040
    );
    background-size: 400% 400%;
    animation: gradientDashboard 15s ease infinite;
}

.dashboard-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    width: 80%;
    max-width: 800px;
    height: 80vh;
    padding: 20px;
    margin: 0 auto;
    opacity: 1;
    animation: cardAnimation 3s ease forwards;
    transform: translateY(100px);
    overflow: hidden;
}

.user-stats {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1;
}

.questions-list {
    margin-top: 20px;
    padding-bottom: 20px;  
    overflow-y: auto;   
    height: calc(100% - 40px); 
}

.question-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.question-difficulty {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.question-difficulty.easy { background: #e0f7e0; color: #1b5e20; }
.question-difficulty.medium { background: #fff3e0; color: #e65100; }
.question-difficulty.hard { background: #ffebee; color: #c62828; }

.question-points {
    color: #666;
    font-weight: 500;
}

.question-content {
    flex: 1;
}

.question-content h4 {
    margin: 0;
    font-size: 1em;
    color: #333;
    line-height: 1.3;
}

.question-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.category {
    font-size: 0.8em;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-small {
    padding: 4px 12px;
    font-size: 0.9em;
    align-self: flex-end;
}

.dashboard-content {
    max-height: calc(80vh - 40px);
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
}

.dashboard-content::-webkit-scrollbar {
    width: 6px;
}

.dashboard-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

@keyframes gradientDashboard {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html {
    scroll-behavior: smooth;
}