html {
    background-color: black;
}

body {
    font-family: Arial, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    margin: 0;
    color: #fff;
    overflow: auto;  /* Allows the page to be scrolled when the content exceeds the viewport height */
    padding-bottom: 100px;
    padding-top: 100px;  /* Make space for the fixed position form at the top */
    overflow-x: hidden;
}

#itemForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1em;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1em;
    position: fixed;  /* Fix the form at the top of the viewport */
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);  /* Give the form a background so it's not transparent */
    z-index: 1;  /* Ensure the form is rendered above other content */
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #1fa2ff, #12d8fa, #a6ffcb);
    transition: opacity 3s;
    z-index: -1;
    filter: brightness(12%);
}

#background.animated {
    background: radial-gradient(circle, yellow, orange, red);
    animation: swirl 2s infinite linear;
}

h1 {
    margin-bottom: 2em;
}

#manageForm {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1em;
    padding-left: 0;
    padding-right: 0;
    position: fixed;  /* Fix the form at the bottom of the viewport */
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);  /* Give the form a background so it's not transparent */
    z-index: 1;  /* Ensure the form is rendered above other content */
}

input, button {
    width: 40%;
    padding: 1em;
    margin-top: 1em;
    border: none;
    border-radius: 5px;
    font-size: 1.4em;
    margin-left: 0.5em;
    margin-right: 0.5em;
}

button.highlighted {
    transition: background-color .5s;
    background-color: orange !important;
}

input {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

button {
    color: #fff;
    background-color: #12d8fa;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

button:hover {
    background-color: #12d8fa;
}

#votingDiv {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* Allow the items to wrap onto the next line */
    align-items: center;
    justify-content: center; /* Center items on the line */
    width: 100%;
    padding: 1em;
    padding-left: 0;
    padding-right: 0;
    margin-top: 35%;
    margin-bottom: 1em;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

#votingDiv button {
    margin: 0.5em;
    flex: 0 46%; /* Each button will take roughly half the width (minus margins) */
    text-align: center; /* Center the text within the button */
}
