@import url('https://fonts.googleapis.com/css2?family=Nova+Flat&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header a {       font-family: 'Nova Flat', sans-serif;
    color: #ffd600;
    text-decoration: none;
    font-size: 1.6rem;
    transition: opacity 0.3s;
}

header a:hover {
    color: #fff;
}

header.logo{
    font-family: 'Nova Flat', sans-serif;
    font-size: 30px;
    padding: 15px;
    text-align: center;
}

.nav-toggle {
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s;  color: #ffd600;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu.active {
    max-height: 300px;
    opacity: 1;
    margin-top: 10px;
}

.nav-menu a {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    padding: 15px 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.nav-menu a:last-child {
    border-bottom: none;
}

.nav-menu a:hover {
    background: #667eea;
    color: white;
    padding-left: 25px;
}

.container {
    flex: 1;
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #c41e3a;
    margin-bottom: 25px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
}

select, button {
    padding: 10px 15px;
    border: 2px solid #c41e3a;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    color: #c41e3a;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover, select:hover {
    background: #c41e3a;
    color: white;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stats {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
    color: #555;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: #fff5f5;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid #c41e3a;
}

#gameCanvas {
    display: block;
    margin: 20px auto;
    border: 3px solid #c41e3a;
    border-radius: 15px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f3460 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#instructions {
    background: #fff5f5;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #c41e3a;
    margin: 20px 0;
}

#instructions h3 {
    color: #c41e3a;
    margin-bottom: 10px;
}

#instructions p {
    color: #555;
    line-height: 1.6;
    margin: 5px 0;
}

#message {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    min-height: 30px;
}

.footer {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer a, a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover, a:hover {
    color: #ffd600;
    text-decoration: none;
}

.footer a:focus, a:focus {
    color: #fff;
    text-decoration: none;
    outline: none;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }

    .container {
        padding: 20px;
        margin: 10px;
    }

    .stats {
        font-size: 16px;
        gap: 15px;
    }

    #gameCanvas {
        width: 100% !important;
        height: auto !important;
    }
}

.mr-15
{
    margin-right: 15px
}