body {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

h1 {
    margin: 0;
}

h2 {
    margin-top: 0;
    color: #888;
    font-style: italic;
    font-weight: 500;
}

.emscripten {
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block
}

canvas.emscripten {
    max-width: 100%;
    max-height: calc(100% - 20px);
    object-fit: contain;
    border: 0 none;
    background-color: #000;
    flex: 1;
}

@media (min-width:1025px) {
    .page-content {
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }
}

.header {
    text-align: center;
    display: flex;
    align-content: center;
    justify-content: center;
    width: 100%;
    flex-flow: column;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer {
    left: 0;
    bottom: 0;
    display: flex;
    padding: 5px;
    align-items: center;
    flex-flow: column;
    width: 100%;
    border-top: 1px solid #ccc;
    color: #888;
    background-color: #fff;
    font-size: 0.7rem;
}

.main-area-container {
    display: flex;
    flex-flow: column;
    justify-content: center;
    flex-direction: column;
    min-height: 300px;
    flex: 1;
}

.screen {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid black;
    border-radius: 7px;
    background-color: #000;
    overflow: hidden;
}

.manual {
    margin: 20px;
    margin-top: 0;
    overflow: auto;
}
.manual>ul>li {
    margin: 0.5rem;
}
.manual>h3 {
    margin-top: 0;
}

@media (min-width:1025px) {
    .screen {
        margin: 30px;
        margin-top: 0px;
    }

    .main-area-container {
        flex-direction: row;
    }

    .manual {
        width: 30%;
        flex-grow: 1;
    }
}

.intro {
    font: 0.8rem "Verdana";
    color: #303030;
    border-left: solid 2px #cccccc;
    margin: 5px;
    margin-bottom: 15px;
    padding-left: 3px;
}

.invisible {
    display: none;
}

.game_placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}
.game_placeholder>img {
    max-width: 100%;
    object-fit: contain;
}

.game_start_btn {
    position: absolute;
    top: 0;
    background-image: url('play_button.png');
    background-repeat: no-repeat;
    background-size: 20%;
    background-position: center;
    width: 100%;
    height: 100%;
}
.game_start_btn:hover {
    background-image: url('play_button_hovered.png');
}

.toolbar {
    display: inline-flex;
    background-color: #494444;
    height: 20px;
    width: 100%;
    padding: 2px;
    align-items: center;
    justify-content: right;
    font-size: 1rem;
}

.toolbar_button {
    margin-right: 10px;
    color: #c0c0c0;
    width: 20px;
    height: 20px;
    cursor: default;
    user-select: none;
    text-align: center;
    border-radius: 4px;
}

.hide_text {
    padding-top: 50px;
}

#statusbar {
    transition-property: padding-top;
    transition-duration: 1s;
    transition-timing-function: linear;
}

.toolbar_message {
    color: white;
    flex-grow: 100;
    font: 0.8rem "Verdana";
    height: 15px;
    overflow: hidden;
}

.toolbar_button:hover {
    color: #ffc0c0;
    box-shadow: 1px 1px 3px black;
    background-color: #332c2c;
}

.game_ui {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

.main-menu {
    width: 100%;
    min-width: 380px;
}

.menu-items {
    height: 2.5rem;
    display: flex;
    margin-bottom: 20px;
    background-color: #eee;
    box-shadow: 2px 2px 8px 2px #cccccc;
    user-select: none;
}

@media (min-width:1025px) {
    .menu-items {
        padding-left: 30px;
    } 
}

.menu-btn {
    padding: 10px;
    cursor: pointer;
    color: #555;
    text-decoration: none;
}

.menu-btn:hover {
    color: #000;
    border-bottom: 3px solid #ccf;
}

.menu-btn-pressed {
    font-weight: bold;
    color: #000;
}

.menu-github-btn {
    display: flex;
    align-items: center;
    background-color: #e2e2e2;
    border-radius: 3px;
    margin: 5px;
    padding: 5px;
    margin-left: auto;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.menu-github-btn>svg {
    margin: 5px;
}

.menu-github-btn:hover {
    border: 1px solid #000;
    background-color: #c0c0cb;
}

@media (max-width:1025px) {
    .menu-github-btn>span {
        display: none;
    }
}

@keyframes glowing {
  0% {
    background-color: #a2a2a2;
  }
  50% {
    background-color: #ffffe0;
    box-shadow: 0 0 3px #2ba805;
  }
  100% {
    background-color: #a2a2a2;
  }
}

.glowing {
    animation: glowing 1300ms 1s;
    animation-iteration-count: 20;
}
