body, html {
    height: 100%;
}

body > div {
    height: 100%;
}

.panel-container {
    height: 100%;
}

.step-box-container {
    /*flex: 0 0 calc(20% - 20px);*/
    position: relative;
}

.step-box-container span {
    display: block;
    padding: 5px 20px;
    background: #0068D4;
    color: #fff;
    font-size: 13px;
    border-radius: 25px;
    position: absolute;
    right: -15px;
    top: -15px;
    z-index: 1;
}

.step-box-wrap {
    display: flex;
    min-height: 100%;
    filter: url(#goo);
}

.step-box {
    background: #F39908;
    color: #FFF;
    padding: 30px 20px 30px 50px;
    position: relative;
    font-size: 20px;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
    min-height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
}

.steps-timeline {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.steps-timeline li.single-step {
    flex: 1;
}

.steps-timeline li.single-step .step-status {
    padding: 0px 40px;
    display: flex;
    justify-content: center;
    border-top: 2px solid #D6DCE0;
    position: relative;
}

.steps-timeline li.step-completed .step-status {
    border-top: 2px solid #F39908;
}

li.single-step .step-status span {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -15px;
    width: 25px;
    height: 25px;
    font-size: 1rem;
    background-color: white;
    border-radius: 25px;
    border: 1px solid #ddd;
    color: #D6DCE0;
}

li.step-completed .step-status span {
    background: #F39908;
    border: none;
    color: #FFF;
}

li.step-completed:not(:has(~ li.step-completed)) .step-status span {
    animation: pulse-animation 2s infinite;
}

li.single-step .step-status h4 {
    margin-top: 15px;
    color: #A1A7AA;
    text-wrap: nowrap;
}

li.step-completed .step-status h4 {
    color: #F39908;
}

.panel-section-title {
    font-size: 18px;
    color: #74beeb;
}

.panel-section-title::before {
    content: "\25cf";
    margin-left: 15px;
}

.panel-section-title::after {
    content: "\25cf";
    margin-right: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.menu-item-active {
    background: #f3990d;
    border-radius: 5px;
    color: #fff;
}

.menu-item:not(:first-child) {
    margin-top: 5px;
}

.mobile-menu-icon {
    position: fixed;
    background: #fff;
    color: #000;
    padding: 10px;
    border-radius: 2rem;
    z-index: 2;
}

.mobile-menu {
    position: fixed;
    background: #fff;
    padding: 10px;
    z-index: 2;
    bottom: 0;
    width: 100%;
    display: none;
    justify-content: center;
    column-gap: 2.5rem;
}

.mobile-menu-item {
    padding: 10px;
    border-radius: 6px;
}

.mobile-active-menu-item {
    background: #1a2b6d;
    color: #fff;
}

.open-profile-menu {
    display: flex;
    cursor: pointer;
    position: fixed;
    background: #2b2b2b;
    padding: 8px;
    color: #fff;
    border-radius: 2rem;
    left: 10px;
    top: 50%;
    z-index: 2;
}

.form-elements-container label {
    color: #222;
}

.highest-box {
    position: relative;
    flex: 1;
    border-radius: 10px;
    text-align: center;
}

.highest-box.firstplace {
    height: 200px;
    background: linear-gradient(180deg,rgb(255, 215, 36) 0%, rgba(0, 104, 212, 0) 98%);
}

.highest-box.secondplace {
    height: 160px;
    background: linear-gradient(180deg,rgb(192, 192, 192) 0%, rgba(0, 104, 212, 0) 98%);
}

.highest-box.thirdplace {
    height: 130px;
    background: linear-gradient(180deg,rgb(205, 127, 50) 0%, rgba(0, 104, 212, 0) 98%);
}

.highest-box .highest-profile-image {
    position: absolute;
    display: block;
    width: 90px;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.highest-box .highest-name {
    display: block;
    margin-top: 40px;
    color: #000;
}

.highest-box .highest-score {
    display: block;
    color: #000;
}

.score-box {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
}

.score-box:not(:first-child) {
    margin-top: 10px;
}

.leaderboard-container {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    width: 50%;
    margin: 0 auto;
}

.mission-card {
    background: #0068d4;
    color: #fff;
    border: none;
    height: 100%;
}

.mission-card.completed {
    background: #5e9e29;
}

.challenge-banner {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.challenge-banner img {
    filter: blur(2px);
}

.challenge-name-container {
    width: 100%;
    position: absolute;
    height: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 1.5rem;
}

.challenge-guide-container {
    text-align: justify;
    line-height: 2rem;
}

.animated-arrows {
    position: absolute;
    top: 15px;
    left: 30px;
    transform: translate(-50%, -50%);
    transform: rotate(90deg);
    cursor: pointer;
    z-index: 10;
}

.animated-arrows span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 3px solid #dbdbdb;
    border-right: 3px solid #dbdbdb;
    transform: rotate(45deg);
    margin: -10px;
    animation: arrow-animation 2s infinite;
}

.animated-arrows span:nth-child(2) {
    animation-delay: -0.2s;
}

.animated-arrows span:nth-child(3) {
    animation-delay: -0.4s;
}

.challenge-report-container .entry {
    flex-direction: column;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 5px;
}

.challenge-report-container .entry-number {
    width: 25px;
    height: 25px;
    color: #fff;
    background: #474747;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .step-boxes-container {
        flex-wrap: nowrap;
        padding: 20px 0;
        overflow-x: scroll;
    }
    
    .sidebar {
        display: none !important;
    }
    
    .profile-menu {
        display: none !important;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .panel-container {
        padding-bottom: 65px;
    }
    
    .leaderboard-container {
        width: 100%;
    }
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(243, 153, 8, 0.2);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
}

@keyframes arrow-animation {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}