body {
    background: #f0f0f0;
}

#outmostWrapper {
    display: grid;
    justify-content: center;
    justify-items: center;
    margin-top: 20px;
}

#signUpLoginBanner {
    margin: 20px 40px 0px 40px;
    /* background: #f3f1ff; */
    background: #ededff;
    display: grid;
    width: 1025px;
    max-width: calc(100vw - 80px);
    grid-template-columns: auto;
    justify-content: center;
    justify-items: center;
    text-align: center;
    box-shadow: 0 0 10px #a8a8a8;
}

#adminBanner {
    margin: 20px 40px 0px 40px;
    background: #ededed;
    width: 985px;
    max-width: calc(100vw - 120px);
    padding: 10px 20px;
    border: solid 1px lightgray;
    text-align: center;
    display: grid;
    grid-template-columns: auto;
    justify-content: space-between;
    justify-items: center;
    align-content: center;
    align-items: center;
    column-gap: 10px;
}

#adminInnerContainer {
    display: flex;
    column-gap: 20px;
    text-decoration: underline;
    color: #505050;
}

#signUpLoginBanner p {
    margin: 20px 10px;
}

#signUpLoginBanner a {
    text-decoration: underline;
}

#panels {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    justify-items: center;
    align-content: start;
    align-items: start;
    margin: 20px 40px 40px 40px;
    column-gap: 20px;
    row-gap: 20px;
}

#leftPanelOuter {
    display: grid;
    grid-template-columns: auto;
    row-gap: 20px;
    justify-content: stretch;
    justify-items: center;
}

#leftPanel {
    width: min-content;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
    row-gap: 20px;
    /* align-content: start; */
    /* align-items: start; */
}

#avatarSection {
    display: grid;
    justify-content: center;
    justify-items: center;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px #a8a8a8;
}

.generalTitle {
    text-align: center;
    margin: 10px 0 0 0;
}

#avatarSectionRank {
    text-align: center;
    margin: 0 0 10px 0;
    color: #757575;
    font-style: italic;
    display: grid;
    align-content: center;
    align-items: center;
    height: 2rem;
}

#avatarLock {
    height: 2rem;
    fill: #000000;
}

#avatarContainerPre,
#avatarContainerPost {
    width: min-content;
    margin: 0 10px;
}

#avatarContainerPre {
    border-top: solid 1px transparent;
    border-left: solid 1px transparent;
    height: 288px;
    width: 154px;
}

#avatarContainerPost {
    border-top: solid 1px transparent;
    border-left: solid 1px transparent;
}

#avatarContainerPre .avatarCell,
#avatarContainerPost .populatedAvatarCell {
    border-bottom: solid 1px #e7e7e7;
    border-right: solid 1px #e7e7e7;
}

#avatarContainerPost .populatedAvatarCell {
    border: none;
    padding-right: 1px;
    padding-bottom: 1px;
}

.avatarRow {
    display: flex;
}

.avatarCell {
    width: 12px;
    height: 4px;
    width: 3px;
    height: 3px;
    width: 6px;
    height: 5px;
    border-bottom: solid 1px transparent;
    border-right: solid 1px transparent;
}

#nextPreviousRank {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: 100%;
    column-gap: 10px;
    font-size: 0.8rem;
    margin-top: 10px;
    color: #757575;
    width: 205px;
}

.nextPreviousOption {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    align-items: center;
    white-space: nowrap;
}

#leftPanelRightSection {
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px #a8a8a8;
}

.progressBarSection {
    display: grid;
    grid-template-columns: 90px 200px;
    white-space: nowrap;
    column-gap: 10px;
    align-content: center;
    align-items: center;
}

