* {
    margin: 0;
    padding: 0;
    box-sizing: 0;
}

.exercise-container {
    background-color: rgb(248, 248, 248);
    margin: 5% 0;
    padding: 2%;
}

.container-heading {
    display:flex;
    justify-content: space-between;
}


.exercise-card {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: space-around;
    width: 100%;
    gap: 3px;
}

.exercise-card.wrap {
    flex-wrap: wrap;
}

#expand-icon {
    cursor: pointer;
}

.exercise {
    flex: 0 0 calc((100% - 20px) / 5); /* För exakt 3 per rad, minus mellanrum */
    min-width: 0;
    text-align: center;
    padding: 2%;
    margin: 2% 0 0 0;
    height: 200px;
}

.exercise:hover {
    cursor: pointer;
    opacity: 0.5;
} 

.explore {
    background-color: rgb(137, 255, 255);
    border-radius: 50%;
}

.category {
    background-color: rgb(202, 255, 142);
}

.fantasy {
    background-color: rgb(255, 151, 177);
    border-radius: 25%;
  }

  .role {
    background-color: rgb(151, 255, 186);
    border-radius: 15%;
    border: 2px dotted rgb(21, 146, 94);
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* semitransparent bakgrund */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    font-size: 24px;
}

.hidden {
    display: none;
}