:root {
    --primary-color: rgb(255, 255, 255);
    --secondary-color: rgb(0, 0, 0);
    --primary-text-color: hsl(0, 0%, 0%);
    --secondary-text-color: hsl(0, 0%, 100%);
    --navbar-height: 50px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    /* overflow-x: hidden; */
    /* font-family: Arial, sans-serif; */
    background-color: var(--primary-color);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding-top: var(--navbar-height); /*Ensure content is not hidden behind the navbar*/
}
html {
    scroll-behavior: smooth;
}

html.menu-active,
body.menu-active {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.navbar {
    display: flex;
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    justify-content: space-between;
    align-items: center;
    /* background-color: #ffffff7a; */
    backdrop-filter: blur(4px);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    transition: backdrop-filter 0.3s ease;
    /* border-bottom: 3px solid #000000; */
    z-index: 1000;
}

.navbar a {
    cursor: pointer;
}

.navbar-left {
    display: flex; /* Ensure it's a flex container */
    align-items: center; /* Center items vertically */
    height: 100%;
    flex-shrink: 0; /* Prevent shrinking */
}

.navbar-left a {
    color: var(--primary-text-color);
    text-decoration: none;
    padding: 0 15px; /* Adjust horizontal padding */
    display: flex; /* Make <a> a flex container */
    align-items: center; /* Center text vertically */
    height: 100%; /* Match the height of the navbar */
}

.navbar-right {
    display: flex; /* Ensure it's a flex container */
    align-items: center; /* Center items vertically */
    height: 100%;
}

.navbar-left .home-button {
    font-weight: bold;
    font-size: 30px;
}

.navbar-center{
    display: flex; /* Ensure it's a flex container */
    align-items: center; /* Center items vertically */
    height: 100%;
    flex-grow: 1; /* Allow it to grow and take available space */
    justify-content: center; /* Center items horizontally */
    margin-right: 20px; /* Add some space to the right */
}

.navbar-center a {
    display: flex; /* Ensure <a> is a flex container */
    justify-content: center; /* Center text horizontally */
    text-align: center; /* Align text to the center */
    color: var(--primary-text-color);
    font-weight: bold;
    align-items: center;
}

.navbar-right a {
    color: var(--secondary-text-color);
    text-decoration: none;
    padding: 0 15px; /* Adjust horizontal padding */
    display: flex; /* Make <a> a flex container */
    align-items: center; /* Center text vertically */
    height: 100%; /* Match the height of the navbar */
    transition: background-color 0.3s;
}

.navbar-right a:hover {
    color: var(--primary-text-color);
    transform: scale(1.1); /* Scale the text */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for color and scaling */
    display: inline-flex; /* Ensure scaling doesn't affect layout */
    align-items: center; /* Keep the text vertically centered */
    justify-content: center; /* Center horizontally if needed */
}

.hamburger-button {
    display: none;
    margin-right: 20px;
    font-size: 1.5em;
    cursor: pointer;
}

.hamburger-button img {
    width: 30px;
    height: 30px;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: flex;
    visibility: hidden;
    opacity: 0; /* Fully transparent */
    flex-direction: column;
    position: fixed;
    top: -100%; /* Start off-screen */
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 20px;
    border-bottom: 3px solid #000000;
    transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* Smooth slide-in animation */
    z-index: 4;
    box-sizing: border-box;
    padding-top: var(--navbar-height);
}

.mobile-menu.active {
    visibility: visible; /* Make the menu visible */
    opacity: 1; /* Fully opaque */
    top: calc(var(--navbar-height) - 50px); /* Adjust this value to match the height of your navbar */
}

.mobile-menu a {
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 1.1em;
    padding: 10px 0;
    border-bottom: 1px solid var(--primary-color); /* Optional: Add separators */
}

/* Overlay Styles */
.overlay {
    display: none;
    opacity: 0;
    position: fixed;
    top: calc(var(--navbar-height) - 10px);
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    z-index: 3;
}

.overlay.active {
    opacity: 1;
    display: block;
}

@media (max-width: 768px) {
    .navbar-right {
        display: none;
        align-items: center; /* Center items vertically */
        height: 100%;
    }

    .navbar-right.active {
        display: flex;
    }

    .hamburger-button {
        display: block;
    }
}


/* Rest of the site */
/* Center everything on screen */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stack percentage and input vertically */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 150px;
}

/* Percentage above input */
.percentage {
    font-family: monospace;
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: background-color 1s ease; /* smooth transition */
    margin-bottom: 0.5rem; /* spacing above input */
}

/* Wrapper adjusts size automatically */
.colorInput-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-family: monospace;
}

/* # always inline with input */
.preColorInput {
    color: var(--secondary-color);
    font-size: 5rem;
    font-weight: bolder;
    pointer-events: none;
}

/* Input starts tiny and grows */
.colorInput {
    font-size: 5rem;
    font-weight: bolder;
    font-family: monospace;
    color: var(--secondary-color);
    background: transparent;
    border: none;
    outline: none;
    caret-color: var(--secondary-color);
    text-align: left;
    width: 0ch;          /* start very small */
    min-width: 0ch;
    transition: width 0.1s;
}