.progressBarTitle {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.progressBarTitleEasy {
    color: var(--easy-color);
}

.progressBarTitleMedium {
    color: var(--medium-color);
}

.progressBarTitleHard {
    color: var(--hard-color);
}

.progressBar {
    display: grid;
    margin-top: 5px;
    /* width: 200px; */
    height: 10px;
    border-radius: 4px;
}

.progressBar div {
    /* opacity: 22%; */
    border-radius: 4px;
}

.progressBarEasy {
    box-shadow: 0 0 3px var(--easy-color);
}

.progressBarMedium {
    box-shadow: 0 0 3px var(--medium-color);
}

.progressBarHard {
    box-shadow: 0 0 3px var(--hard-color);
}

.easyProgressBarComplete {
    /* background: var(--easy-color); */
    background: hwb(120deg 2.75% 39.22% / 22%);
}

.mediumProgressBarComplete {
    /* background: var(--medium-color); */
    background: hsl(234.45deg 100% 48.24% / 22%);
}

.hardProgressBarComplete {
    /* background: var(--hard-color); */
    background: hwb(0deg 26.67% 3.14% / 22%);
}

.easy {
    color: var(--easy-color);
}

.medium {
    color: var(--medium-color);
}

.hard {
    color: var(--hard-color);
}

.strengthsWeaknessSectionTitle {
    font-size: 0.9rem;
    /* font-weight: bold; */
    margin: 20px 0 5px 0;
}

.problemTags,
.strengthsWeaknessWrapper {
    display: flex;
    flex-flow: wrap;
    column-gap: 5px;
    row-gap: 5px;
    margin: 0;
    line-height: 1;
}

.tagIcon,
.tagIcon:hover,
.tagIcon:focus,
.tagIcon:active {
    margin: 0;
    background: var(--tag-icon-background);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 2px;
    white-space: nowrap;
    cursor: pointer;
}

#seeHideStrengths,
#seeHideWeakness {
    font-size: 0.8rem;
    text-decoration: underline;
    margin: 0;
    color: #7f7f7f;
    padding: 4px 0;
}

#rightPanelOuter {
    display: grid;
    justify-content: center;
    justify-items: center;
    row-gap: 20px;
}

#rightPanel {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-content: start;
    align-items: start;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px #a8a8a8;
    width: min-content;
}

#recommendedProblemsTitle {
    /* font-weight: bold; */
    margin: 10px 20px 0 20px;
}

#recommendedProblemsDescription {
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    margin: 10px 20px 0 20px;
    color: #757575;
}

.problemRow,
.problemRow:hover,
.problemRow:active,
.problemRow:focus {
    width: min-content;
    display: grid;
    grid-template-columns: 400px;
    border-bottom: solid 1px rgb(225, 225, 225);
    align-items: center;
}

.problemRow:nth-last-child(1) {
    border: none;
}

.problemRow svg {
    display: inline;
    width: 1rem;
}

#recommendedProblemsLoading {
    width: calc(400px - 40px);
    padding: 0 20px;
}

.submissionRow,
.submissionRow:hover,
.submissionRow:active,
.submissionRow:focus {
    display: grid;
    grid-template-columns: calc(585px - 20px);
    border-bottom: solid 1px rgb(225, 225, 225);
    align-items: center;
}

#submissionsSectionLoading,
#submissionsSectionLoadingMobile {
    width: calc(585px - 60px);
    padding: 0 20px;
}

.submissionRow:nth-last-child(1) {
    border: none;
}

.problemTitleTags {
    display: grid;
    width: calc(100% - 40px);
    padding: 15px 20px;
    row-gap: 5px;
}

.problemTitle {
    padding: 0;
    margin: 0;
}

.difficultyStatusWrapper {
    display: grid;
    grid-template-columns: 160px 140px;
}

#submissionsSection,
#submissionsSectionMobile {
    display: grid;
    justify-content: center;
    justify-items: center;
    align-content: start;
    align-items: start;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px #a8a8a8;
    width: min-content;
}

#submissionsSectionMobile {
    display: none;
}

.submissionResultTimeWrapper {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 50px;
    white-space: nowrap;
    padding: 0 20px 20px 20px;
    margin: 0;
}

.submissionPassed {
    width: 100px;
    color: green;
    margin: 0;
}

.submissionNotAccepted {
    width: 100px;
    color: red;
    margin: 0;
}

.submissionTime {
    margin: 0;
}


.status,
.difficulty {
    display: block;
    width: calc(100% - 40px);
    padding: 15px 20px;
    padding-top: 0;
}

.difficulty {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
}

.solved,
.pending,
.attempted {
    border-radius: 50px;
    text-align: center;
    padding: 2px 0;
    font-size: 0.8rem;
    font-weight: bold;
}

.solved {
    color: var(--solved-color);
    border: solid 1px var(--solved-color);
    background: var(--solved-background);
}

.pending {
    color: var(--pending-color);
    border: solid 1px var(--pending-color);
    background: var(--pending-background);
}

.attempted {
    color: var(--attempted-color);
    border: solid 1px var(--attempted-color);
    background: var(--attempted-background);
}

#showFunctionTags,
#hideFunctionTags {
    font-size: 0.9rem;
    margin: 10px 20px;
    padding: 4px 0;
    text-align: left;
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    align-items: center;
    border-bottom: solid 1px black;
    padding-bottom: 0;
    justify-self: start;
}

