body {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: 50%;
    transform: translateX(-50%);
}

#jumbo {
    width: calc(100% - 10px);
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding: 0 5px;
}

#logo {
    height: 55px;
    width: 55px;
    background-size: 65px;
    display: inline-block;
    background-image: url("/menu-icons/rascal.png");
    background-color: lightgray;
    outline: 5px solid black;
    margin-top: 5px;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

h1 {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 40px;
    margin-top: 10px;
    margin-bottom: 0;
}

nav {
    margin-top: 20px !important;
    text-align: center;
    width: calc(100% - 70px) !important;
}
nav > a {
    display: inline-block;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    width: 15%;
    text-align: center;
}

#login-menu {
    display: flex;
    gap: 10px;
    padding: 15px;
    outline: 5px solid black;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
#login-menu > #profile-picture {
    width: 32px;
    height: 32px;
    background-image: url("/menu-icons/white-rascal.png");
    background-size: contain;
}
#login-menu > #profile-name {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.2em;
    margin: 0;
    margin-top: 5px;
}
#login-menu:hover {
    background-color: lightgray;
    cursor: pointer;
}

#gallery {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}
#gallery > img {
    width: 30%;
}
#playbutton {
    margin-top: 16px;
}
.b80 {
    width: 70%;
    margin-top: 16px;
    margin-right: 0 !important;
}

#playbanner > button,
.button {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.2em;
    background-color: #2f36ff;
    padding: 8px 16px;
    color: white;
    border-radius: 12px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    outline: none;
    transition: background-color 0.2s ease-in, transform 0.2s ease-in;
    cursor: pointer;
    margin-right: 12px;
}
#playbanner > button:hover,
.button:hover {
    background-color: rgb(29, 34, 183);
    transform: scale(1.1);
}

#editorbutton {
    background-color: #666 !important;
}

#leaderboard {
    width: 550px;
    min-width: 450px;
}
#iframe-leaderboard {
    width: 100%;
    height: calc(100vh - 260px);
}

.row {
    display: flex;
    margin-top: 1.5rem;
    gap: 3rem;
}
.row > div {
    flex: 0.5;
}

.title-card {
    width: calc(100% - 4rem);
    background-color: black;
    color: white;
    font-size: 1.5em;
    padding: 1rem 2rem;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    border-radius: 1rem;
    margin: 0;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

#profile-content {
    width: calc(100% - 1rem);
    padding-left: 1rem;
}

.writeable > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
    margin-bottom: 1rem;
}
.writeable > p > a {
    text-decoration: none;
    color: #2f36ff;
}
.writeable > ul {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}
.writeable > h3 {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
    margin-bottom: 1rem;
}

.input {
    padding: 0.5rem 0;
    border: none;
    width: 100%;
    border-bottom: 5px solid #eee;
    font-size: 0.9em;
    background-color: white;
    margin-bottom: 1rem;
}
.input:focus {
    border: none;
    outline: none;
    border-bottom: 5px solid black;
}
.input-label {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    text-align: left;
    font-weight: 600;
    margin: 0;
}

.card {
    width: calc(100% - 4rem - 10px);
    border: 5px solid black;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}
.checker {
    background-image: linear-gradient(45deg, #f9f9f9 25%, transparent 25%), linear-gradient(-45deg, #f9f9f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f9f9f9 75%), linear-gradient(-45deg, transparent 75%, #f9f9f9 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
}

.card > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
}

.lsh-title {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.3em;
    margin-bottom: 1rem;
    font-weight: 600;
}

#level-select {
    margin-bottom: 3rem;
    flex: 1;
}
#level-select-title {
    width: calc(100% - 4rem) !important;
    margin-bottom: 1rem;
}
.level-row {
    display: flex;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 1.2em;
    padding-left: 1rem;
    padding-bottom: 0.4rem;
    padding-top: 0.4rem;
    width: calc(100% - 2rem);
}
.level-row-odd {
    background-color: #efefef;
    border-radius: 0.5rem;
}
.level-row > p {
    margin: 0;
}
.level-no {
    font-weight: 700;
    width: 50px;
    color: maroon;
}
.level-name {
    color: black;
    flex: 1;
}
.level-author {
    color: black;
}
.level-moves > img {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}
.level-play {
    height: 1.5rem;
    background-color: #2f36ff;
    color: white;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    outline: none;
    transition: background-color 0.2s ease-in, transform 0.2s ease-in;
    cursor: pointer;
    margin-right: 0.5rem;
}
.level-play:hover {
    background-color: #1d22b7;
    transform: scale(1.1);
}

