@font-face {
    font-family: "DinkieBitmap-9px";
    src: url("DinkieBitmap-9px.woff2");
}

@font-face {
    font-family: "DinkieBitmap-9pxCode";
    src: url("DinkieBitmap-9pxCode.woff2");
}

html,
button,
select,
textarea {
    font-family: "DinkieBitmap-9px", Verdana, sans-serif;
}

.bbox {
    border: 0.25rem solid;
    padding: 0.5em;
}

.loading {
    color: grey;
}

.alpha {
    color: orangered;
}

:root {
    --heading-font-size: 32px;
}

h1 {
    font-size: var(--heading-font-size);
}

h1 input {
    font-family: "DinkieBitmap-9pxCode", Verdana, sans-serif;
    font-size: var(--heading-font-size);
    height: 1em;
    width: 90px;
    caret-color: black;
}

button {
    vertical-align: text-top;
}

.tagged {
    position: relative;
    padding-top: 2em;
}

.peer-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0.5em;
}

.peer-box {
    height: 5em;
    flex: 0 0 1;
}

.title {
    position: absolute;
    top: -0.4rem;
    left: 0.4rem;
    background-color: white;
    padding: 0 4px 0 4px;
    border: 0.25rem solid;
}

.highlight {
    background-color: yellow;
}

.progress-bar-container {
    width: 100px;
    height: 15px;
    background: white;
    border: solid;
    display: inline-block;
}

.progress-bar {
    height: inherit;
    background: black;
}

.peer-name {
    display: inline-block;
}

/* Mobile and Default Layout: Stack vertically */
.container {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Medium Screens: */
@media (min-width: 600px) {
    .container {
        flex-direction: row;
        flex-wrap: wrap;
        /* align-items: flex-start; */
        align-items: stretch;
    }

    #file-panel,
    #peer-panel {
        flex: 1 1 100%;
    }

    #code-panel {
        flex: 1 1 100%;
    }
}

/* Large Screens */
@media (min-width: 900px) {
    .container {
        flex-direction: row;
        align-items: stretch;
    }

    #file-panel {
        flex: 1 1 15%;
    }

    #peer-panel {
        flex: 1 1 35%;
    }

    #code-panel {
        flex: 1 1 15%;
        height: auto;
    }
}


button {
    /* box-shadow:inset 0px 1px 0px 0px #ffffff; */
    height: 20px;
    margin: 0 auto;
    background-color: #000000;
    /* border-radius:5px; */
    border: 1px solid #000000;
    color: #ffffff;
    display: inline-block;
}

button:hover {
    background-color: #303030;
}

button:active {
    position: relative;
    top: 1px;
}