* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #eee;
  font-size: 16px;
}

h1, h2, h3 {
  color: #333;
}

h1 {
  font-size: 40px;
  font-weight: bold;
  color: rgba(51, 51, 51, 0.8);
  text-shadow: 1px 4px 6px #fff, 0 0 0 #000, 1px 4px 6px #fff;
  margin-top: 38px;
}

::-moz-selection {
  background: #5af;
  color: #fff;
  text-shadow: none;
}

::selection {
  background: #5af;
  color: #fff;
  text-shadow: none;
}

.checkbox, .radio {
  margin-top: 20px;
  margin-bottom: 20px;
  line-height: 165%;
}

.checkbox input[type=checkbox],
.checkbox-inline input[type=checkbox],
.radio input[type=radio],
.radio-inline input[type=radio] {
  margin-left: -30px;
}

.checkbox label, .radio label {
  padding-left: 30px;
}

header,
#shadow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  background: #fff;
  z-index: 2;
}

#shadow {
  box-shadow: 0 2px 4px 0 rgba(170, 170, 170, .80);
  z-index: -1;
}

header h1,
header #logos {
  display: inline-block;
}

header #logos {
  float: right;
  line-height: 170px;
}

header #logos img:not(:first-child) {
  margin-left: 50px;
}

#content {
  margin-top: 270px;
}

.card {
  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(170, 170, 170, .80);
  padding: 50px;
  margin-bottom: 35px;
  border-radius: 2px;
}

#expand-table-button {
  width: 100%;
  height: 35px;
  display: block;
  margin-top: 35px;
}

#expand-table-button:hover {
  background-color: #F3F3F3;
}

#tables-area h4 {
  margin-top: 30px;
}

hr {
  display: block;
  width: 100%;
  border-top: 1px solid #d6d6d6;
  margin-top: 30px;
  margin-bottom: 30px;
}

hr.short {
  width: 30%;
}

dd {
  margin-bottom: 20px;
}

dd table {
  margin-top: 30px;
}

form .form-group-lg label {
  font-size: 18px;
}

.panel-heading h3 {
  text-align: center;
}

.panel-body {
  padding-left: 1em;
  padding-right: 1em;
}

.instructions {
  font-size: large;
}

.page-footer {
  padding-top: 50px;
}

.cohort-name {
  visibility: hidden;
}
/* for drop area */

#drop-area {
  border: 3px dashed #CCC;
  border-radius: 8px;
  padding: 30px;
  background-color: #F0F0F0;
  transition: border-color 0.5s;
  text-align: center;
  display: block;
  vertical-align: middle;
  font-size: 22px;
  width: 100%;
}

#drop-area p {
  font-size: 13px;
  margin-top: 25px;
}

#drop-area button {
  margin-top: -25px;
  padding-left: 25px;
  padding-right: 25px;
  border-radius: 20px;
}

#drop-area.dragenter {
  border-color: #A6DE2A;
}

#drop-area.dragdefault {
  border-color: #666;
}

#choose-file {
  border: none;
  visibility: hidden;
}

/* Additional Questions */
#questions,
#review-and-submit form {
  font-size: 16px;
}

.question-text {
  font-weight: 500;
}

/* for alerts and submission history*/
.ajs-header img {
  padding-right: 0.5em;
}

.success img {
  padding-right: 0.5em;
}

.error img {
  padding-right: 0.5em;
}

/* for qtip */
.qtip-red {
  color: #5B1515;
  background-color: #FDD3D0;
}

.qtip-red img {
  padding-right: 0.5em;
}

.qtip-yellow {
  color: #5b5914;
  background-color: #fdfad0;
}

.qtip-yellow img {
  padding-right: 0.5em;
}

.htCommentTextArea{
  font-size: 14px;
  width: 250px;
  height: 100px;
}

#errors {
  display: none;
}

#validation-errors li,
#submission-history li {
  margin-bottom: 10px;
}

span.error {
  color: #F04744;
}

span.success {
  color: #5cb85c;
}

