body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh; /* Ensure body takes full viewport height */
}

.navbar {
    width: 100%;
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.navbar a {
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.social-share {
    text-align: center;
    margin-top: 10px;
}

.social-share a {
    margin: 0 5px;
    text-decoration: none;
    color: #1da1f2; /* Default color */
}

.social-share a:hover {
    color: #007bff; /* Hover color */
}

.social-share a[href*="whatsapp"] {
    color: #1da1f2; /* WhatsApp color */
}

.social-share a[href*="facebook"] {
    color: #3b5998; /* Facebook color */
}

.social-share a[href*="instagram"] {
    color: #e4405f; /* Instagram color */
}

.social-share a[href*="linkedin"] {
    color: #0077b5; /* LinkedIn color */
}

.social-share a[href*="twitter"] {
    color: #1da1f2; /* Twitter color */
}
hr {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 10px 0; /* Add some space above and below */
}

.container {
    text-align: center;
    padding: 50px 20px; /* Increased padding on top and bottom */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
    height: 450px; /* Set a specific height */
}

.spinner-container {
    position: relative;
    margin: 20px 0;
}

.spinner {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    border: 10px solid #ccc;
    position: relative;
}

.segment {
    width: 50%;
    height: 50%;
    position: absolute;
    transform-origin: 100% 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.spinner .segment:nth-child(1) { background-color: #ff6347; transform: rotate(0deg); }
.spinner .segment:nth-child(2) { background-color: #4682b4; transform: rotate(60deg); }
.spinner .segment:nth-child(3) { background-color: #ffa500; transform: rotate(120deg); }
.spinner .segment:nth-child(4) { background-color: #32cd32; transform: rotate(180deg); }
.spinner .segment:nth-child(5) { background-color: #ff69b4; transform: rotate(240deg); }
.spinner .segment:nth-child(6) { background-color: #8a2be2; transform: rotate(300deg); }

.indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 40px solid #000;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 60px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

button:hover {
    text-decoration: underline;
}

#spinButton { color: #4caf50; }
#resetButton { color: #f44336; }
#increaseSpeedButton { color: #008cba; }
#decreaseSpeedButton { color: #ff9800; }

#message, #result {
    margin-top: 20px;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        padding: 10px 0;
    }
    .navbar a {
        padding: 10px 0;
        flex: none;
    }
    .container {
        width: 90%;
    }
    .spinner {
        width: 200px;
        height: 200px;
    }
}
