
#challenges,
#activities {
    position: relative;
    width: 1080px;
    margin: 0 auto;
    
}

#activities {
    padding: 2em 0;
    min-height: 200px;
}

@media (width <= 1100px) {
    #challenges,
    #activities {
        width: 810px;
    }
}


.challenge {
    display: block;
    width:  250px;
    height: 270px;
    margin-right: 20px;
    float: left;
    color: white;
    text-decoration: none;
    position: relative;
    text-align: center;
    transition-property: transform;
    transition-duration: 0.2s;
}

.challenge:hover {
    transform: scale(1.06);
}


.challenge .image{
    margin: 10px;
    width:  230px;
    height: 230px;
    border-radius: 50%;
    background-image: url('https://explorers-assets.toxicode.fr/app-assets/badge-landscape-gray.jpg');
    background-size: cover;
    outline: 2px solid #465163;
    outline-offset: 4px;
    transition-property: outline-color;
    transition-duration: 0.2s;
}


.challenge:hover .image {
    outline-color: #d1d9ef;
}


.challenge.won {
    font-size: 0.6em;
    width:  150px;
    height: 168px;
}

.challenge.won .image{
    margin: 6px;
    width:  138px;
    height: 138px;
    background-image: url('https://explorers-assets.toxicode.fr/app-assets/badge-landscape.jpg');
    outline: 1px solid #465163;
    outline-offset: 3px;
}


.challenge.won:hover .image {
    outline-color: #acbdd9;
}



.challenge .link {
    display: block;
    width: 100%;
    height: 250px;
    color: white;
    text-decoration: none;
}


.challenge.won .link{
    height: 170px;
}





.challenge.locked {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 1;
}

.challenge.locked .link{
    color: #d3d3d3;
}

.challenge.locked .image{
    background-image: url('https://explorers-assets.toxicode.fr/app-assets/badge-landscape-locked.jpg');
    outline: 2px solid #2f2f2f;
}

.challenge.special .link{
    color: white;
}




.challenge .name {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 30px;
    text-align: center;
    font-family: Syncopate, sans-serif;
}


.challenge.won .name{
    top: 48px;
    padding: 0 18px;
}


.challenge .description {
    position: absolute;
    top: 250px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    text-align: center;
}

.challenge.won .description{
    top: 150px;
    padding: 0 12px;
}

.challenge .path_through_goal,
.challenge .goal{
  display: none;
  background: #FFFFFF;
  color: #0e1928;
  padding: 0.2em;
  width: 86%;
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: 0.9em;
  font-family: Nasalization, sans-serif;
  border: 1px solid #0b1a2d;
}

.challenge.won .path_through_goal,
.challenge.won .goal{
  top: 100px;
}

.challenge .goal{
  color: white;
  padding: 4px;
  z-index: 5;
  font-size: 1em;
  background: #c85139;
}


.challenge .action_container a {
    display: inline-block;
    background: #983b29;
    color: white;
    padding: 5px;
    border-radius: 5px;
    margin: 0 3px 3px;
    text-decoration: none;
}

.challenge .action_container {
    color: #ce593e;
}




.activity {
    display: block;
    width: calc(50% - 20px);
    height: 200px;
    margin-right: 20px;
    float: left;
    color: white;
    text-decoration: none;
    position: relative;
    background: url('https://explorers-assets.toxicode.fr/app-assets/activity.png') 0 0 no-repeat;
    background-size: 128px auto;
}

.activity:nth-child(even) {
  top: 100px;
}

.activity .link {
    padding-left: 135px;
    display: block;
    color: white;
    text-decoration: none;
}

.activity .name{
    font-size: 1.7em;
    font-family: Nasalization, sans-serif;
    padding-bottom: 0.3em;
    text-shadow: #AAAAFF 0 0 4px;
}

.activity:hover .name{
    transform: scale(1.2, 1.2) translateX(2rem);
}

.activity:hover .description{
    text-shadow: #AAAAFF 0 0 4px;
}


/* for students info */
#students_infos{
  padding: 3em;
}

#students_infos h2{
  font-size: 1.5em;
  padding: 0.5em 0;
}

#students_infos a{
  color: #99BBFF;
}

#students_infos a:visited{
  color: #887799;
}

