/* CSS custom properties for easier maintenance */
:root {
    --bg-primary: #1C1C1C;
    --bg-secondary: #1F2937;
    --bg-accent: #6943FF;
    --bg-card: #273549;
    --text-primary: #f0e8d5;
    --text-secondary: #fff;
    --text-accent: #CCC1FF;
    --border-accent: #B295FF;
    --hover-accent: #6943FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html,
body {
    height: 100%;
    font-family: "Inter", sans-serif;
    text-align: center;
}

body {
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
}

h1 {
    font-weight: 700;
    font-size: 28px;
}

.container {
    width: 550px;
    height: 700px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.input-container {
    background-color: var(--bg-accent);
    height: 285px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.input-container label {
font-size: small;
margin-top: 20px;
}

.output-container p {
    color: var(--text-secondary);
    font-size: 14px;
}

.output-container h2 {
    color: var(--text-accent);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.length,
.volume,
.mass {
    background-color: var(--bg-card);
    width: 500px;
    height: 110px;
    margin: 22px auto 0 auto;
    align-content: center;
}

.input {
    font-size: 58px;
    font-weight: 700;
    border: 1px solid var(--border-accent);
    width: 117px;
    border-radius: 5px;
    margin: 10px auto 30px auto;
    background: transparent;
    color: inherit;
    text-align: center;
    outline: none;
}

.input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

button {
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    transition: 0.4s ease;
    color: var(--bg-primary);
}

button:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}


/* github link */
.github-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 18px;
    height: 18px;
    color: #fff;
}

.github-button svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
    transition: color 0.3s ease;
}

.github-button:hover {
    color: #0366d6;
}