/* Keep the footer at the bottom of the window, dark colour down to the edge, even on a short page */
body.succes-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.succes-page #succes {
    flex: 1 0 auto;
    padding-bottom: 20px;
}

body.succes-page #footer {
    flex: 0 0 auto;
}

#succes h2 {
    font-size: 32px;
    font-weight: bold;
    color: #222C37;
    text-align: center;
    padding-top: 60px;
}

.succes-intro {
    margin: 10px 0 30px;
    text-align: center;
    color: #646464;
}

.succes-summary {
    max-width: 520px;
    margin: 0 auto 40px;
    text-align: center;
}

.succes-count {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #222C37;
}

.succes-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #D5E2EC;
}

.succes-progress-bar {
    width: 0;
    height: 100%;
    background-color: #6293B8;
    transition: width 0.5s ease;
}

.succes-column {
    margin-bottom: 20px;
}

.succes-card {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 16px;
    border-radius: 10px;
    background-color: #222C37;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.succes-card .achievement-icon {
    position: relative;
}

/* Locked: washed out, grey icon, dashed frame, no description */
.succes-card.is-locked {
    border: 2px dashed #8896A3;
    background-color: #E4E8EC;
    color: #6B7885;
    box-shadow: none;
}

.succes-card.is-locked .achievement-icon {
    background-color: #B9C2CB;
    color: #ffffff;
    filter: grayscale(1);
    opacity: 0.8;
}

.succes-card.is-locked .achievement-title {
    color: #5C6874;
}

.succes-card.is-locked .achievement-description {
    font-style: italic;
    color: #8896A3;
}

.succes-lock {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #5C6874;
    color: #ffffff;
    font-size: 10px;
    line-height: 20px;
    text-align: center;
}

/* Platinum gets a golden icon once unlocked */
.succes-card.is-platinum .achievement-icon {
    background-color: #E0A800;
    color: #222C37;
}

#footer {
    margin-top: 40px;
}

.succes-reset-wrapper {
    margin-top: 30px;
}

/* Achievement targeted by the link in the notification (#<key>) */
.succes-card.is-focused {
    outline: 3px solid #6293B8;
    outline-offset: 3px;
    animation: succes-focus 1.6s ease-out 1;
}

@keyframes succes-focus {
    0% { box-shadow: 0 0 0 0 rgba(98, 147, 184, 0.9); }
    100% { box-shadow: 0 0 0 22px rgba(98, 147, 184, 0); }
}

#footer #small-lines {
    margin-top: 0;
}

@media screen and (max-width: 640px) {
    #succes h2 {
        padding-top: 40px;
    }
}
