/* Container layout for image and content */
#container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    margin: 20px auto;
    align-items: flex-start;
    padding: 20px;
    background-color: #f7f9fc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-sizing: border-box;
}

/* Image section */
#image_section {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#background_image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

#background_container {
    position: relative;
}

/* Grass clumps */
#grass_container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-evenly;
    padding: 15px;
    box-sizing: border-box;
    z-index: 1;
}

.grass {
    width: 120px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grass:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Content Section */
#content_section {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

#content_section h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

#content_section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

#content_section h2 {
    font-size: 1.8em;
    margin-top: 30px;
    color: #444;
}

#pokeball_track,
#pokemon_track {
    font-weight: bold;
    color: #2c3e50;
}

#play_again {
    display: none;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#play_again:hover {
    background-color: #d6eb63;
}

#result {
    text-align: center;
    color: #e74c3c;
    font-size: 1.5em;
    font-weight: bold;
}

/* History and Pokedex Layout */
#history_and_pokedex_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin: 20px;
}

/* Game History Section */
#result_history_section {
    flex: 1;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
}

#result_history_section h2 {
    font-size: 1.8em;
    color: #333;
}

#result_history_section button {
    padding: 8px 15px;
    margin: 5px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#result_history_section button:hover {
    background-color: #2ecc71;
}

#result_history {
    font-size: 1.2em;
}

/* Pokedex Section */
#pokedex_section {
    flex: 1;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#pokedex_section h2 {
    font-size: 1.6em;
    color: #34495e;
    margin-bottom: 10px;
}

#pokedex_table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#pokedex_table th,
#pokedex_table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#pokedex_table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

#pokedex_table td {
    color: #555;
}

#special_message {
    margin-top: 10px;
    font-style: italic;
    color: #7f8c8d;
}

/* Responsive Design */
@media screen and (max-width: 900px) {
    #container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    #image_section,
    #content_section {
        width: 100%;
    }

    #history_and_pokedex_container {
        flex-direction: column;
        align-items: center;
    }

    .grass {
        width: 100px;
    }
}

@media screen and (max-width: 700px) {
    #content_section h1 {
        font-size: 1.8em;
    }

    #content_section p {
        font-size: 1em;
    }

    #content_section h2 {
        font-size: 1.4em;
    }

    .grass {
        width: 90px;
    }
}

#view_code_section {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 60px;
}

#view_code_button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #079582;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#view_code_button:hover {
    background-color: #22ee69;
}



