body {
    background-color: #e1eff3; /* Colore secondario chiaro */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #2c5494; /* Colore principale */
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

.search-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    transition: all 0.5s ease;
    text-align: center;
}

.search-container h1{
    font-size: 1.1rem;
}

.search-container.moved-up {
    justify-content: flex-start;
    margin-top: 20px;
}

#logo {
    height: 50px;
    margin-bottom: 20px;
}

#search-box{
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    border: 2px solid #2c5494;
    border-radius: 50px; /* Angoli molto arrotondati */
    transition: all 0.5s ease;
    background-color: #fff;
    padding: 3px;
    box-shadow: 0 0 10px rgba(44, 84, 148, 0.5);
}

#search-reset{
    cursor: pointer;
}

#search-input {
    flex-grow: 1;
    width: auto;
    padding: 10px 10px;
    border: none;
    outline: none;
    background: none;
}

/** Popup avviso */
.modal-yes-no-button{
  width: 35%;
  padding: 10px;
  font-size: 19px;
  margin: 8px;
}

/** Ricerca giochi **/
.games-results {
    margin-top: 10px;
    padding: 0 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}


.card {
    cursor:pointer;
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card:hover{
    background-color: rgb(176, 227, 247);
}

.card-img-top {
    border-radius: 15px 15px 0 0; 
    height: 120px; 
    object-fit: cover;
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}

.card-body {
    height: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/** Gioco selezionato **/
.game-container{
    margin:0 auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background-color: white;
    max-width: 800px;
    height: auto; 
}

.game-container .image{
    padding: 0;
    max-height: 200px;
    overflow: hidden;
}

.game-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.game-container .content{
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.game-container .content p{
    font-size: 0.8rem;
}

/* Sites results */

#sites-results{
    display:flex;
    justify-content: center;
}
.site-box {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Centra verticalmente il contenuto del box */
.site-box .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.btn-visit {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 16px; /* Arrotonda i bordi in fondo */
    border-bottom-right-radius: 16px;
    text-align: center;
    padding: 10px 0; /* Aggiunge spazio interno al pulsante */
    position: absolute;
    bottom: 0px;
    left: 0px;
    font-weight: bold;
 }

 .btn-visit:hover{
    background-color: #4CAF50;
    border-color: #4CAF50;
 }

.flex-grow-1 {
flex-grow: 1; /* Spinge il pulsante verso il basso */
}

/** Footer */
footer {
    /*background-color: #983857; /* Colore secondario scuro */
    background-color: #2c5494;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

footer h3{
    font-size: 0.9rem;
    font-weight: 400;
}

/** popup dei cookie */
.cookie-popup {
    position: fixed;
    bottom: -500px; 
    left: 0;
    width: 100%;
    background-color: #2c5494;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    z-index: 1000;
    transition: bottom 0.5s ease; 
}

.cookie-popup.active {
    bottom: 0; 
}

/** Icona condividi */
.share-icon{
    position: absolute; 
    top: 10px; right: 15px; 
    font-size: 20px; 
    color: #2c5494; 
    cursor: pointer;
}

/** OWL */
#owl{
    display: none;
    visibility: hidden;
    width: 2px;
    height: 2px;
    overflow: none;
}

/** loader redirect */
.dashline {
margin: 0 7px;
width: 15px;
height: 7px;
border-radius: 8px;
background: #004c94;
    box-shadow: 0 0 10px 0 #cde9ff;
}

.one {
margin-right: -10px;
transform-origin: center left;
animation: spin 3s linear infinite;  
}

.two {
transform-origin: center right;
animation: spin2 3s linear infinite;
animation-delay: .2s;
}

.three {
transform-origin: center right;
animation: spin3 3s linear infinite;
animation-delay: .3s;
}

.four {
transform-origin: center right;
animation: spin4 3s linear infinite;
animation-delay: .4s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(360deg);
    }
    30% {
        transform: rotate(370deg);
    }
    35% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin2 {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(-180deg);
    }
    35% {
        transform: rotate(-190deg);
    }
    40% {
        transform: rotate(-180deg);
    }
    78% {
        transform: rotate(-180deg);
    }
    95% {
        transform: rotate(-360deg);
    }
    98% {
        transform: rotate(-370deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes spin3 {
    0% {
        transform: rotate(0deg);
    }
    27% {
        transform: rotate(0deg);  
    }
    40% {
        transform: rotate(180deg);
    }
    45% {
        transform: rotate(190deg);
    }
    50% {
        transform: rotate(180deg);
    }
    62% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(360deg);
    }
    80% {
        transform: rotate(370deg);
    }
    85% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin4 {
    0% {
        transform: rotate(0deg);
    }
    38% {
        transform: rotate(0deg);
    }
    60% {
        transform: rotate(-360deg);
    }
    65% {
        transform: rotate(-370deg);
    }
    75% {
        transform: rotate(-360deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}