@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap");

body {
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    font-style: normal;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: url('../img/bg.png');
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 100px !important;
    margin-top: 120px !important;
}

h1 { font-size: 32px; font-weight: 700; color: #212529; margin-bottom: 20px; }
h2 { font-size: 24px; font-weight: 600; color: #212529; margin-bottom: 20px; }

form { margin-top: 30px; }
label { display: block; margin-bottom: 10px; font-weight: 600; color: #495057; }

input[type="text"], select {
    width: 90%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #365ae1;
}

button {
    background-color: #365ae1;
    color: #fff;
    padding: 14px 28px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover { background-color: #85E4A5; transform: translateY(-2px); }

a.button-link { display: inline-block; margin-top: 20px; padding: 12px 24px; background-color: #365ae1; color: #fff; text-decoration: none; border-radius: 8px; transition: background-color 0.3s ease, transform 0.2s ease; }
a.button-link:hover { background-color: #85E4A5; transform: translateY(-2px); }

.error { color: #dc3545; font-weight: 600; margin-top: 20px; }

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

.stats-table th, .stats-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
}

.stats-table th { background-color: #e9ecef; font-weight: 600; }
.stats-table tr:nth-child(even) { background-color: #f8f9fa; }
.stats-table tr:hover { background-color: #e9ecef; }

.player-image {
    order: -1;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.graph img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visualization-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

#cluster-visualization {
    max-width: 100%;
    cursor: move;
    transform-origin: 0 0;
}

.zoom-controls {
    margin: 10px 0;
}

#zoom-instructions {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.player-stats {
    margin-top: 40px;
}

.center-logo {
    display: block;
    margin: 50px auto;
    width: 500px;
    height: auto;
}

.center-logo:hover {
    transform: scale(1.05);
}

.tl { position: relative; top: 20px; left: 20px; width: 250px; height: auto; cursor: pointer; transition: transform 0.2s ease; margin-top: -20px; }
.tl:hover { transform: scale(1.05); }

footer { background-color: #fff; color: #365ae1; padding: 20px 0; text-align: center; position: fixed; width: 100%; bottom: 0; left: 0; }
footer p { margin: 0; font-size: 18px; }
footer a { color: inherit; text-decoration: underline; transition: color 0.3s ease; }
footer a:hover { color: #85E4A5; }

.highlight { background-color: rgba(255, 126, 54, 0.15) !important; font-weight: bold; position: relative; }
.highlight::after { content: "★"; position: absolute; right: 10px; color: var(--secondary); }

#players-selection {
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#players-container {
    display: block;
    width: fit-content;
    max-width: calc(100vw - 200px);
    min-width: 800px;
    margin: 50px auto;
    padding: 20px 50px ;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#players-container .stats-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 20px auto;
    gap: 20px;
    padding-bottom: 15px;
    overflow-x: auto;
}

#players-container .stats-column {
    min-width: 300px;
    max-width: 400px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .stats-column {
        flex: 100%;
    }
}
.chart-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.chart-controls {
    margin-bottom: 15px;
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.remove-btn {
    margin-top: 5px;
    margin-bottom: 25px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-btn:hover {
    background-color: #c82333;
}

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

.col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.navbar-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease-out 0s;
    background: #365ae1;
    padding: 10px 0;
}

.sticky {
    position: fixed;
    z-index: 99;
    background: #365ae1;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out 0s;
}

.navbar {
    width: auto;
    padding: 0;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease-out 0s;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 20px 0;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 20px 0;
    }
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    max-width: 150px;
    margin: 0 auto;
    display: block; 
    align-items: center;
    vertical-align: middle;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    padding: 0px;
    border: none;
    background: transparent;
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 2px;
    background-color: green;
    display: block;
    margin: 5px 0;
    position: relative;
    transition: all 0.3s ease-out 0s;
}

.navbar-toggler.active .toggler-icon:nth-of-type(1) {
    transform: rotate(45deg);
    top: 7px;
}

.navbar-toggler.active .toggler-icon:nth-of-type(2) {
    opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-of-type(3) {
    transform: rotate(135deg);
    top: -7px;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 9;
        box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.1);
        padding: 10px 20px;
    }
}

@media (max-width: 767px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 9;
        box-shadow: 0px 15px 20px 0px rgba(61, 66, 112, 0.1);
        padding: 5px 12px;
    }
}

.navbar-nav {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    margin-top: 0;
}

.navbar-nav .nav-item {
    margin-left: 40px;
    position: relative;
}

.navbar-nav .nav-item:first-child {
    margin-left: 0;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .navbar-nav .nav-item {
        margin-left: 30px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
}

.navbar-nav .nav-item a {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease-out 0s;
    position: relative;
    padding: 20px 0;
    display: inline-block;
    text-decoration: none;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-item a {
        color: #365ae1;
        display: inline-block;
        padding: 6px 0;
    }
}

@media (max-width: 767px) {
    .navbar-nav .nav-item a {
        color: #365ae1;
        display: inline-block;
        padding: 6px 0;
    }
}

.navbar-nav .nav-item a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background: #85E4A5;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease-out 0s;
}

.navbar-nav .nav-item a.active::after, .navbar-nav .nav-item a:hover::after {
    width: 100%;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-nav .nav-item a.active, .navbar-nav .nav-item a:hover {
        color: #365ae1;
    }
}

@media (max-width: 767px) {
    .navbar-nav .nav-item a.active, .navbar-nav .nav-item a:hover {
        color: #365ae1;
    }
}

.ml-auto {
    margin-left: auto !important;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }
}

.navbar-expand-lg .navbar-toggler {
    display: none;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-expand-lg .navbar-toggler {
        display: block;
    }
}

@media (max-width: 767px) {
    .navbar-expand-lg .navbar-toggler {
        display: block;
    }
}

.navbar-area .container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent;
    box-shadow: none;
    padding: 0 40px;
}