/* Första sektionen */
.first_section {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;    
    min-height: 80vh;         
    text-align: center;
    color: whitesmoke;
}

/* Om mig container */
.about_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 60vw;
    height: 80vh;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.first_section:hover .about_container {
    opacity: 1;
    transform: translateY(0);
}


/* Bilden på mig */
.self_img {
    width: 40%;        
    height: 100%;      
    overflow: hidden;  /* skär bort det som går utanför */
}

.self_img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fyller diven och beskär om det behövs */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.first_section:hover .self_img img {
    opacity: 1;
    transform: translateY(0);
}

/* Texten om mig brevid bilden */
.about_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    width: 40%;
}




/* Andra sektionen */
.second_section {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;    
    min-height: 120vh;         
    text-align: center;
    color: whitesmoke;
}

/* Container om gym text och bild */
.gym_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 60vw;
    height: 80vh;
}

/* Text brevid bilden */
.stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    width: 40%;
    gap: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.second_section:hover .stats {
    opacity: 1;
    transform: translateY(0);
}

/* Gym bilden */
.gym_img {
    width: 40%;        
    height: 100%;      
    overflow: hidden;  /* skär bort det som går utanför */
}

.gym_img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fyller diven och beskär om det behövs */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.second_section:hover .gym_img img {
    opacity: 1;
    transform: translateY(0);
}