/**** Reset ****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #484848;
    color: #f7f7f7;
    font-family: sans-serif;
}

header, footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 20px;
}

header h1 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.main__content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    max-width: 650px;
    width: 100%;
}

.container {
    width: 100%;
    padding: 30px 20px;
}

.search__box {
    background-color: #161922;
    border: 2px solid #999999;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    transition: box-shadow 0.3s ease-out;
}

.search__box:hover {
    box-shadow: 0 3px 5px 8px rgba(247, 235, 235, 0.692);
}

.search__box input {
    width: 100%;
    background-color: transparent;
    color: inherit;
    font-size: 16px;
}

.search__box button {
    text-transform: uppercase;
    font-weight: bold;
    background-color: #675afe;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.search__box button:hover {
    background-color: #3a28fa;
}

.details {
    width: 100%;
    background-color: #161922;
    border: 2px solid #999999;
    border-radius: 8px;
    padding: 20px 25px;
    margin-top: 40px;
    transition: box-shadow 0.3s ease-out;
    display: none;
}

.details:hover {
    box-shadow: 0 3px 5px 8px rgba(247, 235, 235, 0.692);
}

.profile {
    display: flex;
    width: 100%;
}

.profile__image {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
}

.profile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile__details {
    padding: 10px;
    width: 25rem;
}

.username {
    font-size: 14px;
    color: #675afe;
}

.bio {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
}

.stats {
    background-color: #20232c;
    border: 2px solid #999999;
    border-radius: 8px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

.stats__name {
    margin-bottom: 10px;
    font-weight: bold;
}

.media {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.media p {
    width: 50%;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #675afe;
}

footer span {
    text-align: center;
    font-size: 18px;
    font-weight: bold
}

/**** Responsive design ****/

@media screen and (max-width: 575px) {
    .profile {
        flex-direction: column;
        align-items: center;
    }

    .profile__details {
        width: auto;
    }

    .name, .username {
        text-align: center;
    }

    .media {
        flex-direction: column;
    }

    .media p {
        width: 100%;
        display: block;
        text-align: left;
    }
}