/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #1e1e1e; /* Dark Gray Background */
    color: #ffffff; /* White text for contrast */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Bar */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2c2c2c; /* Dark gray for top bar */
    padding: 15px 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Adds subtle shadow */
}

#top-bar h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
}

/* Input Container */
#input-container {
    display: flex;
    align-items: center;
}

#prompt {
    width: 300px;
    padding: 10px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    outline: none;
}

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

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

/* Coin Button Styling */
#coin-display {
    margin-left: 10px;
}

#coin-button {
    background-color: #f39c12; /* Gold color for the coin button */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: not-allowed; /* Non-clickable button */
    display: flex;
    align-items: center;
}

#coin-button:disabled {
    background-color: #f39c12;
    color: white;
}

#coin-button span {
    margin-left: 5px;
}

/* Model Container */
#model-container {
    position: absolute;
    top: 60px; /* Below the top bar */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px); /* Occupies remaining space below the top bar */
    overflow: hidden;
}

/* Controls (Rotator) */
#controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: rgba(44, 44, 44, 0.9);
    padding: 15px;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#rotator {
    display: flex;
    align-items: center;
}

#rotate-degrees {
    width: 60px;
    padding: 8px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    outline: none;
}

#rotate-btn {
    padding: 10px 20px;
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#rotate-btn:hover {
    background-color: #1976D2;
}

/* Button Hover Effects */
button {
    transition: background-color 0.3s ease;
}

/* Authentication Container for Login Page */
.auth-container {
    background-color: #2c2c2c; /* Slightly lighter dark gray for the container */
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds subtle shadow for depth */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

/* Center the auth container on the login page */
body.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Heading inside the auth container */
.auth-container h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
}

/* Hanko Auth Component Styling */
hanko-auth {
    width: 100%;
    max-width: 400px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    #input-container {
        margin-top: 10px;
        width: 100%;
    }

    #prompt {
        width: calc(100% - 20px);
        margin-right: 0;
        margin-bottom: 10px;
    }

    #input-container button {
        width: 100%;
    }

    #controls {
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
    }
}
