:root {
    --bg-secondary: #F4F3EE;
    --bg: #DAD2BC;
    --text: #463F3A;
    --link-visited: #0073e6;
    --link: #00bfe6;
}

body {
    margin: 0;
    padding: 0;
    font-family: "JetBrains Mono", monospace;
    min-height: 100vh;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    margin: 20px 0;
}

h2 {
    font-size: 1.8rem;
    margin: 10px 0;
    color: var(--text);
}

.section {
    padding: 20px;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.barbell-area,
.options {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 15px 0;
    width: 100%;
}

#barbell {
    height: 10px;
    width: 80%;
    background: #BCB8B1;
    margin: 20px auto;
    position: relative;

    display: flex;
    gap: 70%; /* set with javascript */
    justify-content: center;
    align-items: center;
}

.barbell-side {
    display: flex;
    align-items: center;
    gap: 1px;
}
.barbell-side:nth-of-type(1) {
    flex-direction: row-reverse;
}

input[type="text"], select {
    padding: 8px 12px;
    border: 2px solid var(--highlight);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    font-size: 1rem;
    transition: 200ms;
}

.barbell-area:hover,
.options:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.plate-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.plate-label input {
    display: none;
}
.plate-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.plate-shape {
    border-radius: 0.5rem;
    opacity: 1;
    transition: all 200ms ease;
}
.plate-text {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text);
}
.plate-label input:not(:checked) + .plate-shape {
    opacity: 0.4;
}
.plate-55lbs,
.plate-25kg {
    width: 45px;
    height: 90px;
    background: red;
}
.plate-45lbs,
.plate-20kg {
    width: 40px;
    height: 90px;
    background: blue;
}
.plate-35lbs,
.plate-15kg {
    width: 35px;
    height: 80px;
    background: yellow;
}
.plate-25lbs,
.plate-10kg {
    width: 25px;
    height: 70px;
    background: green;
}
.plate-10lbs,
.plate-5kg {
    width: 15px;
    height: 50px;
    background: grey;
}
.plate-5lbs,
.plate-2\.5kg {
    width: 10px;
    height: 45px;
    background: grey;
}
.plate-2\.5lbs,
.plate-1\.25kg {
    width: 8px;
    height: 30px;
    background: gray;
}
.plate-1lbs,
.plate-0\.5kg {
    width: 6px;
    height: 25px;
    background: gray;
}
.plate-0\.5lbs,
.plate-0\.25kg {
    width: 4px;
    height: 20px;
    background: gray;
}
