/*base styles*/

body {
    color: #AEAEAE;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5em;
    min-height: 100vh;
}

body::before{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000000;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.67;
}

#navbar {
    position: fixed;
    top: 20px; /* adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: clamp(600px, 50vw, 1600px);
    background-color: #272727;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    border-radius: 100vw;
    box-shadow:  0 0 10px rgba(0, 0, 0, 0.5);
}

#navbar a {
    text-decoration: none;
    height: 100%;
    width: 100%;
    z-index: 1000;
}

.hc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bouttons {
    background-color: #6C6C6C;
    border-radius: 100vw;
    width: clamp(130px, 8vw, 240px);
    height: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0px;
    border: 3px solid transparent;
    transition: 
        border 3s,
        background-color 3s,
        background-image 3s;
    cursor: pointer;
}

.bouttons:active {
    background-color: #4C4C4C;
}

.bouttons.active {
    border: 3px solid transparent;
    background-image: 
        linear-gradient(#6C6C6C, #6C6C6C), /* button background */
        linear-gradient(45deg, #00A900, #1065E5); /* gradient border*/
    background-origin: border-box;
    background-clip: padding-box, border-box;
}


.bouttons:hover {
    border: 3px solid transparent;
    background-image: 
        linear-gradient(#6C6C6C, #6C6C6C), /* button background */
        linear-gradient(45deg, #ff7e5f, #feb47b); /* gradient border */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: 
        border 3s ease,
        background-color 3s ease,
        background-image 3s ease;
}

.bouttons.active:hover{
    background-color: #4C4C4C;
    border: 3px solid transparent;
    background-image: 
        linear-gradient(#6C6C6C, #6C6C6C), /* button background */
        linear-gradient(45deg, #00A900, #1065E5); /* gradient border*/
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.bouttons .btn-icon {
    display: none;
    font-size: 1.5vw;
}

.content {
    margin-top: 100px; /* Adjust based on navbar height */
    z-index: 10;
}

.text-box {
    width: max(45vw, 600px);
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    background-color: #272727;
    border-radius: 20px;
    margin-top: 32px;
    padding: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.text {
    margin: 0;
    gap: 0;
}


@media (max-width: 700px) {

    #navbar {
        width: 70vw;
        align-items: center;
        justify-content: space-around;
        padding: 0 5vw;
    }

    .bouttons {
        width: 10vw;
        height: 10vw;
        border-radius: 1000;
    }

    .bouttons .btn-text {
        display: none;
    }
    .bouttons .btn-icon {
        display: block;
        font-size: 4vw;
    }

    .text{
        font-size: clamp(20px, 1vw, 30px);
    }
}

/*home css*/
/*hello box*/
#hello-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin: 0 20px;
    width: 90%;
    gap: 20px;
}

#hello-box-logo {
    width: 25%;
    max-width: 300px;
    height: auto;
}

#hello-box-description {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#hello-box-description h1 {
    font-size: clamp(40px, 2.5vw, 60px);
    margin: 0;
}
#hello-box-description p {
    font-size: clamp(20px, 1vw, 30px);
    line-height: 1.5;
    margin: 0;
}

#server-address {
    font-size: clamp(20px, 1vw, 30px);
    line-height: 1.5;
    margin: 0;
    background: linear-gradient(90deg, #01CF01, #00A6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

}

@media (max-width: 700px) {

    .text-box {
        width: 90vw;
        margin: calc(0px + 3vw) auto;
    }

    #hello-box {
        flex-direction: column;
        align-items: center;
    }

    #hello-box-logo {
        width: 50%;
        max-width: 200px;
    }

    #hello-box-description {
        align-items: center;
        text-align: center;
    }

    #hello-box-description h1 {
        font-size: clamp(20px, 8vw, 80px);
    }

    #hello-box-description p {
        font-size: clamp(15px, 5vw, 55px);
    }
}

/*connectedplayerbox*/

.text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    gap: 10px;
}

#player-head-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 70%;
}

#player-head-container img {
    width: clamp(60px, 3.75vw, 100px);
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7));
    padding: 1px;
    cursor: pointer;
}

.text-box h2 {
    font-size: clamp(30x, 2vw, 50px);
    text-align: center;
    margin: 0; 
}

