/* Mobile */
.dashboard {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-inline: 16px;
    background-color: #cae4ef;
}

.dashboard .searchIputContainer {
    display: flex;
    align-self: center;
    justify-content: flex-start;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #0d4962;
    background-color: #cae4ef;
    width: 90%;
    height: 36px;
}

.dashboard .searchIcon {
    background-image: url("http://d1gq9jzbezk7fw.cloudfront.net/d/en_US/gv/i/search_icon_back_office_v1.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 26px;
    height: 23px;
    margin-inline: 15px 10px;
}

.dashboard .searchInput {
    height: 34px;
    width: 100%;
    border-radius: 12px;
    padding-left: 5px;
    border: none;
    background-color: #cae4ef;
}

.dashboard .searchInput,
.dashboard .searchInput::placeholder {
    color: #0d4962;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.14px;
    font-family: "Metropolis Bold";
}

.dashboard .searchInput:focus {
    outline: none;
}

.dashboard .title {
    color: #0d4962;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    font-family: "Metropolis Bold";
    margin-block: 20px 15px;
}

.dashboard .mainResourcesContainer .mainResources {
    display: flex;
    min-height: 17vh;
    flex-wrap: wrap;
}

.dashboard .quickActionsContainer .quickActions {
    display: flex;
    min-height: 17vh;
    overflow-x: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.dashboard .newsContainer .news {
    height: 41vh;
    background-color: #fff;
    border-radius: 12px;
    border-radius: 12px;
    overflow-y: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.dashboard .challengesContainer .challengesHeader {
    display: flex;
    justify-content: space-between;
}

.dashboard .challengesContainer .createChallengeButton {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    width: 116px;
    background-color: #0d4962;
    border-radius: 16px;
    height: 39px;
    margin-block: 15px 15px;
    cursor: pointer;
}

.dashboard .challengesContainer .createChallengeButton .text {
    color: rgba(255, 255, 255, 0.87);
    font-family: "Metropolis Semi Bold";
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.12px;
    max-height: 18px;
    max-width: calc(100% - 45px);
    overflow: hidden;
}

.dashboard .challengesContainer .createChallengeButton .plusIcon {
    height: 25px;
    width: 25px;
    margin-right: 20px;
    border-radius: 50%;
}

.dashboard .challengesContainer .challenges {
    display: flex;
    min-height: 18vh;
    overflow-x: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.dashboard .challengesContainer .challenges .challengesMessageContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
}

.dashboard .newsContainer .news .newsMessage,
.dashboard .challengesContainer .challenges .challengesMessage {
    color: #0d4962;
    font-family: "Metropolis Bold";
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.14px;
    text-align: center;
}

.dashboard .newsContainer .news .newsMessage {
    padding-top: 38%;
}

.dashboard .challengesContainer .challenges .challengesSubMessage {
    color: #0d4962;
    font-family: "Metropolis Regular";
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.12px;
    text-align: center;
}

.dashboard .mainResourcesContainer,
.dashboard .challengesContainer .challenges .challengesMessageContainer.hide,
.dashboard .newsContainer .news .newsMessage.hide {
    display: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.dashboard .quickActionsContainer .quickActions::-webkit-scrollbar,
.dashboard .newsContainer .news::-webkit-scrollbar,
.dashboard .challengesContainer .challenges::-webkit-scrollbar {
    display: none;
}

/* iPad */
@media (min-width: 768px) and (max-width: 1023px) {
    .dashboard .searchInput,
    .dashboard .searchInput::placeholder {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.16px;
    }
    .dashboard .searchInput::placeholder {
        padding-left: 38%;
    }
    .dashboard .mainResourcesContainer {
        display: flex;
        flex-direction: column;
    }
    .dashboard .quickActionsContainer,
    .dashboard .newsContainer {
        width: 50%;
    }
    .dashboard .quickActionsContainer .quickActions {
        flex-wrap: wrap;
        max-height: 285px;
    }
    .dashboard .newsContainer {
        position: absolute;
        top: 323px;
        left: 51%;
    }
    .dashboard .newsContainer .news {
        max-width: 90%;
        height: 505px;
    }
    .dashboard .title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0.24px;
    }
    .dashboard .challengesContainer .challengesHeader {
        justify-content: flex-start;
    }
    .dashboard .challengesContainer .createChallengeButton {
        height: 48px;
        margin-left: 25px;
        width: fit-content;
    }
    .dashboard .challengesContainer .createChallengeButton .plusIcon {
        height: 30px;
        width: 30px;
    }
    .dashboard .challengesContainer .createChallengeButton .text {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: 0.16px;
        max-width: 200px;
    }
    .dashboard .challengesContainer .challenges .challengesMessage {
        font-size: 22px;
        line-height: 28px;
        letter-spacing: 0.22px;
    }
    .dashboard .challengesContainer .challenges .challengesMessageContainer {
        width: 97%;
    }
    .dashboard .newsContainer .news .newsMessage,
    .dashboard .challengesContainer .challenges .challengesSubMessage {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: 0.2px;
    }
    .dashboard .newsContainer .news .newsMessage {
        padding-top: 60%;
    }
}

/* desktop */
@media (min-width: 1024px) {
    .dashboard {
        height: auto;
        padding-inline: 0 16px;
    }
    .dashboard .title {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: 0.24px;
        margin-block: 0 15px;
    }
    .dashboard .searchIputContainer {
        display: none;
    }
    .dashboard .newsContainer {
        width: 36%;
        margin-top: 3vh;
    }
    .dashboard .newsContainer .news {
        height: 52.3vh;
    }
    .dashboard .mainResourcesContainer {
        position: absolute;
        left: 48.5%;
        top: 27vh;
        display: flex;
        flex-direction: column;
        width: 50%;
    }
    .dashboard .mainResourcesContainer .mainResources {
        display: flex;
        max-height: 24vh;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    /* Hide scrollbar for Chrome, Safari and Opera */
    .dashboard .mainResourcesContainer .mainResources::-webkit-scrollbar {
        display: none;
    }
    .dashboard .challengesContainer {
        position: absolute;
        left: 48.5%;
        top: 59vh;
        width: 50%;
    }
    .dashboard .challengesContainer .createChallengeButton {
        width: fit-content;
    }

    .dashboard .challengesContainer .createChallengeButton .text {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0.14px;
    }
}

/* ################# dark mode ################### */
.dark .dashboard {
    background-color: #031821;
}

.dark .dashboard .title {
    color: rgba(255, 255, 255, 0.87);
}

.dark .dashboard .searchIputContainer {
    border: 1px solid rgba(255, 255, 255, 0.87);
    background-color: #031821;
}

.dark .dashboard .searchInput,
.dark .dashboard .searchInput::placeholder {
    color: rgba(255, 255, 255, 0.87);
    background-color: #031821;
}

.dark .dashboard .searchIcon {
    background-image: url("http://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/search_icon_white_BO_v1.svg");
}

.dark .dashboard .newsContainer .news,
.dark .dashboard .challengesContainer .challenges .challengesMessageContainer {
    background-color: #0d4962;
}

.dark .dashboard .challengesContainer .challenges .challengesMessage,
.dark .dashboard .challengesContainer .challenges .challengesSubMessage,
.dark .dashboard .news .newsMessage {
    color: rgba(255, 255, 255, 0.87);
}
