main {
    display: flex;
    height: 500px;
    justify-content: center;
    transform: translateX(-115px);
}

.sidebar {
    width: 230px;
    height: 94%;
    background-color: var(--black);
    border: 1px solid var(--purple);
    border-radius: 5px;
    overflow-y: auto;
}

.sidebar h1, .sidebar p, .sidebar input {
    margin: 15px;
}
.sidebar p:last-of-type {margin-bottom: 5px;}

.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

label {
    display: block;
}

h1 {
    font-size: 22px;
}

.main-content {
    width: 500px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#entry {
    width: 400px;
    background-color: var(--black);
    border: 1px solid var(--purple);
    border-radius: 5px;
    display: block;
}

#entry-text {
    margin: 15px;
    word-wrap: break-word;
}

#entry-image {
    width: 95%;
    display: none;
    margin: auto;
    margin-bottom: 15px;
}

#entry-image.visible {
    display: block;
}

#next-button {
    width: 190px;
    margin-top: 10px;
}

#warning {
    margin-bottom: 0;
    width: 70%;
    text-align: center;
    display: none;
}

#warning.visible {
    display: block;
    animation: agh 0.2s 1;
}

.topbar {
    height: 25px;
    width: 100%;
    border-bottom: solid 1px var(--purple);
    background: linear-gradient(to right, var(--black), #1B0D28);
    position: sticky;
    top: 0;
    overflow: hidden;
}

.topbar > img {
    position: absolute;
    right: -5px;
    pointer-events: none;
    user-select: none;
}

ul {
    list-style-position: inside;
    padding-left: 0;
    list-style-type: none;
    text-align: center;
}

#reset {
    width: 80%;
    display: block;
    margin: auto;
    margin-bottom: 15px;
}

button {
    border-radius: 5px;
    background-image: var(--gradientbg);
    border-width: 1px;
}

button:hover, button:focus {
    border-color: var(--yellow);
    outline: none;
    letter-spacing: normal;
    text-decoration: underline;
}

#rei {
    position: absolute;
    height: 330px;
    right: -30px;
    pointer-events: none;
    animation: rei-float 6s infinite alternate ease-in;
    user-select: none;
}

#this-guy {
    height: 330px;
    position: relative;
    left: -150px;
    top: -75px;
    pointer-events: none;
    user-select: none;
}

@keyframes rei-float {
    from {transform: translateY(8px)}
    to {transform: translateY(-8px)}
}

@keyframes agh {
    0% {transform: translateX(-2px)}
    33% {transform: translateX(2px)}
    66% {transform: translateX(0px)}
}

/* mobile */
@media screen and (max-width: 968px) {
    main {
        transform: none;
        justify-content: flex-start;
    }

    #rei {
        right: 4%;
    }
}

@media screen and (max-width: 860px) {
    #rei {
        display: none;
    }

    main {
        margin-top: 50px;
    }
}

@media screen and (max-width: 670px) {
    main {
        flex-direction: column-reverse;
        align-items: center;
        flex-basis: content;
        margin-top: 5%;
    }

    .sidebar {
        height: auto;
        min-height: 500px;
        width: 300px;
        transform: translateY(-40px);
    }

    .main-content {
        height: auto;
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    #entry {
        width: 95%;
    }

    .sidebar {
        width: 95%;
    }

    #this-guy {
        left: -30%;
        top: -20px;
    }
}