:root {
    /* Colours - general variales */
    --col-dark: hsl(145, 100%, 15%);
    --col: hsl(145, 100%, 24%);
    --col-light: hsl(145, 60%, 65%);
    --col-lighter: hsl(145, 60%, 79%);
    --col-lightest: hsl(145, 60%, 80%);

    --col-white: hsl(0, 0%, 95%);
    --col-neutral-200: hsl(0, 0%, 90%);
    --col-neutral-300: hsl(0, 0%, 83%);
    --col-neutral-400: hsl(0, 0%, 64%);
    --col-neutral-500: hsl(0, 0%, 45%);
    --col-neutral-600: hsl(0, 0%, 32%);
    --col-neutral-700: hsl(0, 0%, 25%);
    --col-neutral-800: hsl(0, 0%, 15%);
    --col-black: hsl(0, 0%, 10%);

    /* Colours - applied variables */
    --page-background: var(--col-white);
    --header-background: var(--col);
    --header-text: var(--col-white);
    --footer-background: var(--col-neutral-200);
    --footer-text: var(--col-black);

    --heading: var(--col-dark);
    --text: var(--col-black);
    --link: var(--col);

    --cta-button: var(--col-white);
    --cta-button-background: var(--col);


    /* Other variables */
    --page-max-width: 1400px;
    --text-max-width: 75ch;
    --base-margin: 0.5em;
}

/* Reset and general styles */
* {
    /* border: 1px grey dotted; */
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    background-color: var(--page-background);

    /* Base font settings */
    line-height: 1.6;
    font-family: Roboto, sans-serif;
    color: var(--text);
}

main {
    flex-grow: 1;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 var(--base-margin);
}

section {
    margin: 2em 0;
}

.text-container {
    max-width: var(--text-max-width) ;
    margin: 0 auto;
}

/* Typography */
.center-text {
    text-align: center;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    color: var(--heading);
    margin: var(--base-margin) auto;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

p {
    margin: 0 auto;
}

a {
    color: var(--link);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

ul,
ol {
    margin-left: 1.5em;
}

blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 4px solid #ccc;
    color: #666;
    font-style: italic;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* Header */
header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--header-background);
    margin: 0 auto var(--base-margin) auto;
    padding: var(--base-margin);
    min-height: 4rem;
}

header * {
    color: var(--header-text);
}

header nav {
    width: 80%;
}

header ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    justify-content: space-around;
    margin: 0;
}
header ul li * {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer */
footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: var(--base-margin) auto 0 auto;
    width: 100%;
    background-color: var(--footer-background);
    padding: var(--base-margin);
    min-height: 3rem;
    align-items: center;
}

footer * {
    color: var(--footer-text);
}

/* HOMEPAGE */
#hero {
    text-align: center;

}

.cta-container {
    display: flex;
    justify-content: center;
    margin: 2em;
    gap: 2em;
}

.cta-button {
    border: 2px solid var(--cta-button-background);
    padding: 1em;
    text-decoration: none;
    color: var(--cta-button);
    background-color: var(--cta-button-background);
    border-radius: 2em;
    font-weight: 600;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: var(--cta-button);
    color: var(--cta-button-background);
}



















#sim-controls {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    gap: 3em;
    background-color: var(--col-neutral-200) ;
    width:fit-content;
    padding: var(--base-margin);
    border-radius: 0.5em;
}

#productTypeGroup, #parametersGroup {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    justify-content: space-around;
}
#sim-controls input {
    padding: 0.3rem;
    border-radius: 0.5em ;
}

#sim-controls button {
    padding: 0.5rem;
    border-radius: 0.5em ;
    cursor: pointer;
    background-color: var(--cta-button-background) ;
    color: var(--cta-button);
    border: 2px solid var(--cta-button-background) ;
}

#sim-controls button:hover {
    background-color: var(--cta-button) ;
    color: var(--cta-button-background);
}

.chart-container {
    width: 90%;
    max-width: 900px;
    min-height: 400px;
}