body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    color: #2c3e50;
    text-align: center;
}

.simulation-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

#simulation-area {
    position: relative;
    height: 400px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    overflow: hidden;
    margin-bottom: 20px;
}
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #34495e;
}

input, button {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 5px;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}
#help-button{
  
  border: none;
  color: white;
  
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  width:5%;
  
}
#start-btn {
    background-color: #2ecc71;
}

#stop-btn {
    background-color: #e74c3c;
}
#clear-results-btn {
    background-color: #8c8c8c;
    margin-top: 10px;
}

#clear-results-btn:hover {
    background-color: #c0392b;
  
}
#simulation-area {
    position: relative;
    height: 400px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    overflow: hidden;
    margin-bottom: 20px;
}

#cone {
    position: absolute;
    width: 40px;
    height: 60px;
   background-color: linear-gradient(to right, #E6BC97,#bf9a7a );
  background-color:  #e6bc97;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    left: 50%;
    transform: translateX(-50%);
}

#ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background-color: #8b4513;
}

#ruler {
    position: absolute;
    right: 40px;
    width: 32px;
    height: 300px;
    background: #f8f1e0;
    border: 1px solid #d4c9a8;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    cursor: move;
    z-index: 10;
    border-radius: 2px;
}

#ruler-scale {
    position: relative;
    height: 100%;
    border-left: 2px solid #333;
}

.cm-mark {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #333;
}

/* Major marks (every cm) */
.cm-mark {
    width: 8px;
}

/* Medium marks (every 5mm) */
.cm-mark.medium {
    width: 6px;
    background: #666;
}

/* Minor marks (every mm) */
.cm-mark.minor {
    width: 4px;
    background: #999;
}

/* Numbers (every cm) */
.cm-number {
    position: absolute;
    left: 12px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #333;
    transform: translateY(-50%);
}

#ruler-handle {
    position: absolute;
    left: -15px;
    top: 50%;
    width: 30px;
    height: 30px;
    background: #d4c9a8;
    opacity: 70%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: move;
    user-select: none;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.results {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #3498db;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.timer {
    font-size: 24px;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}
