:root {
  --rainbow: linear-gradient(0deg, rgba(241,133,133,0.8) 0%, rgba(213,210,121,0.8) 25%, rgba(154,228,145,0.8) 50%, rgba(144,180,222,0.8) 75%, rgba(233,130,222,0.8) 100%);
  --sideRainbow: linear-gradient(90deg, rgba(241,133,133,0.8) 0%, rgba(213,210,121,0.8) 25%, rgba(154,228,145,0.8) 50%, rgba(144,180,222,0.8) 75%, rgba(233,130,222,0.8) 100%);
  --bgRainbow: linear-gradient(-20deg, rgba(241,133,133,0.8), rgba(213,210,121,0.8), rgba(154,228,145,0.8), rgba(144,180,222,0.8), rgba(233,130,222,0.8), #fff);
  
  --bg: #fafafa;
}


/*-- GENERAL --*/

* {
  margin: 0;
  font-family: Helvetica, sans-serif;
}

body {
  background: var(--bgRainbow) fixed;
  background-repeat: no-repeat;
}

a {
  padding: 0 2px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: all 0.5s;
}

a:hover { 
  background: var(--rainbow) fixed;
}

b, 
strong {
  font-weight: bold;
  text-transform: lowercase;
  font-variant: small-caps;
  color: #000;
}

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: var(--rainbow) 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 #ca5b6d; 
  outline: none;
  background: #fff;
  color: #333;
}

::-webkit-scrollbar { 
  width: 10px; 
  height: 10px;
}

::-webkit-scrollbar-track { 
  background: #fff; 
}

::-webkit-scrollbar-thumb {  
  background: var(--rainbow); 
  border: 4px solid #fff;
}

::selection {
  background: purple;
  color: #fff;
}

::-moz-selection {
  background: purple;
  color: #fff;
}


/*-- 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-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

table a:hover {
  color: var(--bg);
  text-decoration: none;
}

td {
  background: var(--sideRainbow) fixed;
  padding: 8px 10px;
  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-weight: bold;
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 0;
  border: none;
}


/*-- HEADER --*/

#title {
  font-weight: bold;
  text-transform: lowercase;
  font-variant: small-caps;
  font-size: 55px;
  position: absolute;
  left: 3vw;
  color: transparent;
  cursor: default;
  background: var(--sideRainbow);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px #fff;
}


/*-- NAVIGATION --*/

.navstrip {
  position: absolute;
  top: 20vh;
  left: 3vw;
  right: 78vw;
  background: var(--rainbow);
  box-shadow: 4px 4px 2px rgba(0,0,0,0.4);
  border-radius: 30px;
  border: 1px solid #fff;
  overflow: hidden;
}

.navstrip a {
  display: block;
  text-align: center;
  font-weight: bold;
  padding: 20px 0;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  border-top: 1px solid #fff;
  transition: all 0.5s;
}

.navstrip a:first-of-type {
  border: none;
}

.navstrip a:hover {
  background: rgba(255,255,255,0.5);
  color: #333;
  letter-spacing: 0;
}

.navflex { 
  display: flex; 
  flex-direction: row;
  position: fixed;
  bottom: 0;
  left: 3vw;
  right: 78vw;
  height: fit-content;
  background: var(--sideRainbow);
  box-shadow: 4px 4px 2px rgba(0,0,0,0.4);
  border-radius: 15px 15px 0 0;
  border: 1px solid #fff;
  border-bottom: none;
  overflow: hidden;
}

.navflex a {
  width: 100%;
  padding: 5px 0;
  font-size: 10px;
  box-shadow: none;
  margin-bottom: 0;
}

.navflex a:first-child { 
  border-right: 1px solid #fff;
}

.navflex a:last-child {
  border: none;
}

.navflex a:nth-last-child(2) { 
  text-transform: none; 
}

.menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: inline-flex;
  background: var(--sideRainbow);
}

.menu a {
  display: block;
  width: 100%;
  color: #fff;
  font-weight: bold;
  text-transform: lowercase;
  font-variant: small-caps;
  font-size: 23px;
  padding: 5px 0;
  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;
}


/*-- CONTENT --*/

.content {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 30vw;
  overflow-y: auto;
  background: linear-gradient(270deg, rgba(255,255,255,0.8), #fff);
  box-shadow: -2px 0px 4px rgba(0,0,0,0.3);
  padding: 20px;
}

.opener, 
.trade {
  margin: auto;
  width: 500px;
  text-align: justify;
}

/* HEADERS */

.sect, 
h1 {
  display: block;
  text-transform: capitalize;
  background: var(--sideRainbow);
  background-size: 100% 5%;
  background-position: bottom;
  background-repeat: no-repeat;
  color: #333;
  font-size: 30px;
  text-align: center;
  font-style: italic;
  cursor: default;
}


/*-- 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: var(--rainbow) 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: var(--rainbow) fixed; /* fallback if rgba not supported */
  background: var(--rainbow) 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: var(--rainbow) fixed;
}

/* BACK TO TOP */

.top {
  z-index: 1;
  position: fixed;
  right: 30px;
  bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  transition: all 0.5s;
}

.top:hover { 
  margin-bottom: 5px; 
}
.top a {
  color: #000;
  font-size: 12px;
}

.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: var(--sideRainbow);
      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;
   }
}

.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;
}

/*-- CARD COUNT MOD --*/

/* background overlay */
.cIOverlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
background: rgba(255,255,255,0.8);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* instruction text */
.cIOverlay span {
    display: block;
    color: #000;
    text-align: justify;
    width: 30%;
    font-weight: bold;
    cursor: default;
}

/* textarea to input cards */
.cIOverlay textarea {
    width: 30vw;
    padding: 2px;
    height: 100px;
    background: linear-gradient(-20deg, rgba(241,133,133,0.4), rgba(213,210,121,0.4), rgba(154,228,145,0.4), rgba(144,180,222,0.4), rgba(233,130,222,0.4));
    border: 1px solid #000;
    outline: none;
}

/* button to count cards */
.cIOverlay input {
    margin: 5px 0;
    width: 30.5vw;
    cursor: pointer;
    background: linear-gradient(-20deg, rgba(241,133,133,0.4), rgba(213,210,121,0.4), rgba(154,228,145,0.4), rgba(144,180,222,0.4), rgba(233,130,222,0.4));
    color: #000;
    border: 1px solid #333;
    font-size: 20px;
    outline: none;
}
/* close button */
.cIOverlay input[value=X] {
    font-size: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50px;
    position: fixed;
    right: 30%;
    top: 30%;
}
/* hover effect over buttons */
.cIOverlay input:hover {
    background: #888;
    color: #fff;
}

/* text displaying card amount */
.cIOverlay #countText {
    text-align: center;
    font-size: 25px;
}

/* button added into your html */
.cardCountButton {
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(-20deg, rgba(241,133,133,0.4), rgba(213,210,121,0.4), rgba(154,228,145,0.4), rgba(144,180,222,0.4), rgba(233,130,222,0.4));
    border: 3px outset #ddd;
    outline: none;
    float: right;
}
/* html button after it's been clicked/while in use */
.cardCountButton:focus {
    border: 3px outset #000;
}