@media (max-width: 700px) {
    .text-box h2 {
        font-size: clamp(25px, 2vw, 40px);
    }
}

/*server usage box*/
#server-gauge-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    border-radius: 20px;
}

.gauge {
    text-align: center;
}

.gauge .label {
    font-size: clamp(20px, 1.5vw, 30px);
    margin: -15px 0 0 0;
}

canvas {
  width: clamp(100px, 20vw, 200px);   /* Responsive width */
  height: clamp(100px, 20vw, 200px);  /* Responsive height */
  max-width: 200px;
  max-height: 200px;
}

#server-uptime p{
    color: #2AE283; /* Green color for uptime */
}

/* player */

.playerplus-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: fit-content;
    background-color: #6C6C6C ;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
}

.playerplus-container:hover {
    background-color: #4C4C4C;
    transition: background-color 0.3s ease;
}

.playerplus-container img {
    width: clamp(45px, 3.75vw, 100px);
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.7));
    padding: 1px;
}

.playerplus-container span {
    font-size: clamp(10px, 1vw, 20px);
    text-align: center;
    color: #AEAEAE;
    margin-top: 5px;
}

#playerplus-head-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.player-box-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 70%;
}

#player-head-squelette {
    width: clamp(45px, 3.75vw, 100px);
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.7));
    padding: 1px;
}

/* player details */

.info-box {
    width: max(45vw, 600px);
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background-color: #272727;
    border-radius: 20px;
    margin-top: 32px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    gap: 1vw;
    padding: 25px 0;
}

@media (max-width: 700px) {

    .info-box {
        width: 90vw;
        margin: calc(0px + 3vw) auto;
    }
}

.info-box img {
    width: clamp(100px, 20vw, 250px);
    height: auto;
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.7));
    padding: 1px;
    margin-left: 10px;
}

.player-info{
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin-right: 10px;
}

.player-info h2 {
    font-size: clamp(40px, 2.7vw, 50px);
    margin: 0;
    font-weight: 800;
    max-width: 25vw;
    overflow: hidden;
}

#time-info .info {
    font-size: clamp(17px, 1vw, 20px);
    margin: 2px;
}

.subtitle {
    font-size: clamp(27px, 2vw, 30px);
    line-height: 1.5;
    margin: 0;
}



#distance-grid {
    display: grid;
    grid-template-columns: 1fr; /* default: 1 per row */
    gap: 10px;
}

@media (min-width: 700px) {
    #distance-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row */
    }
}

#distance-grid p {
    font-size: clamp(15px, 1vw, 20px);
    margin: 0;
}

.highlight {
    color: #2AE283;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 5fr));
    align-items: start;
    justify-content: start;
    gap: 10px;
    width: 75%;
    margin-bottom: 30px;
}

.image-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    text-align: center;
    width: 100%;
    flex: 1 1 clamp(150px, 50%, 300px)

}

.image-item img {
    width: clamp(30px, 3vw, 70px);
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.7));
    padding: 1px;
    image-rendering: pixelated;
    font-size: 10px;
}

.image-item p {
    font-size: clamp(15px, 1vw, 20px);
    color: #AEAEAE;
}

.text-box h3 {
    font-size: clamp(30px, 3.5vw, 40px);
    text-align: center;
    font-weight: 800;

}

.text-box h4 {
    font-size: clamp(25px, 2vw, 30px);
    text-align: center;
    font-weight: 800;
    margin: 5px 0;
}

.text-box .left {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    width: 75%;
    margin-bottom: 10px;
}

.text-box .left p {
    margin: 0;
}

#no-mined-blocks {
    font-size: clamp(15px, 1vw, 20px);
    color: #AEAEAE;
    text-align: center;
    width: max(10vw,100px);
    background-color: #4C4C4C;
    padding: 7px 15px;
    border-radius: 10px;
}

