/*
Author: Neil Paul
Date: May 2025

Define the stylistic rules for the BMI Calculator website.
*/

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Rubik";
    color: white;
}

html {
    background-color: black;
}

.web-page {
    display: grid;
    place-items: center;
    background-color: black;
    height: 100vh;
}

.content {
    z-index: 1;
}

.gradient-outer-background {
    position: fixed;
    margin: auto;
    height: 100%;
    width: 100%;
    z-index: 0;
    inset: 0;
    opacity: 0.5;
    filter: blur(200px);
}

.gradient-inner-background {
    position: absolute;
    margin: auto;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    inset: 0;
    transform: scale(0.75);
    min-width: 800px;
    border-radius: 10000px;
}

.gradient-colors {
    position: absolute;
    margin: auto;
    width: 100vw;
    height: 100vh;
    inset: 0;
    /* background: conic-gradient(from 0deg, #de4928, #ff751f, #ebd217, #6fda1c,
        #1e97e7, #1629ba, #7019e2, #ff1ca1,#de4928); */
    background: conic-gradient(from 0deg, #cf3217, #cfb017, #17cf63, #17a7cf, #7c17cf, #cf3217);
    animation: spinBlob 15s linear infinite;
}

@keyframes spinBlob {
    0% {
        transform: rotate(0deg) scale(2);
    }
    100% {
        transform: rotate(1turn) scale(2);
    }
}

.container {
    max-width: 750px;
}

.section-container {
    display: flex;
    align-items: center;
}

.subheading-text {
    font-size: 1.25em;
    font-weight: bold;
    margin: 1em 0 1em 0;
    width: 50%
}

.interactive-element {
    margin: auto 0 auto 0;
    height: 2em;
    border: 3px solid #303030;
    border-radius: 2em;
    background-color: black;
    text-align: center;
}

.interactive-element:hover {
    background-color: #303030;
}

.selector {
    width: 20em;
}

option {
    background-color: #303030;
}

#reset-button {
    width: 5em;
}

input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    width: 5em;
}

.main-heading {
    text-align: center;
}

.main-heading-text {
    margin: .25em;
    font-size: 4em;
}

.calculator-body {
    background-color: #00000080;
    margin: 2em 0 2em 0;
    padding: 1em 3em 1em 3em;
    border-radius: 2em;
}

.units-text {
    margin: auto 0 auto .5em;
    min-width: 5em;
}

#bmi-display {
    font-size: 2em;
    margin: auto 0 auto 0;
    min-width: 4.85em;
}

#weightclass-text {
    margin: auto 0 auto 0;
    font-weight: bold;
}

.categories-container {
    margin: auto;
    max-width: 550px;
    text-align: center;
}

.categories-heading-text {
    font-size: 2em;
    margin: 0 auto .5em auto;
}

.category-row {
    display: flex;
    margin-bottom: 1em;
}

.category-name {
    width: 50%;
    text-align: left;
}

.category-bmi {
    width: 50%;
    text-align: right;
}

#author {
    font-weight: bold;
    text-decoration: none;
    margin: 2em;
}

.bmi-unknown {
    font-weight: lighter;
}

.color-blue {
    color: #17a7cf;
}

.color-green {
    color: #17cf63;
}

.color-yellow {
    color: #cfb017;
}

.color-red {
    color: #cf3217;
}