.wrapper {
    width: 100%;
    max-width: 600px;
}

.bookpage {
    background-color: #44643b;
    width: 100%;
    max-width: 600px;
    height: 100%;
    min-height: 700px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.center {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

html {
    cursor: url(./images/iceshock-cursor.png), auto !important;
    cursor: url(./images/iceshock-cursor.png), pointer !important;
}

body {
    background-color: white;
    background-image: url(./images/snow.gif);
    margin: 0;
    padding: 0;
    height: 100%;
    color: white;
}

a {
    cursor: url(./images/iceshock-cursor.png), auto !important;
}

.header {
    height: 100%;
    min-height: 200px;
    background-color: aqua;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    height: 100%;
    min-height: 200px;
    background: #6c9660;
    font-size: 20px;
    background: #6c9660;
    margin-top: 1;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* MAIN */
h1,
h2,
h3 {
    font-family: "Georgia", Georgia, serif;
}

.header {
    display: flex;
    font-size: 36px;
    background: #6c9660;
    margin-top: 1;
    padding: 1rem;
    margin-bottom: 1rem;
}

.header .welcome {
    flex-grow: 1;
    max-width: 80%;
    object-fit: contain;
}

.header .ornament {
    flex-grow: 1;
    margin-left: 1rem;
    max-width: 20%;
    max-height: 100px;
    object-fit: contain;
}

.post {
    background: #6c9660;
    padding: 1rem;
    margin-bottom: 2rem;
}

.post p {
    margin-top: 0;
}

.post p:last-child {
    margin-bottom: 0;
}

.post .screenshot {
    image-rendering: pixelated;
    height: 32px;
    width: 32px;
    padding: 1rem;
    border: 2px inset white;
}

.apost-footer {
    margin-top: 2rem;
    padding: 0.5rem 0;
    border-top: 1px dashed black;
    border-bottom: 1px dashed black;
}

.apost-footer div:not(:first-child) {
    margin-top: 0.5rem;
}

.apost-footer strong {
    margin-right: 0.25rem;
}

.comments-footer {
    text-align: center;
    margin-top: 0.75rem;
}

.comments-footer a {
    color: #3832F0;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: lowercase;
    text-decoration: underline;
}

.comments-footer a:not(:first-child) {
    margin-left: 2rem;
}

.comments-footer a.disabled {
    cursor: not-allowed;
    color: #555555;
}

.comments-header {
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.comments-header small {
    color: #555555;
}

.comment .author {
    background: #EFBCE7;
    height: 64px;
}

.comment .author .avatar {
    float: left;
    height: 64px;
    width: 64px;
    margin-right: 0.5rem;
}

.comment .author .user {
    color: #3832F0;
    text-decoration: underline;
    font-weight: bold;
    padding-top: 0.5rem;
}

.comment .author .user .icon {
    height: 16px;
    width: 16px;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.comment .author .user.admin {
    color: #01620c;
}

.comment .comment-body {
    padding: 0.25rem 1rem;
    background-color: #ffd5ef;
    margin-bottom: 0.5rem;
}

.comment .comment-body .deleted {
    color: #555555;
    font-family: monospace;
}

.comment .comment-body .mod {
    color: #01620c;
    font-weight: bold;
    font-family: monospace;
}

.alert {
    color: #01620c;
    background-color: #FFA9A9;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.alert img {
    float: left;
    height: 20px;
    margin-right: 0.5rem;
}

.back {
    display: inline-block;
    margin-top: 4rem;
    margin-bottom: 4rem;
    font-weight: bold;
    text-decoration: underline;
    font-size: 24px;
}

body.dark {
    color: white;
    background: black;
    background-image: none;
}

body.dark .header,
body.dark .post {
    background: #555555;
}

body.dark .header a,
body.dark .post a {
    color: #61d9ff;
}

body.dark .header {
    opacity: 0;
}

body.dark .post-footer {
    border-color: white;
}

body.dark .alert {
    background-color: #AA0000;
    color: white;
}
/* MAIN END */


/* REALLY PLAYER */
.music {
    text-align: right;
}

.really-player {
    position: relative;
    display: inline-block;
    font-family: 'Arial', Arial, sans-serif;
    height: 50px;
    width: 250px;
    max-width: 100%;
    margin-bottom: 1rem;
    background: #dedede;
    background: linear-gradient(180deg, #dedede 0%, white 28%, #c6c6c6 50%, #c6c6c6 70%, white 100%);
    cursor: url(https://cdn.custom-cursor.com/db/12630/32/undertale-noelle-holiday-and-iceshock-cursor.png), default !important;
}

.really-player audio {
    display: none;
}

.really-player .volume {
    position: absolute;
    top: 14px;
    right: 10px;
    width: 58%;
    cursor: url(https://cdn.custom-cursor.com/db/12630/32/undertale-noelle-holiday-and-iceshock-cursor.png), default !important;
}

.really-player .volume-icon {
    position: absolute;
    top: 13px;
    left: 60px;
    height: 24px;
    width: 24px;
    opacity: 0.8;
    cursor: url(https://cdn.custom-cursor.com/db/12630/32/undertale-noelle-holiday-and-iceshock-cursor.png), default !important;
}

.really-player .play-button {
    position: absolute;
    left: 5px;
    top: 5px;
    color: black;
    height: 40px;
    width: 40px;
    border-radius: 999px;
    background: none;
    box-shadow: inset 0 0 4px #c8c8c8, 0 0 8px #c8c8c8;
    border: 1px solid #b4b4b4;
    cursor: url(https://cdn.custom-cursor.com/db/12630/32/undertale-noelle-holiday-and-iceshock-cursor.png), default !important;
}

.really-player .play-button::before {
    content: "◀︎";
    transform: rotate(180deg);
    position: absolute;
    pointer-events: none;
    left: 11px;
    top: 4px;
    font-size: 24px;
}

.really-player .play-button:hover {
    cursor: pointer;
    box-shadow: inset 0 0 8px #c8c8c8, 0 0 12px #c8c8c8;
    color: blue;
}

.really-player .play-button:active {
    color: white;
    background: blue;
}

.really-player.playing .play-button::before {
    content: "=";
    transform: rotate(90deg);
    font-size: 32px;
    font-weight: bold;
    left: 11px;
    top: 1px;
}

/* REALLY PLAYER END */

.container{
  display: flex;
  gap: 10px;
  padding: 10px;
  max-width: 1050px;
  
  margin: auto;
  width: 60%;
}
section{
  background: #6c9660;
  border-radius: 7px;
}
.tools-board{
  width: 210px;
  padding: 15px 22px 0;
}
.tools-board .row{
  margin-bottom: 20px;
}
.row .options{
  list-style: none;
  margin: 10px 0 0 5px;
}
.row .options .option{
  display: flex;
  cursor: pointer;
  align-items: center;
  margin-bottom: 10px;
}
.option:is(:hover, .active) img{
  filter: invert(17%) sepia(90%) saturate(3000%) hue-rotate(900deg) brightness(100%) contrast(100%);
}
.option :where(span, label){
  color: #fff;
  cursor: pointer;
  padding-left: 10px;
}
.option:is(:hover, .active) :where(span, label){
  color: #4A98F7;
}
.option #fill-color{
  cursor: pointer;
  height: 14px;
  width: 14px;
}
#fill-color:checked ~ label{
  color: #4A98F7;
}
.option #size-slider{
  width: 100%;
  height: 5px;
  margin-top: 10px;
}
.colors .options{
  display: flex;
  justify-content: space-between;
}
.colors .option{
  height: 20px;
  width: 20px;
  border-radius: 50%;
  margin-top: 3px;
  position: relative;
}
.colors .option:nth-child(1){
  background-color: #fff;
  border: 1px solid #bfbfbf;
}
.colors .option:nth-child(2){
  background-color: #000;
}
.colors .option:nth-child(3){
  background-color: #E02020;
}
.colors .option:nth-child(4){
  background-color: #6DD400;
}
.colors .option:nth-child(5){
  background-color: #4A98F7;
}
.colors .option.selected::before{
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  height: 12px;
  width: 12px;
  background: inherit;
  border-radius: inherit;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
}
.colors .option:first-child.selected::before{
  border-color: #ccc;
}
.option #color-picker{
  opacity: 0;
  cursor: pointer;
}
.buttons button{
  width: 100%;
  color: #fff;
  border: none;
  outline: none;
  padding: 11px 0;
  font-size: 0.9rem;
  margin-bottom: 13px;
  background: none;
  border-radius: 4px;
  cursor: pointer;
}
.buttons .clear-canvas{
  color: #fff;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}
.clear-canvas:hover{
  color: #fff;
  background: #44643b;
}
.buttons .save-img{
  background: #4A98F7;
  border: 1px solid #4A98F7;
}
.drawing-board{
  flex: 1;
}
.drawing-board canvas{
  width: 100%;
  height: 100%;
}

/* Minha tentativa de deixar isso responsivo */
@media (max-width: 768px) {
    .wrapper {
        width: 90%;
    }

    .bookpage {
        min-height: 500px; 
        padding: 10px;
    }

    .header,
    .footer {
        min-height: 100px; 
        padding: 1rem; 
    }

    .post {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }

    .comments-footer a {
        margin-left: 1rem; 
        font-size: 14px; 
    }

    .container {
        flex-direction: column; 
        width: 100%; 
    }

    .tools-board {
        width: 100%; 
        margin-bottom: 1rem; 
    }

    .drawing-board {
        width: 100%; 
        height: 300px; 
    }
}