#showFunctionTags p,
#hideFunctionTags p {
    margin: 0;
}

.formulaFighter1 {
    background: #00000000;
}

.formulaFighter2 {
    background: #000000;
}

.formulaFighter3 {
    background: #34BD2D;
}

.formulaFighter4 {
    background: #DAF2D0;
}

.formulaFighter5 {
    background: #397521;
}

.formulaFighter6 {
    background: #000000;
}

.formulaFighter7 {
    background: #E20000;
}

.formulaFighter8 {
    background: #C00000;
}

@media screen and (max-width: 1110px) {
    #signUpLoginBanner {
        width: 860px;
    }

    #adminBanner {
        width: 820px;
    }

    #avatarSection {
        width: 400px;
    }

    .progressBarSection {
        grid-template-columns: 90px auto;
    }

    .submissionRow,
    .submissionRow:hover,
    .submissionRow:active,
    .submissionRow:focus {
        grid-template-columns: 400px;
    }

    #submissionsSectionLoading,
    #submissionsSectionLoadingMobile {
        width: calc(400px - 40px);
        padding: 0 20px;
    }
    
    #leftPanel {
        grid-template-columns: auto;
    }
}

@media screen and (max-width: 940px) {
    #signUpLoginBanner {
        width: 585px;
    }

    #adminBanner {
        width: 545px;
    }

    #panels {
        grid-template-columns: auto;
    }

    #avatarSection {
        width: unset;
    }

    .progressBarSection {
        grid-template-columns: 90px 200px;
    }

    .submissionRow,
    .submissionRow:hover,
    .submissionRow:active,
    .submissionRow:focus,
    .problemRow,
    .problemRow:hover,
    .problemRow:active,
    .problemRow:focus {
        grid-template-columns: calc(585px - 20px);
    }

    #submissionsSectionLoading,
    #submissionsSectionLoadingMobile,
    #recommendedProblemsLoading {
        width: calc(585px - 60px);
        padding: 0 20px;
    }

    #leftPanel {
        grid-template-columns: auto auto;
    }

    #submissionsSection {
        display: none;
    }

    #submissionsSectionMobile {
        display: grid;
    }
}

@media screen and (max-width: 665px) {
    #signUpLoginBanner {
        width: 485px;
        max-width: calc(100vw - 40px);
        margin: 0px 20px 20px 20px;
    }
    
    #adminBanner {
        width: 445px;
        max-width: calc(100vw - 80px);
        margin: 0px 20px 20px 20px;
    }
    
    #panels {
        margin: 0px 20px 20px 20px;
    }

    .progressBarSection {
        grid-template-columns: 200px;
    }

    .submissionRow,
    .submissionRow:hover,
    .submissionRow:active,
    .submissionRow:focus,
    .problemRow,
    .problemRow:hover,
    .problemRow:active,
    .problemRow:focus {
        grid-template-columns: calc(485px - 20px);
    }

    #submissionsSectionLoading,
    #submissionsSectionLoadingMobile,
    #recommendedProblemsLoading {
        width: calc(485px - 60px);
        padding: 0 20px;
    }
}

@media screen and (max-width: 525px) {
    #signUpLoginBanner {
        width: 340px;
    }

    #adminBanner {
        width: 300px;
    }

    #leftPanel {
        grid-template-columns: auto;
    }

    .progressBarSection {
        grid-template-columns: 90px 200px;
    }

    .submissionResultTimeWrapper,
    .difficultyStatusWrapper {
        grid-template-columns: 160px;
    }

    .submissionRow,
    .submissionRow:hover,
    .submissionRow:active,
    .submissionRow:focus,
    .problemRow,
    .problemRow:hover,
    .problemRow:active,
    .problemRow:focus {
        grid-template-columns: calc(340px - 20px);
    }

    #submissionsSectionLoading,
    #submissionsSectionLoadingMobile,
    #recommendedProblemsLoading {
        width: calc(340px - 60px);
        padding: 0 20px;
    }
}

@media screen and (max-width: 380px) {
    .progressBarSection {
        grid-template-columns: 90px calc(100vw - 90px - 90px);
    }

    .submissionRow,
    .submissionRow:hover,
    .submissionRow:active,
    .submissionRow:focus,
    .problemRow,
    .problemRow:hover,
    .problemRow:active,
    .problemRow:focus {
        grid-template-columns: calc(100vw - 60px);
    }

    #submissionsSectionLoading,
    #submissionsSectionLoadingMobile,
    #recommendedProblemsLoading {
        width: calc(100vw - 100px);
        padding: 0 20px;
    }
}