body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    background-color: #000;
    color: white;
    background: url('assets/backgrounds/space_background.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow: auto;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 10px auto;
    position: relative;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5em;
    color: #33ccff;
}

header h2 {
    font-size: 1.2em;
    color: #66ffff;
}

#logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.ad-space {
    width: 100%;
    height: 90px; /* Adjust height as needed */
    margin: 10px 0;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2em;
}

.scoreboard {
    display: flex;
    justify-content: space-around; /* Distributes items evenly */
    align-items: center; /* Aligns items vertically in the center */
    background-color: #1a1a1a; /* Optional: background color for the scoreboard */
    padding: 10px; /* Optional: padding for the scoreboard */
    border-radius: 5px; /* Optional: rounded corners */
    color: #ffffff; /* Optional: text color */
}

.scoreboard p {
    margin: 0;
    font-size: 1.2em;
}

.score-item {
    flex: 1; /* Ensures all items take up equal space */
    text-align: center; /* Centers text within each item */
}

#mini-spaceship {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

#gameCanvas {
    background-color: transparent; /* To see the animated background */
    border: 2px solid #33ccff;
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: auto;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #33ccff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 5px;
}

button:hover {
    background-color: #28a7ff;
}

.instructions, .content {
    margin-top: 20px;
    text-align: left;
}

.content {
    text-align: left;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    color: #ffffff;
}

.content h2, .content h3 {
    color: #33ccff;
    margin-top: 20px;
}

.content p, .content ul, .content li {
    font-size: 1.1em;
    line-height: 1.5;
}

.content ul {
    padding-left: 20px;
}

.content img.content-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* High Scores Table */
.high-scores-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.high-scores-table th, .high-scores-table td {
    border: 1px solid #33ccff;
    padding: 10px;
    text-align: left;
}

.high-scores-table th {
    background-color: #33ccff;
    color: #000;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin: 10px 0 5px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    border: 1px solid #33ccff;
    border-radius: 5px;
    background: #222;
    color: #fff;
}

.contact-form button {
    margin-top: 20px;
    background-color: #33ccff;
    color: #000;
}

footer {
    margin-top: 20px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0 10px; /* Reduced margin to fit more items in one line */
}

.footer-menu li a {
    color: #33ccff;
    text-decoration: none;
    font-size: 1em; /* Reduced font size to fit more items in one line */
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #28a7ff;
}

footer p {
    margin: 10px 0;
    font-size: 0.9em;
    color: #fff;
    text-align: center;
}

footer p a {
    color: #33ccff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p a:hover {
    color: #28a7ff;
}

#game-over-message, #power-up-message, #level-up-message, #collectible-message {
    font-size: 3em;
    text-align: center;
    display: none;
    position: absolute;
    width: auto;
    animation: flash 2s ease-in-out;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 50px); /* Adjusted top position to be below buttons but above instructions */
}

#power-up-message, #collectible-message {
    color: #00ff00;
    text-shadow: 0 0 5px #fff, 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00, 0 0 80px #00ff00, 0 0 120px #00ff00;
}

#game-over-message {
    color: #ff0000;
    text-shadow: 0 0 5px #fff, 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 80px #ff0000, 0 0 120px #ff0000;
}

#level-up-message {
    color: #ffff00;
    text-shadow: 0 0 5px #fff, 0 0 10px #ffff00, 0 0 20px #ffff00, 0 0 40px #ffff00, 0 0 80px #ffff00, 0 0 120px #ffff00;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00, 0 0 20px #00ff00, 0 0 25px #00ff00; }
    50% { box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00, 0 0 50px #00ff00; }
    100% { box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00, 0 0 20px #00ff00, 0 0 25px #00ff00; }
}

@keyframes twirl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Styles */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1em;
    }

    .ad-space {
        height: 60px;
        font-size: 1em;
    }

    .scoreboard {
        flex-direction: column;
        align-items: center;
    }

    .scoreboard p {
        margin: 5px 0;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    #game-over-message, #power-up-message, #level-up-message, #collectible-message {
        font-size: 2em;
        top: calc(50% + 30px); /* Adjusted for smaller screens */
    }
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.blog-article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.blog-article h3 {
    font-size: 1.5em;
    color: #33ccff;
    margin-bottom: 10px;
}

.blog-article p {
    font-size: 1em;
    color: #fff;
}

.blog-article a.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #33ccff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-article a.read-more:hover {
    color: #28a7ff;
}
/* Add these styles to your existing style.css */

/* Container for the blog page */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

/* Article header styling */
.blog-container header {
    text-align: center;
    margin-bottom: 20px;
}

.blog-container header h1 {
    font-size: 2.5em;
    color: #33ccff;
    margin: 0;
}

.blog-container header p {
    font-size: 1.2em;
    color: #66ffff;
}

/* Article content styling */
.blog-container article {
    text-align: left;
    color: #fff;
    line-height: 1.6;
    font-size: 1.1em;
}

.blog-container article h2, 
.blog-container article h3 {
    color: #33ccff;
    margin-top: 20px;
}

.blog-container article p {
    margin: 10px 0;
}

.blog-container article img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.blog-container article a {
    color: #33ccff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-container article a:hover {
    color: #28a7ff;
}