#submit {
  margin-top: 20px;
}

@media (min-width: 992px) and (max-width: 1200px) {
  h1 {
    font-size: 35px;
    margin-top: 42px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  h1 {
    font-size: 30px;
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
    margin-top: 50px;
  }

  header #logos img:not(:first-child) {
    margin-left: 10px;
  }
}

@media (max-width: 500px) {
  header #logos {
    display: none;
  }

  .card {
    padding: 25px;
  }
}

/* Triangles, based on https://tympanus.net/codrops/2013/10/03/a-collection-of-separator-styles/ */
#shadow::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.ss-style-multitriangles::after {
  left: 50%;
  width: 50px;
  height: 50px;
  -webkit-transform: translateX(-50%) rotate(45deg);
  transform: translateX(-50%) rotate(45deg);
}

.ss-style-multitriangles::after {
  bottom: -25px;
  z-index: 1;
  background: inherit;
  box-shadow: -50px 50px 0 #fff, 50px -50px 0 #fff, 2px 2px 4px 0 rgba(170, 170, 170, .80), -48px 52px 4px 0 rgba(170, 170, 170, .80), 52px -48px 4px 0 rgba(170, 170, 170, .80);
}

/* *** */

.arrow-down {
  background: transparent url('../images/expand.png') no-repeat center;
  cursor: pointer;
}

.flip {
  transform: scaleY(-1);
}

#amount-spent td.htRight.htNumeric:after,
#addressable-spend td.htRight.htNumeric:after{
  content: 'K'
}

.historySubTitle {
  margin-top: 0px;
  font-size: 20px;
}

#file-name {
  display: block;
  font-size: medium;
}

.font-weight-bold {
  font-weight: bold;
}

#definitions-table td {
  font-size: 18px;
  padding: 10px;
  border: 1px solid;
}

footer {
  background-color: white;
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: 14px;
}

.shadow-top {
  box-shadow: 0px -4px 3px rgba(170, 170, 170, .80);
}

/* Tooltip styling */
.tooltip-term {
  color: #3dcab1;
  font-weight: bold;
  text-decoration: underline;
  cursor: help;
  position: relative;
}

.tooltip-term::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3dcab1;
  color: #00094c;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tooltip-term::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  border: 5px solid transparent;
  border-top-color: #3dcab1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.tooltip-term:hover::after,
.tooltip-term:hover::before {
  opacity: 1;
  visibility: visible;
}

/* SAE Levels Compact Tooltip */
.sae-tooltip-trigger {
  position: relative;
  cursor: pointer;
  color: #3dcab1;
}

.sae-tooltip-trigger:hover {
  color: #3dcab1;
}

.sae-levels-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #3dcab1;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  width: 800px;
  max-width: 95vw;
}

.sae-tooltip-trigger:hover .sae-levels-tooltip {
  opacity: 1;
  visibility: visible;
}

.sae-levels-tooltip h4 {
  margin: 0 0 8px 0;
  color: #00094c !important;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid #3dcab1;
  padding-bottom: 6px;
}

.sae-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.3;
}

.sae-table th {
  background-color: #00094c;
  border: 1px solid #3dcab1;
  padding: 6px 8px;
  text-align: center;
  font-weight: bold;
  font-size: 11px;
  color: white !important;
}

.sae-table td {
  border: 1px solid #3dcab1;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  color: #00094c !important;
  line-height: 1.4;
}

.sae-table td:first-child {
  background-color: #f0f4ff;
  color: #00094c !important;
  font-weight: bold;
  width: 50px;
  text-align: center;
  font-size: 14px;
  border: 2px solid #3dcab1;
}

.sae-table td:nth-child(2) {
  width: 280px;
}

.sae-table td:nth-child(3) {
  width: 280px;
}

.sae-table td:nth-child(4) {
  width: 190px;
}

.sae-table tr:nth-child(even) td:not(:first-child) {
  background-color: #f8faff;
}

.sae-table tr:hover td:not(:first-child) {
  background-color: #e0f2fe;
}


