body {
    margin: 0;
    font-family: Annie Use Your Telescope, Arial, serif;
    font-size: 23px;
    display: flex;
    justify-content: center;
    width: 100vw;
    background: #446211 url('/grass.bmp');
}
h1, h2, h3, h4, p {
    margin: 0;
}
a {
    color:#558100;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color:#88B530;
}
header {
    display: flex;
    justify-content: left;
    color: #fff;
    user-select: none;
    font-size: 13px;
    margin-top: 2em;
}

header a, nav a {
    color: #fff !important;
    text-decoration: none;
    margin-right: 1ch;
}

header a:hover {
    text-decoration: none;
}

header:before {
    content: " ";
    background: url('/leaf.png');
    width: 31px;
    image-rendering: pixelated;
    background-size: 31px 31px;
    margin-right: 1ch;
}
nav {
    display: flex;
    flex-direction: row;
    user-select: none;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 8px;
    margin: 1ch 0;
    flex-wrap: wrap;
}

.white-wrap {
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
    flex: 1;
}

.center-wrapper {
    width: 95vw;
    max-width: 820px;
}
div.main {
    padding: 10px 10px 20px 10px;
}

.main h2 {
    font-size: 24px;
    margin: 10px 0;
}
.main p {
    font-size: 18px;
}

.grid .preview {
    width: 150px;
    height: 140px;
    cursor: pointer;
    flex-grow: 0;
}
div.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: 3;
    min-width: 25em;
    gap: 15px;
    margin-bottom: 1em;
}
.right {
    float: right;
    max-width: 45%;
}
.grid .preview img {
    margin: 2px;
    width: 146px;
    height: 115px;
    object-fit: cover;
}
.grid .preview img:hover {
    object-fit: contain;
    transition: all 1s ease-out;
}
.grid .preview h4 {
    font-size: 12px;
    line-height: 12px;
    user-select: none;
    font-weight: normal;
    margin-left: 2px;
}

.grid .none {
    opacity: 0;
    height: 0 !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

div.info {
    font-size: 16px;
    height: fit-content;
	margin-bottom: 1em;
}

div.info ul {
    padding-left: 15px;
    margin: 1ch
}

div.info h2 {
    padding: 4px 0 0 5px;
}


.notice {
    position: absolute;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000d1;
    color: #fff;
    user-select: none;
    display: none;
}

.notice.show {
    display: flex;
}

.notice h1, .notice p {
    text-align: center;
}

.notice p {
    margin: 2em 3em;
    text-align: center;
    max-width: 820px;
}

.notice .button {
    padding: 15px;
    font-size: 20px;
    border-radius: 1em;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.notice .button.exit {
    background: red;
    color: #fff;
}

.notice .button.accept {
    background: #2bbd0d;
    color: #fff;
}

.notice .button:hover {
    filter: brightness(75%);
}

.buttons {
    display: flex;
    flex-direction: row;
    user-select: none;
    font-size: 17px;
    font-weight: bold;
    color: #000;
    padding: 8px;
    margin: 2ch 5px;
    flex-wrap: wrap;
}

.buttons * {
    cursor: pointer;
}

.buttons > label {
    margin-right: 1em;
}

.white-wrap.preview.hide {
    display: none;
}

.circle {
    width: 2ch;
    height: 2ch;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5ch;
}

/* Pixel Pet */
.pet img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10ch;
    transition: margin 10s;
}

.pet.right img {
    transform: scaleX(-1);
}

@media only screen and (max-width: 850px) {
    div.grid {
        min-width: unset;
        flex: unset;
    }
    .row {
        flex-direction: column-reverse;
    }
}
