:root {
  --red: #ff9797;
  --orange: #FFD6A5;
  --yellow: #FDFFB6;
  --cyan: #9BF6FF;
  --indigo: #BDB2FF;
  --purple: #ff91f6;

  /*var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)*/
  
  --bg: #fafafa;
  
  --font: 'Dancing Script', cursive;
}


/*-- GENERAL --*/

* {
  margin: 0;
  font-family: Helvetica, sans-serif;
}

body {
  background:url("https://summons.mythril.us/images/yunaBG.png") left -45%/30%, linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
  background-repeat: no-repeat;
}

a {
  padding: 0 2px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: all 0.5s;
}
a:hover { 
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
}

b, strong {
  font-family: var(--font);
  font-size: 20px;
  color: #333;
}

p { line-height: 0; }
.cards { line-height: 1; }

h2 {
  display: block;
  padding-top: 20px;
}

textarea {
  width: 80%;
  border: 1px solid;
  height: 300px;
}

input, select {
  border: 2px solid rgba(255,255,255,0.8);
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
  color: #fff;
  outline: none;
  font-size: 15px;
}
#search:focus {
  border: 2px solid #333;
  background: #fff;
  color: #333;
}
select, 
input[type="submit"], 
input[type="reset"] { 
  cursor: pointer; 
}

input[type="submit"], 
input[type="reset"]  {
  text-transform: capitalize;
  font-size: 15px;
  text-shadow: 1px 1px 2px #333;
}
textarea { border: 1px solid #ccc; }
table input:focus, table select:focus, table textarea:focus { 
  box-shadow: 0px 0px 2px var(--darkpink); 
  outline: none;
  background: #fff;
  color: #333;
}

::-webkit-scrollbar { 
  width: 10px; 
  height: 10px;
}
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb {  
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)); 
}

::selection {
  background: var(--purple);
  color: var(--selection);
}

::-moz-selection {
  background: var(--purple);
  color: var(--selection);
}


/*-- TABLES --*/

table {
  clear:both;
  font-variant:normal;
  text-transform:capitalize;
  width: 80%;
  text-align:center;
  padding: 2px;
  font-size: 15px;
  letter-spacing: 2px;
}
table a{
  font-family: var(--font);
  font-size: 22px;
  text-transform: capitalize;
  letter-spacing: 0px;
  color: rgba(255,255,255,0.7);
}
table a:hover {
  color: var(--bg);
  text-decoration: none;
}
td {
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
  padding: 8px 10px 3px;
  color: var(--bg);
  border: 2px solid rgba(255,255,255,0.3);
}
th {
  background: transparent;
  color: #333;
  font-size:22px;
  padding: 3px 10px 5px;
  font-family: var(--font);
  border: none;
}

.crayons {
  color: #fff;
  clear: both;
  font-variant: normal;
  text-transform: none;
  width: auto;
  text-align: center;
  padding: 0;
  font-size: 15px;
  letter-spacing: 0;
  border-collapse: collapse;
}
.crayons td {
  background: transparent;
  padding: 2px 3px;
  width: 40px;
  border: 0;
}


/*-- HEADER --*/

#title {
  font-family: var(--font);
  font-size: 70px;
  position: absolute;
  left: 2vw;
  color: #fff;
  cursor: default;
  text-shadow: -2px 0px 4px rgba(0,0,0,0.8);
}
#subtitle { display: none; }


/*-- NAVIGATION --*/

.navstrip {
  position: absolute;
  top: 25vh;
  left: 0;
  right: 75vw;
  overflow: hidden;
}
.navstrip a{
  display: block;
  text-align: center;
  font-weight: normal;
  padding: 10px 0;
  margin-bottom: 10px;
  color: #fff;
  text-decoration: none;
  text-transform: capitalize;
  font-size: 18px;
  text-shadow: -1px 1px 2px rgba(0,0,0,0.8);
  box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(2px);
  transition: all 0.5s;
}
.navstrip a:hover {
  background: rgba(255,255,255,0.8);
  color: #333;
  text-shadow: -1px 1px 2px #fff;
}

