/* games/aid/static/css/aid.css */
/* General Styles */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    color: #00FFEA;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Center content vertically */
    align-items: center;      /* Center content horizontally */
    min-height: 100vh;        /* Take the full height of the viewport */
    width: 100%;              /* Take the full width of the viewport */
}

/* Header */
header {
    font-size: 3rem; /* Slightly reduce font size */
    color: #600ab8;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    /*border-bottom: 2px solid #0ff;*/
    width: 98%; /* Ensure header takes full width */
}

header h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem; /* Slightly reduce font size */
    color: #600ab8;
    text-shadow: 2px 2px 8px #00FFEA;
    letter-spacing: 12px;
}

/* Ensure the container is constrained to fit the viewport */
.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items to start of the container */
    align-items: center;     /* Center the container contents horizontally */
    width: 100%;             /* Make the container take full width */
    height: 100vh;           /* Set the height to fill the viewport */
    max-width: 100%;         /* Ensure the width doesn’t overflow */
    padding: 0;
    box-sizing: border-box;  /* Include padding and border in the container’s dimensions */
    overflow: hidden;        /* Prevent overflow issues */
}

/* Game Container */
#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 91%; /* Adjust height to avoid overlap */
}

/* Make sure the canvas adjusts to the container size */
canvas {
    width: 100%;  /* Set the canvas width to 100% of its parent */
    height: 100%; /* Set the canvas height to fill the available height */
    background-color: #111;
    border: 1px solid #600ab8;
    box-sizing: border-box; /* Ensure borders don’t affect size */
}

#score, #lives {
    display: inline-block;
    margin-right: 20px;
    font-size: 1.5em;
}

#score, #lives {
    font-size: 1.5em; /* Adjust font size if necessary */
}

/* Shared styles for sci-fi themed buttons */
.sci-fi-btn {
    font-family: 'Orbitron', sans-serif; /* Futuristic font */
    font-size: 1rem; /* Reduced font size */
    color: #00ffea; /* Glowing cyan color */
    text-transform: uppercase;
    letter-spacing: 3px; /* Slightly smaller letter spacing */
    background: linear-gradient(145deg, #0d0d0d, #1a1a1a); /* Dark, sleek background */
    border: 2px solid #00ffea; /* Border with glowing cyan */
    border-radius: 8px; /* Slightly smaller border radius */
    padding: 10px 20px; /* Smaller padding for a more compact look */
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.4), 0 0 20px rgba(0, 255, 234, 0.2); /* Slightly smaller glow */
    cursor: pointer;
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sci-fi-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(0, 255, 234, 0.4), transparent);
    transition: all 0.5s ease-in-out;
    z-index: -1;
}

.sci-fi-btn:hover::before {
    left: 100%;
}

.sci-fi-btn:hover {
    color: #fff; /* Text color changes on hover */
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.8), 0 0 40px rgba(0, 255, 234, 0.5); /* Intense glow on hover */
    background: linear-gradient(145deg, #1a1a1a, #333); /* Background gets lighter */
}

.sci-fi-btn:active {
    box-shadow: 0 0 8px rgba(0, 255, 234, 0.8); /* Slightly reduced glow on click */
    transform: scale(0.98); /* Slightly shrink button when clicked */
}

/* Glow animation on hover */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 234, 0.5);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 234, 0.8), 0 0 50px rgba(0, 255, 234, 0.5);
    }
}

/* Game Stats */
#game-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 96%;
    padding: 15px;
    border-top: 2px solid #600ab8;
    margin-top: auto; /* Pushes footer to the bottom of the page */
    background: rgba(0, 0, 0, 0.8); /* Match the header background */
}

/* Footer Links Styling */
footer .back-btn {
    color: #600ab8; /* Match the header title color */
    border: 2px solid #600ab8;
    border-radius: 5px;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold; /* Bold text */
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px; /* Similar letter-spacing as header */
    text-shadow: 2px 2px 8px #00FFEA; /* Match the text-shadow with the header */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

/* Hover effect for footer links */
footer .back-btn:hover {
    background-color: #00FFEA;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.8), 0 0 40px rgba(0, 255, 234, 0.5); /* Add glow effect */
}

#gameCanvas {
    z-index: 1;  /* Ensure it's layered above other elements */
    position: relative;
}
