/* Alapvető stílusok */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
}

h1 {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    max-width: 600px;
    margin-left: 350px;
}

h2 {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    max-width: 600px;
    margin-left: 220px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.reset-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.reset-button:hover {
    background-color: #45a049;
}

.clear-button {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.clear-button:hover {
    background-color: #e53935;
}

.selected-character {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    margin-bottom: 20px;
}

.selected-character span {
    font-style: italic;
}

.menu {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.hamburger {
    font-size: 30px;
    cursor: pointer;
    margin-right: 10px;
}

.help-button {
    font-size: 30px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: white;
}

.menu-items {
    display: none;
    background-color: #333;
    color: white;
    position: absolute;
    top: 40px;
    right: 0;
    width: 200px;
    border-radius: 5px;
    padding: 10px;
}

.menu-items ul {
    list-style-type: none;
    padding: 0;
}

.menu-items li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #444;
}

.menu-items li:hover {
    background-color: #575757;
}

.sub-menu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
    border-radius: 5px;
}

.sub-menu {
    background-color: #1e1d1d; /* Sötétebb szürke szín */
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin-bottom: 5px !important;
}

.sub-menu li:hover {
    background-color: #333333 !important; /* Világosabb szürke szín */
}

.sub-menu li {
    background-color: #252525; /* Sötétebb szürke szín */
    color: white !important;
    padding: 10px !important;
    border-radius: 5px !important;
    margin-bottom: 5px !important;
}

/* Világosabb stílusok a főmenü gombokhoz */
.main-menu-item {
    background-color: #444; /* Világosabb szürke szín */
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.main-menu-item:hover {
    background-color: #666; /* Még világosabb szürke szín */
}

.all-button {
    background-color: #555;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
    width: auto;
}

.all-button:hover {
    background-color: #777;
}

#board {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin: 20px auto;
    width: 80%;
}

.character {
    border: 2px solid #000;
    padding: 10px;
    background-color: rgba(240, 240, 240, 0.6);
    cursor: pointer;
    visibility: hidden;
    transition: opacity 0.3s ease, filter 0.3s ease;
    width: 150px;
    text-align: center;
}

.character img {
    max-width: 100%;
    height: auto;
}

.character.hidden {
    opacity: 0.3;
}

.character.visible {
    visibility: visible;
}

.menu-items li.on-list {
    background-color: #4CAF50 !important;
    color: white;
}

.character.out {
    opacity: 0.5;
    filter: grayscale(100%);
}

.help-container {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    margin: 50px auto;
    text-align: left;
}

.help-container button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.help-container button:hover {
    background-color: #45a049;
}
