html{
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 20px;
    background: none;
}

body{
    background-color: rgb(36, 36, 36); !important;
    user-select: none;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

input{
    user-select: auto !important;
}

.bg-black{
    background-color: rgb(36, 36, 36); !important;
}

.gap-05{
    gap: 0.125rem; !important;
}

.w-20{
    width: 20% !important;
}

.font-monospace {
    font-family: monospace;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#search-bar {
    padding-right: 30px; /* Make room for the clear button */
}

.clear-button {
    margin-left: -30px; /* Sposta il pulsante a sinistra sovrapponendolo all'input */
    transform: translateY(-10%);
    background: none;
    border: none;
    color: #999;
    font-size: 25px;
    cursor: pointer;
    padding: 0 8px;
}

.clear-button:hover {
    color: #fff; /* Cambia il colore quando il mouse passa sopra */
}

.search-container input {
    background-color: rgb(60, 60, 60);
    color: white;
    border: 1px solid whitesmoke;
    padding: 8px;
    border-radius: 4px;
}

.search-container .fa-search {
    color: white;
    margin-left: 8px;
}

h1{
    text-align: center;
    color: white;
    font-size: 30px;
}

#update{
    color: white;
    text-align: center;
}

.home-button {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
}

.home-button a:hover{
    text-decoration: underline;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    color: #fff;
    margin-top: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-icon {
    background-size: 100%;
    background-repeat: no-repeat;
    height: 2.9rem;
    width: 2.9rem;
    margin-right: 5px;
    border-radius: 50%;
    vertical-align: middle;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 1.5rem;
    text-decoration: none; /* Rimuove l'underline */
    color: #fff; /* Imposta il colore bianco */
    line-height: 2rem;
}

.redirect_to_self{
    text-decoration: none;
    align-items: center;
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    height: 30px;
    width: auto;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}


.decoration-none{
    text-decoration: none;
}

.color-white{
    color: white;
}

.border{
    border: 2px solid white;
    border-radius: 10px;
    padding: 4px;
}

h2{
    text-align: center;
    color: white;
}

#KillerSurvBtns{
    text-align: center;
    margin: auto;    
}

.altBuilds {
    margin: 5px;
    padding: 4px;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid transparent;
    color: white;
    cursor: pointer;
    outline: none;
}

#showAllButton,
#showAllButtonSurv {
    margin: 5px;
    padding: 4px;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid transparent;
    color: white;
    cursor: pointer;
    outline: none;
    font-size: 19px;
}

.altBuilds.active,
#showAllButton.active,
#showAllButtonSurv.active {
    border: 2px solid #ffffff;
}

.altBuilds:hover,
#showAllButton:hover,
#showAllButtonSurv:hover {
    border: 2px solid #ffffff;
}

.altBuilds:not(.active):focus,
.altBuilds:not(.active):hover,
#showAllButton:not(.active):focus,
#showAllButton:not(.active):hover,
#showAllButtonSurv:not(.active):focus,
#showAllButtonSurv:not(.active):hover {
    outline: none;
}

.hidden{
    display: none;
}

.navbar-hidden{
    visibility: hidden;
}

.centeredKiller{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#character{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.divKiller{
    width: calc(100% / 6); /* Regola la larghezza dei personaggi per il layout */
    text-align: center;
    margin: 10px;
    border-radius: 10px;
    background-color: #141414; /* Mantiene lo sfondo del personaggio */
    padding: 10px;
}

.container {
    display: grid;
    grid-template-columns: 400px 400px;
    grid-gap: 65px;
    justify-content: center;
}

.divSurvivor{
    width: calc(100%); /* Regola la larghezza dei personaggi per il layout */
    text-align: center;
    border-radius: 10px;
    background-color: #141414; /* Mantiene lo sfondo del personaggio */
    padding: 10px;
    margin: 10px auto;
}

.perkSurv{
    margin-top: 20px;
}

.killer{
    width: 125px;
    margin-bottom: 10px; 
}

.perk{
    width: 75px;
}

.perk:hover{
	background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.linkKiller{
    display: block;
    margin-top: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.linkKiller:hover{
    text-decoration: underline;
}

.credits{
    margin-top: 600px;
}

.crediti{
    text-align: center;
    color: white;
    font-size: 12px;
}

#dropdownContainer {
    color: white; /* testo bianco */
    position: relative; /* posizione assoluta */
    text-align: center; /* testo centrato */
    padding: 10px; /* spazio interno */
}


#characterSelect {
    text-align: center;
    background-color: rgb(36, 36, 36);
    border: 2px solid #ffffff;
    color: white;
    padding: 5px;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}

#characterSelect option {
    background-color: rgb(36, 36, 36);
    color: white;
}

::-webkit-scrollbar{
    background-color: rgba(255, 255, 255, 0.1);
    width: 10px;
}

::-webkit-scrollbar-thumb{
    background-color: rgb(92, 91, 91);
}

/* Modal */
.modal {
    display: none; /* Nascosto per default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Riduci la larghezza del modal */
    max-width: 400px; /* Imposta una larghezza massima più piccola */
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 10px;
}

.modal-content img {
    max-width: 40%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}


@media only screen and (max-width: 2000px) {
    .divKiller .characterButtons{
        width: 100%;       
    }

    .divSurvivor .characterButtons{
        width: 100%;       
    }

    .killer{
        width: 120px;
    }

    .perk{
        width: 75px;
    }

    .centered{
        position: sticky;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 150px;
    }
}

@media only screen and (max-width: 1600px) {
    .divKiller .divSurvivor{
        width: 100%;
    }

    .killer{
        width: 110px;
    }

    .perk{
        width: 55px;
    }

    .centered{
        position: sticky;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 150px;
    }
}

@media only screen and (max-width: 956px) {
    .divKiller .characterButtons{
        width: calc(100% / 4);        
    }

    .divSurvivor .characterButtons{
        width: calc(100%/4);       
    }

    .killer{
        width: 120px;
    }

    .perk{
        width: 70px;
    }

    .centered{
        position: sticky;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 180px;
    }
}

@media only screen and (max-width: 896px) {
    .divKiller .characterButtons{
        width: calc(100% / 4);        
    }

    .divSurvivor .characterButtons{
        width: calc(100%/4);       
    }

    .killer{
        width: 110px;
    }

    .perk{
        width: 60px;
    }

    .centered{
        position: sticky;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 180px;
    }
}

@media only screen and (max-width: 776px){

    .divKiller .characterButtons{
        width: calc(100% / 4);        
    }

    .divSurvivor .characterButtons{
        width: calc(100%/4);       
    }

    .killer{
        width: 110px;
    }

    .perk{
        width: 60px;
    }

    .centered{
        position: sticky;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 210px;
    }
}

@media only screen and (max-width: 480px) {

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .divSurvivor {
        width: 90%;
        margin-bottom: 2px;
    }

    .divKiller .characterButtons{
        width: 100%;
        margin-top: 200px;
    }

    .killer{
        width: 95%;
    }

    .perk{
        width: 40px;
    }

    .centered{
        position: sticky;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 300px;
    }

    .linkKiller{
        font-size: 8px;
    }

    .characterButton{
        font-size: 12px;
    }

    .altBuilds{
        font-size: 12px;
    }
}
