@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');
body {
    background-color: #1a1a1a;
    margin: 0px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    --mainFont: Lato, Helvetica, Arial
}

p, h1, h2 {
    color: white;
    font-family: var(--mainFont);
    margin-bottom: 0px;
    margin-top: 0px;
    width: fit-content;
}

p {
    font-size: 20px;
}

h1 {
    font-weight: 800;
    font-size: 40px;
}

h2 {
    font-weight: 600;
    font-size: 26px;
}

.header {
    margin-top: 10px;
    max-width: 90%;
    text-align: center;
}

#levels {
    width: 100%;
    min-width: 420px;
    margin: 25px 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#levels .level {
    width: 500px;
    height: 210px;
    border: 2px solid white;
    border-radius: 10px;
    background-color: #111111;
    padding: 10px 0px 0px 10px;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    cursor: pointer;
    transition-duration: 0.1s;
}

#levels .level.flipped {
    background-color: #222222
}

#levels .level.checked {
    opacity: 33%;
    border-color: cyan;
}

#levels .level:hover {
    background-color: #2a2a2a;
}

.level .diffBox {
    width: 85px;
    margin-right: 20px;
    margin-top: 5px;
    justify-content: flex-start;
}

.level .diff {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 4px;
}

.level .star {
    width: 22px;
    margin-left: 4px;
}

.level .coin {
    width: 20px;
    margin-top: 5px;
    margin-right: -4px;
}

.level .name {
    white-space: nowrap;
    margin-bottom: 8px;
}

.level.checked .name {
    color: cyan;
}

.list {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    white-space: nowrap;
}

.list p {
    font-size: 18px;
}

.list .listImg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 5px;
}

.levelCheck {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: black;
    border-radius: 10px;
    border: 2px solid #aaaaaa;
    transition-duration: 0.1s;
}

.levelCheck:hover {
    border-color: white;
    scale: 1.05;
}

.levelCheck img {
    pointer-events: none;
    user-select: none;
    position: absolute;
    bottom: -3px;
    left: -4px;
    width: 40px;
    height: 40px;
}

.level:not(.checked) .levelCheck img {
    display: none;
}

.flex, .sideFlex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sideFlex {
    flex-direction: row;
}

.listInfo {
    width: 100%;
    overflow-y: auto;
    height: 160px;
    padding-bottom: 10px;
}

.levelInfo p, .listInfo p {
    margin-bottom: 8px;
}

.grey {
    color: #888888
}

.yellow {
    color: yellow;
}

.orange {
    color: #ff8000;
}

.blue, a, a:visited {
    color: cyan !important
}

@media screen and (max-width: 600px) {
    h1 { font-size: 38px; }
    h2 { font-size: 28px; }
    .barBox { width: 90%; max-width: var(--barWidth); }
}