/* Stylesheet for the TFTune WebApp.
   Author: Ethan Eddy - 2025 
*/


body {
    font-family: sans-serif;
    background: #f5f5f5;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#menu {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    min-width: 320px;
}

/* One consolidated #board block */
#board {
    display: none;
    /* hide initially */
    width: 100vw;
    height: 100vh;
    background: #fff;
    position: relative;
    touch-action: none;
}

.target {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: red;
    position: absolute;
    cursor: pointer;
    z-index: 11;
    box-shadow: 0 0 0 1px #000 inset;
}

#graphs {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid #ccc;
    background: #fafafa;
    z-index: 10;
    padding: 6px 6px 10px 6px;
    width: 260px;
}

#tpGraph {
    display: block;
    margin: 0 auto;
}

#graph {
    border-bottom: 1px solid #ddd;
}

#hint {
    position: absolute;
    left: 10px;
    top: 10px;
    background: #eef;
    border: 1px solid #99c;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 20;
    font-size: 12px;
    white-space: pre;
}

#label_id {
    position: absolute !important ;
    left: 500px;
    top: 10px;
    z-index: 21;
}

#vcur {
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
    pointer-events: none;
    z-index: 15;
}

#vcur::before,
#vcur::after {
    content: "";
    position: absolute;
    background: #111;
}

#vcur::before {
    top: -1px;
    left: -8px;
    width: 16px;
    height: 3px;
}

#vcur::after {
    left: -1px;
    top: -8px;
    width: 3px;
    height: 16px;
}

.capturing * {
    cursor: none !important;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

label {
    font-weight: bold;
}

select,
input {
    padding: 0.4rem;
    border-radius: 0.4rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    min-width: 120px;
}

button {
    margin-top: 1rem;
    padding: 0.6rem;
    font-size: 1rem;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background 0.3s;
}

#error {
    color: red;
    font-weight: bold;
}

#error-zone{
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid red;
    color: red;
    font-weight: bold;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    height: 250px;
    width: 500px;
}