/* scroll personalizzato */

/* width */

::-webkit-scrollbar {
    width: 6px;
}

/* Track */

::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: var(--secondary-color);
}

/* Handle */

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

body {
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-family: "PT Sans", sans-serif;
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* SEARCH*/

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    /* sfondo semi-trasparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.search-container {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    width: 90%;
}

.search-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    outline: none;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    max-width: 500px;
    width: 100%;
}

.search-input-container:focus-within {
    border-color: var(--secondary-color);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 16px;
    background: transparent;
}

.search-submit-button,
.close-button {
    border: none;
    padding: 7px 5px;
    border-radius: 15px;
    cursor: pointer;
    width: 36px;
}

.search-submit-button {
    background: var(--primary-color);
    color: black;
    margin-right: 8px;
}

.search-submit-button:hover i {
    color: var(--secondary-color);
}

.close-button {
    background: var(--secondary-color);
    color: white;
}

.close-button:hover i {
    color: var(--primary-color);
}

/**/

.wrapper-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.wrapper {
    width: 85%;
    max-width: 1920px;
    margin: 110px auto;
}

a {
    color: var(--white-color);
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.nav-link {
    font-size: 14px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.nav-link :hover {
    color: #b19765 !important;
    text-decoration: none;
}

.active {
    color: var(--primary-color) !important;
}

.title {
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--white-color);
    text-shadow: 2px 0px 5px rgb(0, 0, 0);
}

@media (max-width: 992px) {
    .title {
        margin-top: 5px;
        font-size: 20px;
    }
}

.logo {
    width: 200px;
    height: 100px;
}

/**************************Bottoni************************/

.btn {
    border-radius: 6px;
    color: var(--white-color);
    background: var(--primary-color);
    padding: 9px 21px 10px 20px;
    text-decoration: none;
    outline: none;
}

.btn:focus .btn:active {
    outline: none;
    box-shadow: none;
}

.btn-margin {
    margin-left: 15px;
}

.btn-propiety {
    border: transparent;
    height: 38px;
    width: 97px;
    border: 1px solid #b19765;
    outline: none;
}

.btn-propiety:hover {
    background-color: #b19765;
    color: var(--secondary-color);
}

.btn-propiety:focus,
.btn-propiety:active {
    outline: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-medium {
    border: transparent;
    color: var(--primary-text-color);
    height: 40px;
    width: 150px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    padding: 10px;
    outline: none;
    font-weight: 600;
}

.btn-medium:hover {
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
}

.btn-medium:active,
.btn-medium:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 992px) {
    .btn-medium {
        width: 130px;
        padding: 8px;
    }
}

.btn-small {
    border: transparent;
    color: var(--primary-text-color);
    height: 30px;
    width: 84px;
    font-size: 13px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    padding: 5px;
    background-color: var(--primary-color);
    font-weight: 600;
}

.btn-small:focus {
    outline: none;
}

.btn-small:hover {
    color: var(--secondary-color);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    outline: none;
    box-shadow: none;
    border: 1px solid var(--primary-color);
}

.play_btn {
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
}

.play_btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/****************per Icone*******************************/

.fa-chess {
    color: var(--primary-color);
}

.far,
.fas {
    color: var(--primary-color);
}

/**/

.margin10 {
    margin-top: 10px;
}

.margin20 {
    margin-top: 20px;
}

.margin40 {
    margin-top: 40px;
}

/**/

.games_container {
    margin-top: 10px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* .games_container .row {
            width:85%;
        }*/

.games_area {
    padding-bottom: 70px;
}

.animation {
    opacity: 0;
}

/* Modal */

#contained-modal-title-vcenter {
    margin: 55px 0 0;
    color: var(--white-color);
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    width: 100%;
}

.modal-header {
    justify-content: start;
}

.modal-title {
    color: var(--black-color);
}

.modal-content {
    background-color: var(--white-color);
}

.errorArea {
    margin-top: 1rem;
}

.errorText {
    font-size: 25px;
    color: var(--black-color);
}

.error-icon {
    width: 50px;
    height: 50px;
    background: var(--bs-danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    animation: shake 0.8s ease-in-out infinite;
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.error-icon::before {
    content: '!';
    color: white;
    font-size: 24px;
    font-weight: bold;
}