/* define constants up here */
:root {
  --banner-bg-start: #182166;
  --banner-bg-end: #ED3A4F;
  --produce-gray: #e4e4e4;
  --search-text-gray: #s949494;
  --search-gray: #f2f2f2;
  --affil-gray: #909090;
  --name-gray: #2b2b2b;
  --other-name-gray: #444444;
  --ranking-affil-gray: #989898;
  --save-box-gray: #b1b1b1;

  --checked-green: #097231;

  /* ranking border colors */
  --k-rank: #182166;
  --c-rank: #ED3A4F;
  --default-rank: #000000;
  --no-rank: #000000;
}

p {
  margin: 0;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  display: inline-block;
  min-width: 100%;
  /*TODO: I had the weirdest bug where if i don't have this background white the top banner would disappear
  it's super late right now and I'm not sure what is going on i need to look into this later */
  background-color: white;
}

/* Styles for banner */
#top-banner {
  background: radial-gradient(circle, var(--banner-bg-start), var(--banner-bg-end) 70%);
  /* background-color: var(--banner-bg-color); */
  padding: 25px;

  /* these will be unnecessary once we get the banner image */
  color: white;
  text-align: center;
}
#banner-image {
  width: 250px;
  margin-bottom: 15px;
}
#banner-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
}
#banner-subtitle {
  font-family: 'Roboto Condensed', sans-serif;
  color: #ffffff;
  font-size: 12px;
}

/* Styles for table */
#table {
  height: 40vh;
  min-height: 350px;
  width: 300px;
  box-shadow: 0px 2px 4px 0.1px var(--produce-gray);
  border-radius: 8px;
  border: 1px solid var(--produce-gray);
  margin: 10px;
  display: flex;
  flex-direction: column;
}
#table__filter-container {
  padding: 8px;
  border-bottom: 1px solid var(--produce-gray);
}
#table__filter-input {
  padding: 5px;
  padding-left: 25px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 3px;
  background-color: var(--search-gray);
  border: none;
  outline: 0;
  /* setting up search icon */
  background-image: url("assets/search.png");
  background-size: 10px 10px;
  background-position: 7px 7px;
  background-repeat: no-repeat;
}
#table__filter-customize {
  padding: 5px;
  padding-left: 25px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 3px;
  background-color: var(--search-gray);
  border: none;
  outline: 0;
  /* setting up search icon */
  background-image: url("assets/search.png");
  background-size: 10px 10px;
  background-position: 7px 7px;
  background-repeat: no-repeat;
}
#settings {
  display: none;
}
#settings-button {
  background-color: rgb(334, 34, 34, 0);
  background-image: url("assets/settings.png");
  background-size: 50px 50px;
  background-position: 6px 6px;
  background-repeat: no-repeat;
  border: none;
  width: 60px;
  height: 60px;
  position: absolute;
  top: 10px;
}
#customize_lineup {
  padding: 5px;
  margin-left: 5px;
  margin-right: 5px;
  height: 90%;
  width: 100%;
  box-sizing: border-box;
  border-radius: 3px;
  background-color: #d9d9d9;
  border: none;
  outline: 0;
  text-align: center;
  cursor: pointer;
}
.customize_title {
  font-weight: bold;
}
::placeholder {
  color: var(--search-text-gray);
}
.scrolling {
  display: flex;
  width:100%;
  overflow-x: scroll;
  margin: auto;
  justify-content:center;
}
/* Styles for filtering at bottom of table */
#filters-container {
  margin: 10px;
}
.checkbox-label {
  font-size: 12px;
  color: var(--affil-gray);
}

/* Styles for share link functionality */
#sharelink-container {
  margin: 10px;
  display: flex;
}
#getlink-button {
  border: none;
  border-radius: 3px;
  padding: 4px 6px 4px 6px;
  background-color: #a5a5a5;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: white;
}
#getlink-button:active { /* these styles are active while get link is being pressed */
  background-color: #ebebeb;
}
#getlink-textbox {
  margin-left: 5px;
  border: 1px solid var(--save-box-gray);
  border-radius: 3px;
  box-sizing: border-box;
  padding: 5px;
  padding-right: 50px;
  flex: 1;
  display:none;
}
#copylink-button {
  height: inherit;
  width: 50px;
  margin-left: -50px;
  border: 1px solid var(--save-box-gray);
  border-radius: 0px 3px 3px 0;
  background-color: var(--save-box-gray);
  font-weight: 700;
  display:none;
}
#copylink-button:active { /* these styles are active while copylink is being pressed */
  background-color: var(--other-name-gray);
}

