body {
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    background-image: url("https://c.wallhere.com/photos/72/76/Hytale_RPG_video_games_video_game_art-1757337.jpg!d");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}


/* horloge */ 
#digital-clock {
    background-color: #ffffff;
    border-radius: 10px;
    width: 35%;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px;
    font-family: 'Open Sans Condensed', sans-serif;
     font-size: 64px;
    text-align: center;
     box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* logo reseau sociaux */
.sidebar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 50px; 
    height: 100%; 
    background-color: #ffffff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-top: 20px; 
} 

.sidebar a { 
    margin: 10px 0; 
    text-decoration: none; 
} 

.sidebar img { 
    width: 30px; 
    height:30px; 
}

/* Cadre des jeux */

.cadre-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    margin-right: 370px;
}

.cadre {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    margin: 10px;
    width: 200px;
}

.cadre img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #ddd;
}

.cadre h3 {
    margin: 10px 0;
    font-size: 1.2em;
    color: #333;
}

/* Barre de recherche pour filtrer les cadres */
.google-search-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px; 
    width: 80%;
    margin: 20px auto 10px auto;
    display: flex;
    align-items: center;
    position: relative;
}


#search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background-color: transparent;
}

.search-icon {
    position: absolute;
    right: 20px;
    width: 24px;
    height: 24px;
    opacity: 0.6;
}
#no-result-message {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
}



/* panneau jeu tendance */

.trend-box {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    padding: 20px;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(4px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    transition: background-image 1s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.trend-box h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
}

.trend-box h3 {
    font-size: 20px;
    margin: 10px 0 5px;
}

.trend-box p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.trend-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.trend-img.visible {
    opacity: 1;
}

.trend-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.trend-button:hover {
    background-color: #0056b3;
}

/* Version mobile */

@media (max-width: 768px) {
    /* Centrage général */
    body {
        padding: 10px;
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    /* Horloge */
    #digital-clock {
        width: 90%;
        font-size: 32px;
        padding: 20px;
    }

    /* Recherche */
    .google-search-box {
        max-width: 100%;
        width: 100%;
        padding: 6px 12px;
    }

    #search-input {
        font-size: 14px;
        padding: 10px;
    }

    .search-icon {
        right: 12px;
        width: 20px;
        height: 20px;
    }

    /* Cadres */
    .cadre-container {
        flex-direction: column;
        align-items: center;
    }

    .cadre {
        width: 90%;
        margin: 10px auto;
    }

    .cadre h3 {
        font-size: 1em;
    }

    /* Barre réseaux sociaux */
    .sidebar {
        flex-direction: row;
        width: 100%;
        height: auto;
        position: relative;
        justify-content: center;
        padding: 10px 0;
    }

    .sidebar a {
        margin: 0 8px;
    }

    .sidebar img {
        width: 24px;
        height: 24px;
    }

    /* Trend box */
    .trend-box {
        position: static;
        width: 100%;
        height: auto;
        box-shadow: none;
        text-align: center;
        padding: 10px;
        backdrop-filter: none;
        background-color: rgba(0, 0, 0, 0.6);
        margin-bottom: 20px;
    }

    .trend-img {
        max-height: 150px;
        width: 100%;
        object-fit: cover;
    }

    .trend-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
}

