body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* background-image: url("/background_a15.png");
    background-attachment: fixed;
    background-size: 100% auto; */
}

.background {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 100px));
    gap: 40px;
}

.pokemon {
    position: static;
}

.pokemon img{
    width: 100px;
    margin-right: 0;
    opacity: 0.5;
}

.pokemon img:hover{
    opacity: 1;
}

.dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
}

.dialog div {
    margin-bottom: 15px;
    display: flex;
}

.dialog * {
    margin-right: 10px;
    margin-bottom: 15px;
}

/* Search Section */
.dialog div:nth-child(1) input[type="text"],
.dialog div:nth-child(1) select {
    flex: 1;
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}


/* HP Section */
input[type="range"] {
    flex: 1;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Ball Section */
.dialog div:nth-child(3) label,
.dialog div:nth-child(4) label {
    flex: 1;
    margin-right: 5px;
}

input[type="radio"] {
    margin-right: 5px;
}

/* Pokemon Count Section */
input[type="number"] {
    flex: 1;
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Line */
.dialog hr {
    margin: 15px 0;
}

/* Catch Rate and Success Rate Section */
span {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
    flex: 1;
}

span#catch_rate_label,
span#success_rate_label {
    margin-left: 10px;
    font-weight: normal;
    color: #555;
}