@import 'main.css';
@import 'https://fonts.googleapis.com/css?family=Syncopate:700';

#challenges,
#activities {
    position: relative;
    width: 1080px;
    margin: 0 auto;
    padding: 2em 0;
    min-height: 200px;
}

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

.challenge {
    display: block;
    width: 250px;
    height: 330px;
    margin-right: 20px;
    float: left;
    color: white;
    text-decoration: none;
    position: relative;
    background: url('../app_assets/interface/achievement-off.png') 0 0 no-repeat;
    text-align: center;
}

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




.challenge.won {
    font-size: 0.6em;
    width: 150px;
    height: 168px;
    background: url('../app_assets/interface/achievement.png') 0 0 no-repeat;
    background-size: 100%
}




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


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





.challenge.locked {
    cursor: not-allowed;
    background: url('../app_assets/interface/achievement-locked.png') 0 0 no-repeat;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.7;
}


.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: #FFF;
  color: #444;
  padding: 0.2em;
  position: absolute;
  top: 180px;
  width: 86%;
  left: 6%;
  font-size: 0.9em;
  font-family: 'Nasalization', sans-serif;
}

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

.challenge .goal{
  left: 5%;
  color: #0942bc;
  border: 4px solid #ce593d;
  z-index: 5;
}


.challenge .action_container a {
    display: inline-block;
    background: #983b29;
    color: white;
    padding: 5px;
    border-radius: 5px;
    margin: 0 3px 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('../app_assets/interface/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: #9BF;
}

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

