/*
 * App
 */
.app {
    position: absolute;
    padding-left: 10px;
    padding-right: 10px;
    /* Make as wide as page */
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: #ddd;
}

/*
 * Header
 */
.header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    height: 50px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.header-button {
    background-color: #ccc;
    cursor: pointer;

    /* Border */
    box-sizing: border-box;
    border: 1px solid black;
    border-radius: 5px;

    /* Size */
    flex-shrink: 0;
    width: fit-content;
    padding-left: 20px;
    padding-right: 20px;

    /* Text */
    font-family: monospace;
    font-size: 16px;

    /* Text alignment */
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
}

.header-button-toggled {
    background-color: darkslategrey;
    color: white;
    box-shadow: inset 0 0 10px black;
}

.header-button:hover {
    background-color: #999;
    box-shadow: inset 0 0 10px black;
}

.header-button:active {
    background-color: darkslategrey;
    color: white;
    box-shadow: inset 0 0 10px black;
}

.header-slider {
    width: 150px;
}

.header-space {
    flex-grow: 1;
}

/*
 * Cursor
 */
.cursor-area {
    background-color: rgba(255, 0, 0, 0.5);

    /* Border */
    border-radius: 50%;

    /* Position */
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 100;

    /* Allow clicking on items below */
    pointer-events: none;
    /* cursor: none;  */
}

.cursor-area-bubble {
    background-color: rgba(0, 128, 128, 0.5);
}

.cursor-info {
    width: 150px;
    font-family: monospace;
} 

/*
 * Experiment
 */
.experiment-info {
    font-family: monospace;
}

/*
 * Board
 */
.board {
    background-color: #aaa;
    justify-content: space-between;
    position: absolute;
}

/*
 * Targets
 */
.target {
    background-color: #ccc;
    cursor: pointer;

    /* Border */
    box-sizing: border-box;
    border: 1px solid black;
    border-radius: 50%;

    /* Size */
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    position: absolute;

    /* Alignment
     * Absolute position should be based on target's center */
    left: 50%;
    transform: translate(-50%, -50%);
}

.target-target {
    background-color: red;
    box-shadow: inset 0 0 10px black;
}

.target-captured {
    background-color: #999;
    box-shadow: inset 0 0 10px black;
}

.target-pressed {
    background-color: darkslategrey;
    box-shadow: inset 0 0 10px black;
}

.target-clicked {
    background-color: limegreen;
    box-shadow: inset 0 0 10px black;
}

/*
 * Miscelaneous
 */
.hidden {
    display: none;
}
