/* page settings */
header {
    background: rgb(212,176,249);
    background: linear-gradient(90deg, rgba(212,176,249,1) 0%, rgba(164,128,242,1) 50%, rgba(212,176,249,1) 100%);
    padding: 20px 0;
    margin-bottom: 20px;
}

body{
    background-color: #ffdeeb;
    background-image: url("https://www.transparenttextures.com/patterns/climpek.png");
}

ul {
    list-style: none;
}

a{
    color: #973aa8;
}

a:hover {
    color: #d81159;
}

nav {
    margin-top: 3em;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
}

nav ul li a:hover {
    color: rgb(255, 182, 205);
    /* text-shadow: white 1px 1px; */
}

section {
    width: 60%;
    margin: 5em auto;
}

section p:last-child {
    margin-bottom: 0;
}

h1, h2, h3 {
    text-align: center;
    font-family: 'Comfortaa', cursive;
}

h1 {
    font-weight: bold;
    text-shadow: #ffdeeb 2px 2px 2px;
}

h3 {
    margin-bottom: 1em;
}

.review {
    margin-top: 2em;
    background-color: rgba(157, 127, 218, 0.2);
    padding: 2em;
    border-radius: 1em;
}


/* chart.js */
.framework-chart-container {
    /* width:80%; */
    margin: auto;
    background-color: rgba(255, 255, 255, 1);
}


/* Charts.css */
/* control the chart dimensions */
#line-chart.line {
    height: 200px;
    max-width: 400px;
    margin: 0 auto;
    --labels-size: 3rem;
}

/* set some padding & add axis title */
#line-chart {
    /* width: 80%; */
    padding-top: 20px;
    padding-right: 50px;
    margin: auto;
    background-color: #fff;
    color: black;
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 50px 1fr;
    grid-template-rows: 250px 50px;
    grid-template-areas:
    "data-axis chart"
    ".primary-axis";
}

#line-chart > table {
    grid-area: chart;
}

#line-chart > .primary-axis {
    grid-area: primary-axis;
}

#line-chart > .data-axis {
    grid-area: data-axis;
    /* the line below will cause a css validation error, I found this code in the documentation https://chartscss.org/components/axes/ */
    writing-mode: tb-rl;
    transform: rotateZ(180deg);
}

/* customize the primary/secondary/data axis */
#chart-table {
    --primary-axis-color: rgba(0, 0, 0, 1);
    --primary-axis-style: solid;
    --primary-axis-width: 2px;
    --secondary-axes-color: rgba(0, 0, 0, 0.15);
    --secondary-axes-style: dashed;
    --secondary-axes-width: 1px;
    --data-axes-color: rgba(0, 0, 0, 0.15);
    --data-axes-style: dashed;
    --data-axes-width: 1px;
}

th {
    font-weight: 400;
}

caption {
    text-align: center;
    color: black;
    font-weight: bold;
}

/* 1st line animation */
#td-1{
    --color: linear-gradient(
        45deg,
        #faf982,
        #ffd86f,
        #ffa782
    );
    background-size: 600%;
    animation: gradient-animation 3s linear infinite alternate;
}
@keyframes gradient-animation {
    0%   { background-position:   0%; }
    100% { background-position: 100%; }
}

/* 2nd line animation */
#td-2{
    --color: linear-gradient(
    45deg,
    #ffa782,
    #ff7fa2,
    #e76ec2      
    );
    background-size: 600%;
    animation: gradient-animation 3s linear infinite alternate;
}
@keyframes gradient-animation {
    0%   { background-position:   0%; }
    100% { background-position: 100%; }
}

/* 3rd line animation */
#td-3{
    --color: linear-gradient(
    45deg,
    #e76ec2,
    #ff477e,
    #ff0a54
    );
    background-size: 600%;
    animation: gradient-animation 3s linear infinite alternate;
}
@keyframes gradient-animation {
    0%   { background-position:   0%; }
    100% { background-position: 100%; }
}