body {
    margin: 0;
    padding: 15px;
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    user-select: none;
    box-sizing: border-box; /* Include padding and border in element's width/height */
}

.status {
    font-size: 5vw; /* Responsive font size */
    text-align: center;
    margin: 1px 0;
    height: auto;
    color: #4CAF50;
}
/* 
    canvas {
      border: 1px solid #ccc;
    } */


.metrics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.metric-box {
    background: #333;
    padding: 12px;
    border-radius: 8px;
    width: 120px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.metric-title {
    font-size: 1em;
    color: #aaa;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.5em;
    color: #fff;
}
.score {
    font-size: 2em;
    font-weight: bold;
    color: white;
    margin: 5px 0;
}


.feedback {
    color: #4CAF50;
    font-size: 5vw; /* Scales with screen size */
    text-align: center;
    margin: 20px 0;
    min-height: 10px;
}

.start-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 4vw; /* Responsive button text */
    margin-top: 5px;
    cursor: pointer;
    width: 80%; /* Scale button width */
    max-width: 300px;
    text-align: center;
}

.timer {
    font-size: 6vw; /* Scales timer font size */
    font-family: monospace;
    margin: 10px 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.timer.active {
    opacity: 1;
}

.position-indicator {
    font-size: 5vw; /* Scales with screen size */
    color: #FFA500;
    margin-top: 10px;
    text-align: center;
}
.handedness {
    margin: 5px; /* Add margin around the entire container */
  }
  input[type="radio"] {
    appearance: none; /* Remove default radio button */
    width: 16px; /* Custom size */
    height: 16px;
    border: 2px solid gray; /* Border color */
    border-radius: 50%; /* Make it circular */
    outline: none;
    cursor: pointer;
  }
  input[type="radio"]:checked {
    background-color: gray; /* Custom checked color */
    border-color: gray; /* Match border with background */
  }

  .icon-container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}
.icon-button {
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.icon-button:hover {
    transform: scale(1.05);
}
.share-icon {
    width: 24px;
    height: 24px;
}
.share-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    margin-top: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
}
.share-options.active {
    display: block;
}
.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 6px;
    color: black;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.share-option:hover {
    background: #f5f5f5;
}
.icon-container {
position: fixed;
top: 10px;
left: 10px;
display: flex;
gap: 8px;
z-index: 1000;
}
.icon-button {
cursor: pointer;
padding: 8px;
border-radius: 50%;
border: none;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
background: rgba(0, 0, 0, 0.8);
color: white;
}
.share-icon {
width: 20px;
height: 20px;
}
.share-options {
display: none;
position: absolute;
top: 100%;
left: 0;
background: white;
border-radius: 8px;
padding: 8px;
margin-top: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
min-width: 160px;
}
.share-options.active {
display: block;
}
.share-option {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
cursor: pointer;
border-radius: 6px;
color: black;
text-decoration: none;
background: none;
border: none;
width: 100%;
text-align: left;
}
.share-option:hover {
background: #f5f5f5;
}

@media (max-width: 768px) {
.icon-container {
top: 10px;
left: 10px;
gap: 8px;
}
.icon-button {
padding: 8px;
}
.share-icon {
width: 20px;
height: 20px;
}
.share-options {
min-width: 160px;
}}

/* Media queries for small devices */
@media (max-width: 600px) {
    body {
        padding: 10px; /* Reduce padding on smaller screens */
    }

    .start-btn {
        padding: 10px; /* Smaller button padding */
        font-size: 6vw;
    }

    .metrics {
        padding: 10px;
    }
}