@font-face {
    font-family: poxel;
    src: url(/MyFont-Regular.woff);
}

@font-face {
    font-family: oswald;
    src: url(/roboto-condensed.regular.woff);
}

body {
    margin: 0;
    padding: 0;
}

#main {
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    width: 100%;
}

#top {
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    width: 100%;
}

#navigation {
    flex: 1;
}

#volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

#volume-icon {
    font-size: 20px;
    line-height: 1;
}

#volume-slider {
    width: 100px;
    cursor: pointer;
}

.nav-button {
    font-size: 36px;
}

#scoreboard {
    background-color: maroon;
    display: flex;
    width: fit-content;
    color: white;
    border: 2px solid white;
    padding: 5px;
}

.scoreboard-text {
    font-family: oswald;
    font-size: 16px;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.middle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-clock {
    border: 2px solid white;
    text-align: center;
    width: 5ch;
    text-align: end;
}

.big-led,
.small-led {
    background-color: black;
    color: rgb(255, 218, 52);
    font-family: poxel;
    font-size: 24px;
    padding: 2px 0px 0px 4px;
    margin: 2px;
    text-align: end;
}

.small-led {
    font-size: 18px;
}

#instructions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#panel {
    font-family: oswald;
    background-color: gray;
    padding: 10px;
    border: 4px solid white;
    box-sizing: border-box;
}

.score-panel {
    border-style: solid;
    border-width: 4px;
    width: fit-content;
    border-radius: 15px;
    padding: 0px;
}

.button-row {
    display: flex;
    width: fit-content;
}

.clickable {
    cursor: pointer;
}

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

.keypad .empty-button {
    background-color: gray;
}

.button,
.black-button,
.empty-button,
.clear-button {
    border: 4px solid;
    border-radius: 10px;
    text-align: center;
    height: 55px;
    width: 55px;
    margin: 2px;
    padding: 2px;

    font-family: oswald;
    font-size: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.black-button {
    border-color: black;
}

.empty-button {
    border-color: transparent;
    margin: 2px;
    padding: 2px;
}

.clear-button {
    border-color: transparent;
    margin: 1px;
    padding: 1px;
}

.legend {
    font-size: 150%;
    text-align: center;
}

.x2-font-size {
    font-size: 24px;
}

.font-size-xx {
    font-size: 15px;
}

.larger-text-button {
    font-size: 18px;
}

/* Guidance / How To */

#how-to {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #555;
    border-radius: 10px;
    padding: 10px 24px 14px;
    background: #e8e8e8;
}

.how-to-title {
    margin: 0 0 8px 0;
    font-family: oswald, sans-serif;
    font-size: 20px;
}

#how-to-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.how-to-button {
    font-family: oswald, sans-serif;
    font-size: 16px;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #333;
    background: white;
    margin: 4px;
}

.how-to-button:hover {
    background: #d0d0d0;
}

.guidance-highlight {
    animation: guidance-pulse 0.9s ease-in-out infinite;
}

@keyframes guidance-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.guidance-tooltip-box {
    background: rgba(0, 0, 0, 0.88);
    color: yellow;
    border: 2px solid yellow;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: oswald, sans-serif;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

.guidance-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

.guidance-arrow-down {
    border-top: 14px solid yellow;
}

.guidance-arrow-up {
    border-bottom: 14px solid yellow;
}
