/*
  Shared stylesheet for index.html & datacenter.html
*/

/*************************************************************************************************************/

/* UNIVERSAL */
* {  
  font-family: 'Montserrat', sans-serif;
  font-size: max(1vw, 10px);
  transition: 0.3s ease;
}

/* BODY */
body {
  background-color: rgb(250, 250, 250);
  margin: 0px;
  overflow-y: hidden;
}

/*************************************************************************************************************/

/* RIBBON */

/* General */
header {
  align-items: center;
  color: white;
  display: flex;
  height: 10vh;
  justify-content: space-between;
  min-width: 1000px;
  max-width: 100vw;
  text-align: left;

  /* Top-left lighting gradient */
  background: linear-gradient(
    145deg,
    rgb(70,130,145),
    rgb(25,55,65)
  );
}


/* Selection Toggle, Title, Author */
#header-left {
  align-items: center;
  display: flex;
}

/* Selection Toggle */
#toggle-select {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 2.5vw;
  height: 5vh;
  font-size: 2rem;
  color: white;
  border: none;
  border-radius: 1%;
  background: linear-gradient(
    to bottom,
    #355f69,
    #284a53
  );

  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease,
    font-size 0.15s ease;

    margin: 0px 1vw;
}

#toggle-select:hover {
  cursor: pointer;
  transform: translateY(-2px);
}

#toggle-select:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}


/* GitHub Repository */
#github-link {
  display: block;
  border-radius: 50%;
  height: 6vh;
  width: auto;
  object-fit: contain;
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

a[title="Site Repository"] {
  display: inline-block;
  border-radius: 50%;

  background: linear-gradient(
    to bottom,
    #3a6069,
    #2c4c55
  );

  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

a[title="Site Repository"]:hover {
  transform: translateY(-2px);
}

a[title="Site Repository"]:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}


/* Site Name & Author */
header h1 { padding-left: 2vw; }
header h1 a {
  color: white;
  font-size: 1.6rem;
}
#author {
  color: white;
  font-size: 1.2rem;
}

/* Tab Navigation */
#tab-nav {
  display: flex;
  padding: 3vh 1vw;
  text-align: center;
  width: 30vw;
}

.tab-btn {
  background: linear-gradient(
    to bottom,
    #355f69,
    #284a53
  );
  border: 1px solid rgba(0, 0, 0, 0.35);
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  height: 6vh;
  padding: 0 1vw;
  width: 50%;

  /* Raised / pressable look */
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease,
    background 0.2s ease;
}

.tab-btn:not(.active):hover {
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(
    to bottom,
    #284a53,
    #1f3940
  );
  cursor: default;

  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);

  transform: translateY(1px);
}

.tab-btn.active:hover {
  transform: translateY(1px);
}




/* HHEI Web Link */
#hhei-link a {
  display: inline-block;
  border-radius: 1%;

  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* Logo image */
#hhei-logo {
  border-radius: 1%;
  height: 6vh;
  width: 13vw;
  object-fit: cover;
  object-position: center 33%;
  margin-right: 1vw;
  display: block;
}

#hhei-link a:hover {
  transform: translateY(-2px);
}

#hhei-link a:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}


/*************************************************************************************************************/

/* DATA COLLECTION/LECTURE SELECTION */

#selection {
  background-color: rgb(235, 235, 235);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  height: 90vh;
  left: 0;
  overflow-y: auto;
  position: absolute;
  top: 10vh;
  width: 30vw;
  z-index: 3;
}
#selection.hidden { transform: translateX(-30vw); }

#selection h2 {
  font-size: 1.5rem;
  text-align: center;
}

.selection-entry {
  background-color: transparent;
  border: none;
  text-align: left;
  width: fit-content;
}
.selection-entry.active { font-weight: bold; }
.selection-entry p {
  color: black;
  margin-top: 0.5vh;
}
.selection-entry:hover { cursor: pointer; }


/* MISCELLANEOUS */

/* Underline Animation (Title, Author, & Selection Entry) */
header h1 a, .selection-entry p { 
    position: relative;
    text-decoration: none;
}
header h1 a::after, .selection-entry p::after {
    bottom: 0px;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    width: 100%;
}
header h1 a::after { background: white; }
.selection-entry p::after { background: black; }
header h1 a:hover::after, .selection-entry p:hover::after { transform: scaleX(1); }

/* Button Press Animation */
#download-button-container button, #data-download, .nav-btn, #update-chart {
  background: linear-gradient(
    145deg,
    rgb(70,130,145),
    rgb(25,55,65)
  );
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.5px;

  /* 3D depth */
  box-shadow:
    0 6px 0 rgb(18,40,48),
    0 10px 18px rgba(0,0,0,0.35);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

#download-button-container button:hover, #data-download:hover, .nav-btn:hover, #update-chart:hover {
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 rgb(18,40,48),
    0 14px 22px rgba(0,0,0,0.4);
}

#download-button-container button:active, #data-download:active, .nav-btn:active, #update-chart:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 rgb(18,40,48),
    0 4px 8px rgba(0,0,0,0.35);
}