/* 
  Author: Connor Kippes

  General CSS for all pages.
*/

/* import for roboto font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;600&display=swap");

:root {
    --footer-bg-color: rgb(240, 240, 240);
    --main-bg-color: white; /* white background to not take away from art and for a clean, modern look */
    --text-color: rgb(
        100,
        100,
        100
    ); /* medium gray for text to not be easy to read and not harsh on the eyes */
    --accent-color: #5faba8; /* Teal - calm, creative, modern */ /* Alternate Color: #8FAE92; /* Sage Green*/
    --green: #5fa86a;
    --yellow: #d4c42a;
    --orange: #d4722a;
    --red: #c43a3a;

    /* dark theme */
    /*
    --footer-bg-color: rgb(31, 31, 31);
    --main-bg-color: rgb(26, 26, 26);
    --text-color: white;
    --accent-color: #8FAE92;
    */

    /* old theme- blue, green */
    /*
    --footer-bg-color: #154851;
    --main-bg-color: #237a85; 
    --text-color: #e0ffd6;
    --accent-color: #baf8a0;
    */

    --ff: "Roboto";
    --h1: bold 3rem/3.5rem var(--ff);
    --h2: bold 2rem/2.5rem var(--ff);
    --h3: bold 1.5rem/1.875rem var(--ff);
    --big-p: 1.3125rem/1.875rem var(--ff);
    --links: bold 1.125rem/1.125rem var(--ff);
    --p: 1.125rem/1.875rem var(--ff);
    --button-text: 1.5rem/1.5rem var(--ff);
    --subtext: 0.84375rem/1.25rem var(--ff);

    --box-shadow: 0.5rem 0.5rem 1rem rgba(0, 0, 0, 0.3);
    --box-shadow2: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

/*-------debugging--------*/

/*
* {
  outline: 1px solid red;
}
*/

/*-------layout--------*/
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: var(--ff);
    font-weight: 300;
}

#page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    min-height: 100vh;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

main {
    margin: 7.8125rem auto;
    max-width: 67.5rem;
    flex-grow: 1;
}

/*------Typography---*/

h1 {
    font: var(--h1);
    color: var(--accent-color);
}
h2 {
    font: var(--h2);
    color: var(--accent-color);
}
h3 {
    font: var(--h3);
    color: var(--text-color);
}
p {
    font: var(--p);
    color: var(--text-color);
}
.big-p{
    font: var(--big-p);
    color: var(--text-color);
}
.subtext {
    font: var(--subtext);
    color: var(--text-color);
}
a {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    text-decoration: underline;
}

/*---helper----*/
.center-text {
    text-align: center;
}
.hover-shadow {
    transition: box-shadow 0.3s ease;
}
.hover-shadow:hover {
    box-shadow: var(--box-shadow);
    cursor: pointer;
}
.big-spacer {
    height: 3rem;
}
.small-spacer{
    height: 1rem;
}
.none {
    display: none !important;
}
.bold {
    font-weight: bold !important;
}

.bg-green{
    background-color:var(--green) !important;
}
.bg-yellow{
    background-color:var(--yellow) !important;
}
.bg-orange{
    background-color:var(--orange) !important;
}
.bg-red{
    background-color:var(--red) !important;
}

.text-green{
    color:var(--green) !important;
}
.text-yellow{
    color:var(--yellow) !important;
}
.text-orange{
    color:var(--orange) !important;
}
.text-red{
    color:var(--red) !important;
}

.icon {
    min-width: 2.25rem;
    width: 2.25rem;
    min-height: 2.25rem;
    height: 2.25rem;
    fill: var(--text-color);
    transition:
        transform 0.2s ease,
        fill 0.2s ease;
    cursor: pointer;
}

.text-input {
    width: 100%;
    padding: .5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font: var(--big-p);
    font-weight:500;
    color: var(--text-color);
    background: var(--main-bg-color);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.text-input:focus {
    font: var(--big-p);
    outline: none;
    border-color: rgba(10, 102, 194, 0.5);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}
.text-input::placeholder {
    font: var(--big-p);
}



/*--------Element changes----------*/
button {
    border: none;
    width: 275px;
    height: 50px;
    max-width: 100%;
    background-color: var(--accent-color);
    color: var(--main-bg-color);
    font: var(--button-text);
    text-align: center;
}
button:hover {
    filter:brightness(1.1);
}
img {
    max-width: 100%;
}

/* -----------Toast---------*/
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: min(10rem, 15rem);
    display: flex;
    flex-direction: column-reverse; /* newest at bottom */
    gap: 1rem;
    z-index: 9999;
}

.toast {
    position: relative;
    display: inline-block;
    padding: 1rem;
    box-shadow: var(--box-shadow2);
    background-color: var(--text-color);
    color: var(--main-bg-color);
    text-align: center;

    /* start below */
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 0.35s ease forwards;
}

/* --------Modal----------*/
#modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    background-color: var(--main-bg-color);
    padding: 2.5rem;
    padding-bottom: 3.5rem;
    box-shadow: var(--box-shadow2);
    text-align: center;
}

/* slide up animation */
@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 0.95;
    }
}

/* -----------Obsverver---------*/
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.85s ease-in,
        transform 0.85s ease-in;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

.flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}
