/* Unique wrapper to avoid conflicts */
.eth-token-info-wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 70%;
    display: flex;
    height: auto;
    min-height: 500px;
    background: #6f098f;
    background: radial-gradient(circle, rgba(111, 9, 143, 1) 0%, rgba(27, 0, 110, 1) 35%, rgba(0, 0, 0, 1) 100%);
    border-style: dashed;
    border-color: gray;
    border-width: 1px;
    border-radius: 10px;
    justify-content: flex-start; /* Ensure proper space distribution */
    font-family: var(--poppins);
      background: radial-gradient(circle, rgba(0, 115, 255, 0.711) 0%, rgb(7, 0, 110) 35%, rgb(3, 0, 51) 100%);

}

.eth-right {
    padding: 2rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #00000000;
}


.eth-left{
    padding: 2rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ff000000;
    
}

.eth-left {
    border-right: 1px solid #eeeeee9f;
}

.eth-left img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.eth-description {
    max-width: 600px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
}

.eth-description p {
    font-size: 17px;
    color: #ffffffb2;
    line-height: 1.5em;
    font-family: var(--poppins);
    text-align: left;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0);

    border-width: 1px;
    padding: 10px;
    border-radius: 10px;

}
.eth-description .apiinfo {
  background-color: black;
  border: 0.5px solid rgba(255, 255, 255, 0.49);
  box-shadow: 0 0 10px white, 0 0 1px white, 0 0 3px white;
}

.eth-description h2 {
  font-size: 40px;
  font-weight: 700;
  color: #ffffffbd;
  margin-bottom: 20px;
  margin-top: 5%;
  text-align: left;
  width: fit-content;
  border-bottom: solid;
  border-radius: 10px;
  border-width: 1px;

}

.eth-description h3 {
  font-size: 25px;
  font-weight: 400;
  color: #ffffffbd;
  margin-bottom: 20px;
  text-align: left;
}


.eth-api-endpoint {
    display: flex;
    align-items: center;
    background: #f9fafc;
    border: 1px solid #dce3ec;
    border-left: 5px solid #3498db;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: monospace;
    overflow-x: auto;

    max-width: 600px;
    width: 100%;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.eth-api-endpoint .method {
    background: #3498db;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    margin-right: 1rem;
    white-space: nowrap;
}

.eth-api-endpoint .url {
    font-size: 0.9rem;
    word-break: break-word;
}

.eth-input-group {
    display: flex;
    max-width: 600px;
    width: 100%;
    margin-bottom: 1rem;
}

.eth-input-group input {
    flex: 1;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.eth-input-group button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.eth-input-group button:hover {
    background: #2980b9;
    border-color: #2980b9;
}

pre {
    max-width: 600px;
    width: 100%;
    height: 460px;
    overflow-y: auto;
    background: #2d2d2d;
    color: #ccc;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-sizing: border-box;
    margin-top: 1rem;
    font-family: monospace;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .eth-token-info-wrapper {
        width: 90%;
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .eth-left,
    .eth-right {
        flex: unset;
        width: 100%;
        padding: 1.5rem 1rem;
        border-right: none;
        border-bottom: 2px solid #eee;
    }

    .eth-right {
        border-bottom: none;
    }

    .eth-api-endpoint,
    .eth-input-group,
    pre {
        max-width: 100%;
    }

    pre {
        height: 300px;
    }
}

@media (max-width: 400px) {
    .eth-input-group button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .eth-api-endpoint .method {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.6rem;
    }

    .eth-api-endpoint .url {
        font-size: 0.8rem;
    }
}