/* Copyright R.V. Walsh 2025 all rights reserved. */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f0f0f0;
    font-family: 'Roboto', sans-serif;
}

.main-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 100%;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.grid-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; 
    flex-grow: 0;
    width: auto;
    margin: 0;
    padding: 0;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
    width: 150px;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.color-box {
    width: 52.5px;
    height: 52.5px;
    border-radius: 50%;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: transparent;
    z-index: 3;
    position: relative;
    overflow: visible;
}



.color-box[style*="background-color: blue"] {
    background-color: blue;
}

.color-box[style*="background-color: red"] {
    background-color: red;
}

.color-box[style*="background-color: black"] {
    background-color: black;
}

.color-box[style*="background-color: yellow"] {
    background-color: yellow;
}

.counter {
    color: white;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.counter-controls {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    position: absolute;
    left: -30px; 
    top: 50%;
    transform: translateY(-50%);
    gap: 0px; 
    z-index: 4;
}

.counter-controls .increment,
.counter-controls .decrement {
    width: 30px; 
    height: 30px;
    font-size: 24px; 
    font-weight: bold;
    cursor: pointer;
    color: black;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-container {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.slider {
    position: relative;
    width: 150px;
    height: 50px;
    transform: translateZ(0);
}

.background-layer {
    width: 100%;
    height: 100%;
    border: 2px solid black;
    position: absolute;
    background: linear-gradient(to right, white 50%, transparent 50%);
}

.slider[data-bg="red"] .background-layer {
    background: linear-gradient(to right, white 50%, red 50%);
}

.slider[data-bg="black"] .background-layer {
    background: linear-gradient(to right, white 50%, black 50%);
}

.slider[data-bg="yellow"] .background-layer {
    background: linear-gradient(to right, white 50%, yellow 50%);
}

.slider[data-bg="blue"] .background-layer {
    background: linear-gradient(to right, white 50%, #0000FF 50%);
}

.foreground-layer {
    width: 50%;
    height: 100%;
    background-color: white;
    border: 2px solid black;
    position: absolute;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.hole {
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid black;
    pointer-events: none;
}

.timer-display {
    font-size: 45px;
    width: 120px;
    height: auto;
    line-height: 1;
    padding: 10px 0;
    background-color: black;
    color: white;
    text-align: center;
    border: 2px solid black;
    overflow: hidden;
    white-space: nowrap;
}

.timer-display.smaller {
    font-size: 40px;
    width: 120px;
    height: auto;
    line-height: 1;
    padding: 5px 0;
}

.timer-buttons {
    display: flex;
    justify-content: space-between;
    width: 120px;
}

#start-stop-timer, #reset-timer, #start-stop-shot, #reset-shot {
    width: 55px;
    padding: 6px;
    font-size: 10px;
    cursor: pointer;
    border: 2px solid black;
    background-color: lightgray;
}


.instructions-container {
    width: 100%;
    max-width: 800px; 
    padding: 0px; 
    box-sizing: border-box;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 12px; 
    font-weight: normal;
    color: black;
    margin-top: 3px; 
}

.instructions-container p {
    margin: 0px 0; 
}