.navflex { 
  display: flex; 
  flex-direction: row;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 75vw;
  height: fit-content;
}
.navflex a {
  width: 100%;
  padding: 5px 0;
  font-size: 10px;
  box-shadow: none;
  margin-bottom: 0;
}
.navflex a:last-child { border-left: 1px dotted rgba(255,255,255,0.8); }
.navflex a:nth-last-child(2) { text-transform: none; }
.navflex a:hover { border-color: rgba(255,255,255,0.5); }

.fas {
  display: block;
  float: left;
  padding-left: 20px;
}

.menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: inline-flex;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange));
}
.menu a{
  display: block;
  width: 100%;
  color: #fff;
  font-family: var(--font);
  font-size: 23px;
  padding: 5px 0;
  font-weight: normal;
  text-transform: capitalize;
  border-right: 1px solid #fff;
  text-shadow: 1px 1px 2px #333;
  background: linear-gradient(180deg, rgba(255,255,255), rgba(255,255,255,0));
  background-repeat: no-repeat;
  background-size: 100% 0;
  background-position: top;
  transition: all 0.2s;
}
.menu a:last-child { border-right: none; }
.menu a:hover {
  background: linear-gradient(180deg, rgba(255,255,255), rgba(255,255,255,0));
  background-size: 100% 100%;
  background-position: top;
  background-repeat: no-repeat;
  text-shadow: 1px 1px 2px #000;
  text-decoration: none;
}

.menuinverse, .menuinverse a{
  background: linear-gradient(180deg, rgba(255,255,255), rgba(255,255,255,0));
  background-size: 100% 100% !important;
  background-position: top;
  background-repeat: no-repeat;
}


/*-- FOOTER --*/

.footer {display:none;}


/*-- CONTENT --*/

.content {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 25vw;
  overflow-y: auto;
  background: linear-gradient(45deg, rgba(255,255,255,0.7) 5%, #fff 20%);
  backdrop-filter: blur(4px);
  box-shadow: -2px 0px 4px rgba(0,0,0,0.3);
  padding: 20px;
}

.opener, .trade {
  margin: auto;
  width: 500px;
  text-align: justify;
}
.sprite{
  background: url("https://summons.mythril.us/images/FFTS_Yuna_X-2_Sprite.png");
  background-size: cover;
  width: 120px;
  height: 120px;
  float:left;
}

/* TRADES */

.trades {
  width: 511px; 
  height: 595px; 
  margin: auto; 
  display: grid;
  grid-template-columns: 286px 235px;
  grid-template-rows: 236px 236px 120px;
  grid-template-areas: 'one two' 'three two' 'four four';
  overflow: hidden;
}

.picOne {
  background: url("https://summons.mythril.us/images/tradescolor_01.gif") !important; 
  grid-area: one;
}
.picTwo {
  background: url("https://summons.mythril.us/images/tradescolor_02.gif") !important; 
  grid-area: two;
}
.picThree {
  background: url("https://summons.mythril.us/images/tradescolor_03.gif") !important; 
  grid-area: three;
}
.picFour {
  background: url("https://summons.mythril.us/images/tradescolor_04.gif") !important; 
  grid-area: four;
}
.pic{
  cursor: pointer;
  filter: grayscale(80%);
  transition: all 0.5s;
}
.pic:hover {
  filter: grayscale(0%);
}

/* HEADERS */

.sect, h1 {
  display: block;
  text-transform: capitalize;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange));
  background-size: 100% 5%;
  background-position: bottom;
  background-repeat: no-repeat;
  color: #333;
  font-size: 30px;
  text-align: center;
  font-style: italic;
  cursor: default;
}
.sect:first-letter, h1:first-letter {
  font-family: var(--font);
  font-size: 45px;
  font-weight: bold;
}


/*-- CREDITS --*/

.creds {
  text-align: left;
  padding-left: 20px;
}

.credFA, .credFA a {
  color: #333;
  font-size: 40px;
  cursor: default;
}
.credFA a { cursor: pointer; }
.credFA a:hover { background: none; }


/*-- CARD SEARCH MOD --*/

.highlightCard {
  border: 2px solid rgba(255,255,255,0.8);
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
  border-radius: 5px;
} 
.dimmedCard {
  opacity:0.3;
  filter:alpha(opacity=30);
}