.tooltip {
    position: relative; /* nécessaire pour le positionnement du texte */
    display: inline-block;
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.tooltip .tooltiptext {
    visibility: hidden; /* texte caché par défaut */
    width: clamp(150px, 30vw, 300px);
    background-color: #4C4C4C;
    color: #AEAEAE;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-weight: 600;

    /* positionnement */
    position: absolute;
    z-index: 1;
    bottom: 125%; /* au-dessus du texte */
    left: 50%;
    transform: translateX(-50%);

    /* animation */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext strong {
    font-weight: 800;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


#advancements-img-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 10px;
  width: 75%;
}

#advancements-img-container .advancement {
  flex: 1 1 clamp(150px, 25%, 200px);
  max-width: 200px;
}


/* donations */
#navbar-donation{
    position: fixed;
    top: 20px; /* adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: clamp(400px, 30vw, 1100px);
    background-color: #272727;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 20px;
    z-index: 100;
    border-radius: 100vw;
    box-shadow:  0 0 10px rgba(0, 0, 0, 0.5);
}

.bouttons-donation {
    background-color: #6C6C6C;
    border-radius: 100vw;
    width: clamp(140px, 10vw, 240px);
    height: 70px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0px;
    border: 3px solid transparent;
    transition: 
        border 3s,
        background-color 3s,
        background-image 3s;
    cursor: pointer;
}

.bouttons-donation:active {
    background-color: #4C4C4C;
}

.bouttons-donation.active {
    border: 3px solid transparent;
    background-image: 
        linear-gradient(#6C6C6C, #6C6C6C), /* button background */
        linear-gradient(45deg, #00A900, #1065E5); /* gradient border*/
    background-origin: border-box;
    background-clip: padding-box, border-box;
}


.bouttons-donation:hover {
    border: 3px solid transparent;
    background-image: 
        linear-gradient(#6C6C6C, #6C6C6C), /* button background */
        linear-gradient(45deg, #ff7e5f, #feb47b); /* gradient border */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: 
        border 3s ease,
        background-color 3s ease,
        background-image 3s ease;
}

.bouttons-donation.active:hover{
    background-color: #4C4C4C;
    border: 3px solid transparent;
    background-image: 
        linear-gradient(#6C6C6C, #6C6C6C), /* button background */
        linear-gradient(45deg, #00A900, #1065E5); /* gradient border*/
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.bouttons-donation .btn-icon {
    display: none;
    font-size: 1.5vw;
}

@media (max-width: 700px) {

    #navbar-donation {
        width: 70vw;
        align-items: center;
        justify-content: space-around;
        padding: 0 5vw;
    }
    .bouttons-donation {
        width: 10vw;
        height: 10vw;
        border-radius: 1000;
    }

    .bouttons-donation .btn-text {
        display: none;
    }
    .bouttons-donation .btn-icon {
        display: block;
        font-size: 4vw;
    }

    .text{
        font-size: clamp(20px, 1vw, 30px);
    }
}

.donation{
    background-color: #191919 ;
    border-radius: 15px;
    width: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

.player_head{
    width: clamp(15px,10vw,35px);
}

.player_name{
    max-width: 15vw;
    overflow:hidden;
}

.amount{
    max-width: 10vw;
    overflow: hidden;
}

.remove{
    cursor: pointer;
    transition: 
        color 3s ease,
}

.remove:hover{
    color:rgb(255, 54, 54);
    transition: 
        color 3s ease,
}

.bar{
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0px;
}

.barem{
    display: flex;
    width: 80%;
    flex-direction: row;
    align-items: end;
    justify-content:space-between;
    margin-bottom: -20px;
    font-size: clamp(8px,6vw,20px);
}

#amount-display{
    height: fit-content;
    margin-bottom: -20px;
}

#form-login-donation{
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 10px;
    align-items: center;
}

#form-login-donation #mdp{
    background-color: #191919;
    border-radius: 10px;
    border: none;
    color: #AEAEAE;
    height: 3vh;
    width: 50%;
    padding: 1%
}

#form-login-donation #submit{
    width: 20%;
    height: 3vh;
    border-radius: 10px;
    border: none;
    background-color: #6C6C6C;
    color: #AEAEAE;
    font-weight: 800;
    cursor: pointer;
}

#form-add-donation{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-button{
    background-color: #191919;
    border-radius: 10px;
    border: none;
    color: #AEAEAE;
    height: 3vh;
    width: 80%;
    padding: 3%
}

#form-add-donation #submit{
    width: 20%;
    height: 3vh;
    border-radius: 10px;
    border: none;
    background-color: #6C6C6C;
    color: #AEAEAE;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
}