:root {
    --primary-color: #4a90e2;
    --secondary-color: #f39c12;
    --background-color: #f5f6fa;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-card p {
    color: #666;
}

footer {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 1rem;
}

#totalScore {
    font-weight: bold;
    color: var(--secondary-color);
}

.difficulty-section {
    margin: 1rem 0;
    text-align: center;
}

.difficulty-section select {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

.instructions-section {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.instruction-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.instruction-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instruction-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.instruction-card li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.high-scores-section {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.high-score-section {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
}

.high-score-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.high-score-section ul {
    list-style-type: none;
    padding-left: 0;
}

.high-score-section li {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.high-score-section li:last-child {
    border-bottom: none;
}

.time-bar-container {
    width: 100%;
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.time-bar {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 1s linear;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color);
}

.home-button::before {
    content: "🏠";
    font-size: 1.5rem;
}

.creator-footer {
    text-align: center;
    padding: 1.5rem 0;
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.creator-footer span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-50%);
    height: 32px;
}

.social-links {
    display: inline-flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
    transform: translateY(-50%);
    height: 32px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    vertical-align: middle;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-button.github {
    color: #24292e;
}

.social-button.linkedin {
    color: #0077b5;
}

.social-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}