.ind,
.move-counter {
    cursor: default;
}

.shadow {
    filter: invert(52%) sepia(7%) saturate(0%) hue-rotate(255deg) brightness(96%) contrast(96%);
    opacity: 0.7;
}

.completed {
    filter: invert(0%) sepia(99%) saturate(7466%) hue-rotate(19deg) brightness(96%) contrast(102%);
}

.golden {
    filter: invert(16%) sepia(96%) saturate(6018%) hue-rotate(244deg) brightness(102%) contrast(104%);
}

.level-moves:hover > .ind {
    display: none;
}
.level-moves:hover > .move-counter {
    display: inline-block;
}

.move-counter {
    margin: 0;
    font-size: 16px;
    display: none;
    margin-right: 10px;
    font-weight: 600;
}

#error-login {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    background-color: maroon;
    color: white;
    padding: 0.5rem 1rem;
    display: block;
    width: calc(100% - 2rem);
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border-radius: 0.5rem;
    margin-top: 0;
}

#login-note {
    margin-bottom: 0;
    color: #666;
}
#login-note > a {
    color: #2f36ff;
    text-decoration: none;
}

.small-title {
    height: 2rem;
    width: 100%;
    background-color: black;
    border-radius: 1rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    color: white;
    margin-bottom: 0.5rem;
}

#level-switcher {
    display: flex;
    justify-content: space-around;
}

.small-title > a {
    color: white;
    text-decoration: none;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin-top: 0.4rem;
}

.about-sideimage {
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    width: 240px;
    height: 240px;
    border-radius: 0.5rem;
}

#p-warning {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    text-align: left;
    margin-bottom: 1rem;
}
#p-warning > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
}
#p-warning > ul {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
}

.level-author {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.8rem;
}

.level-date {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.8rem;
    color: gray;
}

.level-diff {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.8rem;
    color: #2e35fd;
    font-weight: 600;
}

.level-diff-expert {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 0.8rem;
    color: #800000;
    font-weight: 900;
    text-decoration: underline;
}

#count-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}
.count-stars {
    text-align: center;
    user-select: none;
    cursor: pointer;
}
.count-stars > img {
    width: 20px;
    height: 20px;
}
.count-stars > p {
    margin: 0;
    font-size: 24px;
}
.filter-by {
    color: maroon;
    font-weight: 900;
}

#replay-level-name {
    margin: 0;
}
#replay-level-name > p {
    text-align: center;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    font-size: 30px;
    margin: 0;
    font-weight: 600;
}

#replay-level-stars > .level-moves {
    height: 30px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 3px dotted #ddd;
}

#replay-level-stars > .level-moves > .ind {
    height: 30px;
    width: 30px;
    margin: 0;
}

#replay-level-stars > .level-moves > .move-counter {
    font-size: 24px;
    text-align: center;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    margin: 0;
}

@media screen and (max-width: 1200px) {
    .row {
        padding: 0 2rem;
        flex-direction: column;
    }
    #leaderboard {
        width: 100%;
        height: 350px;
        min-width: 0;
        margin-bottom: 64px;
    }
    nav > a {
        font-weight: 300 !important;
    }

    h1 {
        font-size: 30px;
    }
    #logo {
        height: 45px;
        width: 45px;
        background-size: 55px;
    }
    #login-menu {
        padding: 0;
        outline: none;
        background-color: transparent;
        box-shadow: none;
        padding-top: 12px;
    }
    #jumbo {
        padding: 0 2rem;
        width: calc(100% - 4rem);
    }
    nav {
        border-radius: 0 !important;
    }
    #level-select {
        margin-bottom: 0;
    }
    #level-select-title,
    .level-row {
        width: calc(100% - 1rem);
    }

    .about-sideimage {
        margin: 0 auto;
    }
    #remove-image {
        display: none;
    }
    #show-image {
        display: block !important;
    }

    #profile-content {
        padding-left: 0;
    }
}