/* style-my-tootltips plugin, tooltip styling */
#s-m-t-tooltip{
  /* basic */
  max-width:300px;
  z-index:10;
  margin:24px 14px 7px 12px;
  /* style and design */
  padding:8px;
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed; /* fallback if rgba not supported */
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
  -moz-border-radius:3px;
  -webkit-border-radius:3px;
  border-radius:3px;
  -moz-box-shadow:2px 2px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(255,255,255,0.3);
  -webkit-box-shadow:2px 2px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(255,255,255,0.3);
  box-shadow:2px 2px 0 rgba(0,0,0,0.15),-1px -1px 0 rgba(255,255,255,0.3);
  /* font */
  font-family:Helvetica, sans-serif;
  font-size:11px;
  line-height:16px;
  color: var(--bg);
  text-shadow: 1px 1px 2px #333;
  letter-spacing: 1px;
}


/*-- CARD TEXT MOD --*/
.list-inline {
  display: block;
  list-style-type: none;
  margin-left: -60px;
  width: 104%;
}
.list-inline li { display: inline-block; }
.cardname { 
  padding: 10px 5px;
  width: 160px;
  display: block;
  font-size: 10px;
  margin: 0px 4px 10px;
  border-radius: 5px;
  color: var(--bg);
  text-shadow: 1px 1px 2px #333;
  letter-spacing: 1px;
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
}


/* CARD COUNT MOD */

.cIOverlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(255,255,255,0.8);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cIOverlay span {
  display: block;
  text-align: justify;
  width: 30%;
  font-weight: bold;
  cursor: default;
}

.cIOverlay textarea {
  width: 30vw;
  padding: 2px;
  height: 100px;
  background: #fff;
  border: 1px solid #333;
  outline: none;
}

.cIOverlay input {
  margin: 5px 0;
  width: 30.5vw;
  cursor: pointer;
  background: #fff;
  color: #333;
  border: 1px solid #333;
  font-size: 20px;
  outline: none;
}
.cIOverlay input[value=X] {
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50px;
  position: fixed;
  right: 30%;
  top: 30%;
}
.cIOverlay input:hover {
  background: #333;
  color: #fff;
}

.cIOverlay #countText {
  text-align: center;
  font-size: 25px;
  font-family: var(--font);
}

.cardCountButton {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(180deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange)) fixed;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 5px 10px;
  font-weight: normal;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
  outline: none;
  float: right;
}

/* BACK TO TOP */
.top {
  z-index: 1;
  position: fixed;
  right: 30px;
  bottom: 20px;
  transition: all 0.5s;
}
.top:hover { margin-bottom: 5px; }
.top a {
  color: rgba(0, 0, 0, 0.7);
  font-size: 25px;
}
.top a:hover { 
  text-decoration: none; 
  background: none;
}


/* MOBILE */

@media (max-width: 1000px) {
  .content {
      left: 0;
      right: 0;
      width: auto;
      margin: 0;
      z-index: 0;
      padding-bottom: 40px;
      background: #fff;
  }
  .navstrip {
      background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--indigo), var(--purple), var(--red), var(--orange));
      position: fixed;
      display: flex;
      top: auto;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
      width: 100%;
      border-radius: 0;
  }
  .navstrip a {
      font-size: 18px;
      width: 100%;
      background: none;
      box-shadow: none;
      margin: 0;
  }
  .navflex {
      position: fixed;
      right: 0;
      bottom: 60px;
  }
  .navflex a, .navflex a:last-child {
      border: none;
      color: #333;
      text-shadow: 1px 1px 2px #eee;
      backdrop-filter: none;
  }
  .navflex a:last-child {
      position: fixed;
      bottom: 35px;
      right: 20px;
      width: 50px;
  }
  .navflex a:nth-last-child(2) {
      position: fixed;
      bottom: 65px;
      right: 20px;
      width: 50px;
  }
  #navLink { display: none; }
  .fas { 
      float: none;
      margin-left: -15px;
  }
  .menu a { font-size: 15px; }
  table img{ width: 100%; }
  .crayons img { width: auto; }
  td, tr, th { font-size: 15px !important; }
  .top { 
    left: 10px;
    bottom: 60px;
    width: fit-content;
   }
   .top a:hover {
     background: none;
   }
}
