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

* {
    font-size: 14px;
    font-family: Montserrat;
    color: white;
    padding: 0;
    margin: 0;
    user-select: none;
}

body {
    background-color: #1a1a1a;
    margin: 2px 10px;
}

table {
    border-collapse: separate;
    border-spacing: 0 5px;
    width: 95%;
    margin: 0 auto;
}

td {
    padding: 8px;
    text-align: center;
    background-color: #1a1a1a;
    transition: background-color 0.3s, border-color 0.3s;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

tr td:first-child {
    border-left: 1px solid #2a2a2a;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

tr td:last-child {
    border-right: 1px solid #2a2a2a;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

tr td {
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

tr:hover td {
    background-color: #222;
    border-color: #6b6b6b;
}

/* Stylowanie TOP 3 */
#td1 td {
    border-color: #aa9101;
}
#td1:hover td {
    border-color: #ffd700;
}

#td2 td {
    border-color: #a0a0a0;
}
#td2:hover td {
    border-color: #c8c8c8;
}

#td3 td {
    border-color: #7a3d00;
}
#td3:hover td {
    border-color: #b45a00;
}

/* Szerokości kolumn (dopasowane do tabeli medali) */
td:nth-child(1) { width: 6%; }
td:nth-child(2) { width: 25%; }
td:nth-child(3) { width: 17%; }
td:nth-child(4) { width: 17%; }
td:nth-child(5) { width: 17%; }
td:nth-child(6) { width: 18%; }

.color {
    color: #0cd29d;
}

.img {
    width: 32px;
    height: 32px;
}

/* TOOLTIPY (z pierwszego stylu) */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-container img {
    width: 28px;
    height: 28px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}

.tooltip-container img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 135%;
    left: 0;
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(12, 210, 157, 0.3);
    border: 1px solid #0cd29d;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    z-index: 20;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: #0cd29d transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}