/* Styles for table entries */
#table__entry-container {
  overflow-y: scroll;
}
.table__entry {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--produce-gray);
  cursor: pointer;
}
.table__entry:last-child {
	border-bottom: none;
}
.table__entry:hover {
  background-color: #f0f0f0;
}
.table__entry-icon {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 6px 8px;
  display: block;
  box-sizing: border-box;
  position: relative;
  /* background-image: url(assets/trainees/leegaeun.jpg);
  background-size: 60px; */
}
.table__entry-img {
  border-radius: 50%;
  width: inherit;
  height: inherit;
}
.eliminated .table__entry-img {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}
/* only applied when an entry is selected/checked */
.table__entry-check {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  /* blue background */
  background-color: var(--checked-green);
  /* the padding insets the checkbox (makes it bigger/smaller) */
  padding: 10px;
  box-sizing: border-box;
}
.table__entry-icon-border {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  box-sizing: border-box;
}
.table__entry-icon-crown, .ranking__entry-icon-crown {
  position: absolute;
  padding: 2px;
  box-sizing: border-box;
  top: -5px;
  left: 0;
  right: 0;
  margin: auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #e3e3e3;
  background-image: url(assets/crown.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-origin: content-box;
}
/* Different entry borders */
.k-rank-border {
  border: 4px solid var(--k-rank);
}
.b-rank-border {
  border: 4px solid var(--j-rank);
}
.c-rank-border {
  border: 4px solid var(--c-rank);
}
.t-rank-border {
  border: 4px solid var(--t-rank);
}
.u-rank-border {
  border: 4px solid var(--u-rank);
}
.default-rank-border {
  border: 4px solid var(--default-rank);
}
.no-rank-border {
  border: none;
}
.eliminated .table__entry-icon-border {
  border: 4px solid var(--no-rank);
}
.eliminated .ranking__entry-icon-border {
  border: 4px solid var(--no-rank);
}
.ranking__entry-icon-border.dragged-over { /* defines a border for when you drag over a trainee in ranking */
  border: 4px solid var(--checked-green);
}

.table__entry-text {
  margin: auto 5px auto 5px;
  /* margin: auto auto; */
}
.table__entry-text .name {
  font-size: 12px;
  color: var(--name-gray);
}
.table__entry .hangul {
  font-size: 12px;
  color: var(--other-name-gray);
}
.table__entry .nationalityandyear {
  font-size: 10px;
  color: var(--affil-gray);
  display: block;
}

/* Ranking Styles */
#ranking__pyramid {
  /* min-width: 350px; */
  margin: 40px 40px 10px 40px;
  display: flex;
  flex-direction: column;
}
#ranking__title {
  text-align: center;
  font-family: 'Open Sans', sans-serif;
}
.ranking__row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.ranking__entry-view {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 10px 24px 8px 24px;
}
.ranking__entry-icon {
  border-radius: 50%;
  width: inherit;
  height: inherit;
  display: inline-block;
  box-sizing: border-box;
  position: relative;
}
.ranking__entry-img {
  border-radius: 50%;
  width: inherit;
  height: inherit;
}
.eliminated .ranking__entry-img {
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
}
.ranking__entry-icon-border {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  box-sizing: border-box;
}
.ranking__entry-icon-badge {
  position: absolute;
  width: 15px;
  height: 15px;
  left: 0;
  right: 0;
  bottom: -5px;
  margin: auto;
  border-radius: 50%;
  background-color: var(--p-rank);
  box-sizing: border-box;
  padding: 2px;
  /* badge text options */
  font-weight: 900;
  font-size: 8px;
  text-align: center;
  color: white;
}
.ranking__row-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  text-align: center;
}

/* Styles for different badge colors */
.bg-no {
  background-color: var(--no-rank);
}
.bg-k {
  background-color: var(--k-rank);
}
.bg-j {
  background-color: var(--j-rank);
}
.bg-c {
  background-color: var(--c-rank);
}
.bg-t {
  background-color: var(--t-rank);
}
.bg-u {
  background-color: var(--u-rank);
}
.bg-default {
  background-color: var(--default-rank);
}
.eliminated .ranking__entry-icon-badge {
  background-color: var(--no-rank);
}

.ranking__entry .nationality {
  color: var(--ranking-affil-gray);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.2px;
}

/* Generic Styles */
.padded-box {
  padding: 40px;
}

.flex-container {
  display: flex;
  flex-wrap: wrap-reverse;
  /* align-items: center; */
  justify-content: center;
}

.drag-cursor {
  cursor: -webkit-grab;
  cursor: grab;
}
