/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 /* shows all element boundaries */
 /*
* {
  outline: 1px solid red; 
}
*/

body {
  width: 100vw;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fbfbfd;
}

ul {
  list-style-type: none;
}

.top-nav img {
  height: 40px;
  width: 120px;
  margin: 0px
}

.top-nav {
  margin: 0;
  background-color: #f2f2f2;
  color: grey;
  height: 60px;
}

.top-nav ul {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.navlink a {
  color: #666;
  text-decoration: none;
  font-weight: bold;
}

.navlink a.active {
  color: #88222D;
  font-weight: "bold";
}

.navlink a:hover {
  color: #88222D;
  font-weight: "bold";
}

content p {
  margin-left: 25%;
  width: 50%;
  color: #2f2f2f;
  font-size: 16px;
  margin-top: 12px;
  text-align: left;
}

#charts-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-evenly;
}

.chart-container {
  flex: 1
}

.chart-container canvas {
  padding-left: 25px;
  padding-right: 25px;
}

.container {
  text-align: center;
}

.container img {
  max-height: 8rem;
  margin-top: 12px;
}

.skeleton {
  background-color: #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}


@keyframes loading {
  100% {
    left: 100%;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-container {
  width: 300px;
  padding: 20px;
}

.skeleton-chart {
  width: 100%;
  height: 180px;
}

@media (width >= 425px){
  .chart-container {
    flex-basis:50%;
    flex-grow:1;
  }

  #charts-container:first-child {
    flex: 1;
  }
}
