
/* Global stylesheet */

/* these are the basic building blocks, i opted to go for basic blocks and not specific layouts to
 provide flexibility and improve reusability/readability */

:root {
    /* -- prefix for defining custom properties */
  --background-color-white:white;
  --alt-background-color-blue: #0042d7;
  --text-color-white: white;
  --alt-text-color-black: black;
  --success-color-green: green;
  --error-color-red: red;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background-color-white);
    color: var(--alt-text-color-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main{
    flex: 1;
}

/* Navigation */
nav {
    background: var(--alt-background-color-blue);
    padding: 15px 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h2 {
    color: var(--text-color-white);
    font-size: 18px;
}

.nav-links a {
    color: var(--text-color-white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* genric container and items */
.container-extra-small {   
    background: var(--background-color-white);
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
    border-radius: 8px;
}

.container-small {
    background: var(--background-color-white);
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    border-radius: 8px;
}

.container-medium {
    background: var(--background-color-white);
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    border-radius: 8px;
}

.container-large {
    background: var(--background-color-white);
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    border-radius: 8px;
}

.container-extra-large {
    background: var(--background-color-white);
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
    border-radius: 8px;
}
/* default headers sizes unless  */
h1{
    color: var(--alt-text-color-black);
    font-size: 36px;
    margin-bottom: 30px;
}

h2 {
    color: var(--alt-text-color-black);
    font-size: 28px;
    margin-bottom: 20px;
}

h3 {
    color: var(--alt-text-color-black);
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    color: var(--alt-text-color-black);
    font-size: 16px;
    margin-bottom: 30px;
}

label {
    color: var(--alt-text-color-black);
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 16px;
}

input, select, textarea {
    width: 100%;
    padding: 9px;
    margin-top: 10px;
    border: 1px solid var(--alt-text-color-black);
    border-radius: 4px;
    font-size: 14px;
}

messagebox{
    color: var(--error-color-red);
    background: var(--background-color-white);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

small {
    display: block;
    color: var(--text-color-white);
    min-height: 20px;
    font-size: 12px;
    margin-bottom: 5px;
}

/* methods for changing colors */
.change-color-alt-background-blue {
    background: var(--alt-background-color-blue);
}
.change-color-alt-text-black {
    color: var(--alt-text-color-black);
}
.change-color-text-white {
    color: var(--text-color-white);
}
.change-color-background-white {
    background: var(--background-color-white);
}
.change-color-messagebox-success {
    color: var(--success-color-green);
}
.change-color-messagebox-error {
    color: var(--error-color-red);
}

/* if something is hovered over */
.hover{
    opacity: 0.9;
}

/* puts items in a row  instead of below eachother */
.flex-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* where i want the text aligned */
.text-center {
    text-align: center;
}

/* buttons */
button {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 20%;
    padding: 11px;
    background: var(--alt-background-color-blue);
    color: var(--text-color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
td button {
    width: auto;
    padding: 6px 12px;
    font-size: 14px;
}


/* Cards */
.card {
    flex: 1;
    min-width: 250px;
    background: var(--alt-background-color-blue);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--text-color-white);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--alt-background-color-blue);
    color: var(--text-color-white);
    margin-top: auto;
}