/* +++++++ General Page ++++++ */

* {
    box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f3f6;
  color: #333;
  font-family: Arial, sans-sherif;
}

/* +++++++ Main Profile ++++++ */

.profile {
    width: 900px;
    max-width: 95%;
    margin: 40px auto;
    background: white;
    border: 1px solid #ddd;
}

/* +++++++ Profile Header ++++++ */

.profuke-header {
    display: flex;
    gap: 50px;
    padding: 40px;
    align-items: center;
}

.profile-picture img{
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

profile-info {
    flex: 1;
}

profile-info h1{
    margin-top: 0;
    font-size: 28px;
}

/* +++++++ stats ++++++ */

.stats {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.stats div {
    display: flex;
    gap: 6px;
}

.stats strong {
    font-size: 18px;
}

.stats span {
    color: #777;
}

/* +++++++ bio ++++++ */

.bio {
  line-height: 1.6;
  color: #555;
}

/* +++++++ navigation ++++++ */

.navigation {
    display: flex;
    justify-content: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.navigation a {
    padding: 18px 35px;
    text-decoration: none;
    color: #555;
}

.navigation a:hover {
    background: #f4edf3;
}

/* +++++++ character grid ++++++ */

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
}

.character {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
}

.character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.character:hover img {
    transform: scale(1.05);
}

.character span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 12px;

    color: white;
    background: rgba(0, 0, 0, 0.6);

    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.character:hover span {
    opacity: 1;
}

/* +++++++ phone ++++++ */

@media (max-width: 600px) {

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-picture img {
        width: 130px;
        height: 130px;
    }

    .stats {
        justify-content: center;
    }

    .navigation a {
        padding: 15px;
    }

}