main {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    background-color: rgb(241, 241, 241);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.215);
    width: 80%;
    max-width: 600px;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    margin-top: 20px;
}

.form-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.output-container {
    font-size: 1.2em;
    margin-top: 20px;
}

#generated-degree {
    font-weight: bold;
    font-size: 1.5em;
    color: #4CAF50;
}

.degree-circle {
    width: 200px;
    height: 200px;
    border: 10px solid #ccc;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
    background-color: #f0f0f0;
}

.degree-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 100px;
    transform-origin: 50% 50%; /* Rotate around the center */
    background-color: #4CAF50;
    transform-origin: bottom center;
    transform: rotate(0deg);
    transition: transform 0.5s ease-in-out;
    margin-left: -2px; /* Center pointer horizontally */
    margin-top: -100px; /* Center pointer vertically (adjust for height) */
}

.degree-label {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

#degree-0-360 {
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
}

#degree-90 {
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(10px);
}

#degree-180 {
    top: 110%;
    left: 50%;
    transform: translateY(-10px) translateX(-50%);
}

#degree-270 {
    top: 50%;
    left: -10%;
    transform: translateY(-50%) translateX(-20px);
}

