body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;

}

.compass-container {
    position: relative;
    width: 180px;
    height: 180px;
/*    margin: 20px auto;*/
    background-size: cover;
    border-radius: 50%;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2); /* Soft shadow */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center the text inside the compass */
#mywinddirection {
    position: absolute;
    width: 35px; /* Adjusted width */
    height: 35px; /* Adjusted height */
    background-color: black; /* Black background */
    color: white; /* White text */
    font-size: 14px; /* Adjusted for smaller size */
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Circular shape */
    z-index: 2; /* Ensure it's above other elements */
    border: 2px solid white;

    /* Center it perfectly */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}




.needle {
    position: absolute;
    width: 2px; /* Thinner needle */
    height: 75px;
    background: red;
    top: 50%;
    left: 50%;
    transform-origin: 50% 90%;
    transition: transform 0.8s ease-in-out;
    transform: translate(-50%, -90%) rotate(0deg);
    border-radius: 2px;
    
    /* Soft shadow effect */
    box-shadow: 0px 0px 8px rgba(255, 0, 0, 0.6), 
                2px 2px 5px rgba(0, 0, 0, 0.3);
}

.center-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: black;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input {
    margin-top: 20px;
    padding: 8px;
    font-size: 16px;
    width: 80px;
}

button {
    padding: 8px 12px;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

button:hover {
    background-color: #0056b3;
}
