@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    font-family: 'Orbitron', sans-serif;
    margin: 20px;
    background-color: #20222E;
    color: #FF9700;
}

h1 {
    text-align: center;
    font-weight: 700;
}

#key {
    margin-bottom: 20px;
    text-align: center;
}

.key-item {
    margin-right: 20px;
    font-size: 16px;
}

.key-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.star {
    color: gold;
    font-size: 20px;
    vertical-align: middle;
}

#unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    position: relative;
}

.unit {
    transition: all 0.5s ease-in-out;
    position: absolute;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    width: 100px;
    position: relative;
}

.unit img {
    width: 100%;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.unit .unit-name {
    margin-top: 5px;
    font-size: 14px;
}

.highlight-strong-against img {
    border-color: green;
    animation: glow 2s infinite;
    color: rgba(0, 255, 0, 0.7);
}

.highlight-weak-against img {
    border-color: red;
    animation: glow 2s infinite;
    color: rgba(255, 0, 0, 0.7);
}

.unit.selected img {
    border-color: yellow;
    animation: glow 2s infinite;
    color: rgba(255, 255, 0, 0.7);
}

@keyframes highlight-animation {
    from { border-color: transparent; }
    to { border-color: inherit; }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 3px 0px currentColor;
    }
    50% {
        box-shadow: 0 0 20px 10px currentColor;
    }
    100% {
        box-shadow: 0 0 5px 0px currentColor;
    }
}

.unit .star {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
}

.unit.highlight-weak-against .star {
    display: block;
}

@media (max-width: 600px) {
    .unit {
        width: 80px;
    }

    .unit .unit-name {
        font-size: 12px;
    }
}

.strong-against {
    background-color: green;
}

.weak-against {
    background-color: red;
}

.highlight-strong-against img {
    border-color: green;
    animation: glow 2s infinite;
    color: rgba(0, 255, 0, 0.7);
}

.highlight-weak-against img {
    border-color: red;
    animation: glow 2s infinite;
    color: rgba(255, 0, 0, 0.7);
}

/* ... existing styles ... */

#legal-disclaimer {
    margin-top: 40px;
    padding: 10px;
    font-size: 12px;
    color: #808080;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#legal-disclaimer p {
    margin: 0;
    line-height: 1.4;
}

#github-link {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#github-link a {
    color: #808080;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

#github-link a:hover {
    color: #FF9700;
}

#github-link i {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 5px;
}