body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.SearchMain {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
}

.box {
    margin-bottom: 20px;
}

.flex {
    display: flex;
    gap: 10px;
}

.between {
    justify-content: space-between;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    background-color: #0078D4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.Elements {
    margin-top: 20px;
}

    .Elements .flex {
        display: grid;
        grid-template-columns: repeat(18, 1fr);
        gap: 2px;
        width: 100%;
    }

dl {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps tiles square */
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 2px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 4px;
    margin: 0 0 0 0;
    transition: transform 0.2s ease;
}

    dl dt {
        font-size: clamp(0.5rem, 1vw, 0.8rem); /* Responsive atomic number */
        color: #555;
        margin-bottom: 0px;
    }

    dl dd {
        font-size: clamp(0.8rem, 2vw, 1.2rem); /* Responsive element symbol */
        margin: 0;
    }

.CanCk:hover {
    transform: scale(1.05);
}

.NoHave {
    background-color: transparent;
    border: 1px dashed #ccc;
}


.radiused {
    border-radius: 10px;
}

/* Background colors for different element types */
.BgColor_1 {
    background-color: #f8b195;
}

.BgColor_2 {
    background-color: #f67280;
}

.BgColor_3 {
    background-color: #c06c84;
}

.BgColor_4 {
    background-color: #6c5b7b;
}

.BgColor_5 {
    background-color: #355c7d;
    color: #fff;
}

.BgColor_6 {
    background-color: #99b898;
}
