/* OVERALL FORMATTING */

:root {
  --extradark: #1F232D;
  --dark: #373F51;
  --mid: #566380;
  --light: #C2D2C9;
  --panel: #F2F2F2;
}

*{
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    overflow-x: hidden;
    background: var(--dark);
}

a {
    color: var(--mid);
}

ul { /* Bullets */
    padding-left: 25px;
}

ul li::marker {
    color: var(--mid);
    font-size: 1.3em;
}

ol.sublist {
    list-style-type: lower-alpha;
}

ol li::marker {
    color: var(--mid);
    font-weight: bold;
}

h1 { /* Page titles */ 
    color: var(--dark);
    font-weight: bold;
    font-size: clamp(1.8rem, 2vw, 2rem);
    margin: 5px 0;
}

h2 { /* Page subheadings */
    color: #5F5F5F;
    font-weight: bold;
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
}

h3 { /* Box headers */
    color: #000; 
    font-weight: bold;
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    margin-top: 15px;
    margin-bottom: 0;
}

h4 { /* Sidebar headers */
    background-color: var(--mid);
    padding: 10px 0;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: #fff;
    font-weight: bold;
    overflow: visible;
}

h4:before { /* Puts the image on the left side of the title text */
    background: url('./images/css/fleurdelis-left.png') no-repeat top center;
    content: "";
    display: block;
    height: 18px;
    width: 18px;
    position: relative;
    right: 7px;
    top: -1px;
}

h4:after { /* Puts the image on the right side of the title text */
    background: url('./images/css/fleurdelis-right.png') no-repeat top center;
    content: "";
    display: block;
    height: 18px;
    width: 18px;
    position: relative;
    left: 7px;
    top: -1px;
}

h5 { /* Title each box in box spreads */
    color: #849AA5;
    font-weight: bold;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    text-align: center;
    margin: 10px 0;
}

hr { /* Line breaks */
    height: 4px;
    border: 0;
    background-color: var(--light);
    margin: 30px 0;
    overflow: visible;
}

hr:after { /* Puts the image in the middle of the line */
    background: url('./images/css/divider.png') no-repeat top center;
    content: "";
    display: block;
    height: 30px;
    position: relative;
    top: -13px;
}

.shadow {
  box-shadow: 0 4px 8px rgba(0,0,0,.2),
              0 6px 20px rgba(0,0,0,.19);
}

.mobbanner {
    display: none;
    width: 100%;
    height: auto;
    border-bottom: solid var(--dark) 3px;
}

/* NAVIGATION BAR - DESKTOP VERSION */
/* i.e., nested drop-down links */

/* The navigation menu */
.navbar {
  background-color: var(--dark);
  border-bottom: solid 3px black;
  position: sticky;
  top: 0;
  height: 77px;
  z-index: 2000;
}

/* Navigation links */
.navbar a {
  float: left;
  font-size: 13px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar img {
  height: 16px;
  width: 16px;
  padding: 0;
}

.top {
    background:var(--extradark);
    height:30px;
    width:100%;
    display: flex;
    justify-content: space-between;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    padding: 10px 12px 10px 16px;
}

/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
  font-size: 13px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  font-weight: bold;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subnavbtn a {
    padding: 0 3px 0 0 !important;
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: var(--mid);
  width: 100%;
  border-bottom: solid 3px black;
  border-top: solid 3px black;
}

/* Style the subnav links */
.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
}

/* Add a grey background color on hover */
.subnav-content a:hover, .topnav-right a:hover {
  background-color: #eee;
  color: black;
}

/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
}

/* Show the dropdown menu on hover */
.mega:hover .dropdown-content {
  display: block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--mid);
  width: 100%;
  left: 0;
  border-bottom: solid 3px black;
  border-top: solid 3px black;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 25%;
  padding: 6px 10px 10px 10px;
}

/* Style links inside the columns */
.column a {
  float: none;
  padding: 14px 16px;
  display: block;
  text-align: left;
  font-weight: normal;
  text-transform: unset;
}

/* Add a background color on hover */
.column a:hover {
  background-color: #eee;
  color: #000;
}

.column i {
    padding-right: 5px;
}

.megatitle a {
    padding: 8px;
    color: #fff;
    font-weight: bold;
    width: 80%;
    border-bottom: solid 1px white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.megatitle a:hover {
  background-color: inherit;
  color: #fff;
}

/* Right-aligned section inside the top navigation */
.topnav-right {
  float: right;
}

.topnav-right a {
  border: 1px solid #fff;
  outline: none;
  color: white;
  padding: 6px 12px;
  background-color: var(--extradark);
  margin: 7px 10px;
  font-weight: bold;
}

/* NAVIGATION BAR - MOBILE VERSION */
/* i.e., hamburger icon to display links at the page top */

.samsung { /* Warning message for viewing in Samsung browser */
    display: none;
    background-color: #000;
    position: sticky;
    max-width: 100%;
    text-align: center;
    padding: 10px;
    color: #fff;
    font-size: clamp(0.8rem, 0.8vw, 0.8rem);
}

.closebtn { /* Button to dismiss the Samsung warning */
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.burger {
    display: none;
    cursor: pointer;
    padding-left: 10px;
    padding-top: 2px;
}

.bar1, .bar2, .bar3 { /* Used to animate burger icon on click */
    width: 35px;
    height: 5px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 { /* Used to animate burger icon on click */
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 { /* Used to animate burger icon on click */
    opacity: 0;
}

.change .bar3 { /* Used to animate burger icon on click */
    transform: translate(0, -11px) rotate(45deg);
}

.mobilemenu {
    display: none;
    background: var(--mid);
    position: sticky;
    top: 52px;
    max-width: 100%;
    border-bottom: 2px solid black;
    padding: 7px;
}

.mobilelinks {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobilelinks li {
    padding: 0 15px;
}

.submenu li {
    padding: 0 0 0 25px;
}

.mobilelinks a {
    color: white;
    font-size: 0.8em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#mainmenu {
    font-weight: bold;
    justify-content: space-evenly;
}

.submenu {
    display: none;
    justify-content: flex-start;
    text-align: left;
}

.submenu .back {
    margin-right: -37px;
    margin-left: -10px;
    position: absolute;
}

.submenu .fa {
    margin: 3px 3px 0 10px;
}

.submenu .back a {
    display: block;
    padding-left: 22px;   /* space for icon */
    text-indent: -22px;   /* pull first line back */
}

.submenu .back i {
    margin-right: 6px;
}

/* BANNER IMAGE */

.hero {
    width: 100%;
}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  border-bottom: solid var(--dark) 3px;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.mySlides img {
    width: 100%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.heroblock {
  background: rgba(255,255,255,0.7);
  padding: 8px 12px;
  position: absolute;
  width: 30%;
  text-align: center;
}

.topblock {
  top: 50px;
  right: 40px;
}

.bottomblock {
  bottom: 100px;
  right: 40px;
}

.herotitle {
    color: var(--dark);
    font-weight: bold;
    font-size: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 10px auto 6px auto;
}

.herotext {
  color: #000;
  font-size: 20px;
}

.heroblock a {
    background: var(--dark);
    color: white;
    border: 1px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
    padding: 5px 10px;
    margin: 10px auto;
    text-decoration: none;
    display: inline-block;
}

.heroblock a:hover {
    background: var(--mid);
}

.dotbox {
    text-align:center;
    position: absolute;
  bottom: 20px;
  left: calc(50% - 25px);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* PAGE LAYOUT */

.background { /* Image in the background of each page */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--mid);
    background-image: url("./images/css/background.png"), url("./images/css/clouds.png");
    background-repeat: no-repeat, repeat-y;
    background-position: left bottom, left top;
    background-size: 100% auto, 100% auto; 
    }

.content { /* Space for text on each page, on top of the background */
    background-color: #FDFDFD;
    border: solid var(--dark) 3px;
    border-top: none;
    margin-bottom: 20px;
    width: 75%;
    padding: 15px 30px 30px 30px;
}

.tagline { /* Line of text below the page's content */
    background-color: var(--mid);
    border: solid var(--dark) 3px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px 0 7px 0;
    width: 75%;
    color: #fff;
    font-weight: bold;
    font-size: smaller;
}

.tagline img {
    padding: 4px 15px 0 15px;
}

footer { /* Footer at the bottom of each page */
    max-width: 100%;
    background-color: var(--dark);
    border-top: solid black 3px;
    padding: 20px 20px;
    color: white;
    font-size: clamp(0.75rem, 0.75vw, 0.75rem);
    text-align: center;
}

footer a { /* Links in the footer */
    color: white;
    text-decoration: none;
}

.footerbuttons {
    width: calc(75% + 20px);
    margin: auto;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.footerbuttons div {
    width: 28%;
    min-width: 228px;
    max-width: 300px;
    height: 60px;
    background: var(--mid);
    text-align: left;
}

.footerbuttons img {
    margin: 10px;
    float: left;
    width: 40px;
    height: 40px;
}

.footerbuttontitle {
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 11px 0 5px 0;
}

footer p { /* Text in the footer */
    margin: 2px;
}

#myBtn { /* Button to return to the top of the page */
    display: none;
    position: fixed;
    bottom: 13px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--extradark);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
}

#myBtn:hover { /* Change the colour of the button on hover */
    background-color: var(--mid);
}

/* HOME PAGE LAYOUT */

.homecontent { /* Space for text on each page, on top of the background */
    background-color: #FDFDFD;
    border: solid var(--dark) 3px;
    border-top: none;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    width: 75%;
}

main { /* Wider left column of home page */
    flex: 3;
    padding: 20px;
}

.homeintro { /* Intro paragraph */
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.hometitle {
    color:var(--mid);
    font-weight:bold;
    letter-spacing:2px;
    text-transform:uppercase;
    text-align:center;
}

.howtoplay {
    margin: auto;
    background: var(--light);
    padding: 20px 10px;
    display: flex;
    text-align: center;
    width: min-content;
}

.howtoplay div {
    padding: 0 10px;
    text-align: center;
    width: 150px;
}

.howtoplay div:nth-child(1) {
    border-right:1px solid grey;
}

.howtoplay div:nth-child(3) {
    border-left:1px solid grey;
}

#playnow {
    background:var(--dark);
    padding:10px;
    color:white;
    border:1px solid white;
    text-transform:uppercase;
    font-weight:bold;
    letter-spacing:1px;
    width:470px;
    margin:10px auto;
    font-size:larger;
    text-align:center;
    display: block;
    text-decoration: none;
}

#playnow:hover {
    background: var(--mid);
}

.alt1 { /* Feature box, aligned left */
    text-align: left;
    background: var(--panel);
    border: 0;
    margin-bottom: 20px;
    padding: 15px;
    overflow: hidden;
}

.alt1 img { /* Feature box, aligned left - puts the image on the left */
    float: left;
    padding-right: 15px;
}

.alt1 p, .alt2 p { /* Feature box, formats the text*/
    margin: 5px 0;
    overflow: hidden;
}

.alt1 h3, .alt2 h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.alt1 ul {
    overflow: hidden;
    margin: 0 auto;
}

.alt2 { /* Feature box, aligned right */
    text-align: right;
    background: #E8E8E8;
    border: 0;
    margin-bottom: 20px;
    padding: 15px;
    overflow: hidden;
}

.alt2 img { /* Feature box, aligned right - puts the image on the left */
    float: right;
    padding-left: 15px;
}

aside { /* Thinner right column of home page */
    flex: 1;
    background-color: var(--light);
    padding: 20px;  
    padding-top: 5px;
}

aside img { /* Allows images in the sidebar to shrink as needed */
    max-width: 100%;
    height: auto;
}

aside h4 {
    margin-top: 30px;
}

aside a { /* Links in the sidebar */
    color: #000;
    text-decoration: none;
}

aside li { /* Bullets in the sidebar */
    margin: 5px;
}

.plot {
    margin-top: 25px;
    margin-bottom: 0;
    background: #D7E8DF;
    padding: 0 10px 15px 10px;
    text-align: center;   
}

.plot:before { 
    background: var(--dark);
    border: 1px solid #fff;
    content: "Current Plot";
    display: block;
    position: relative;
    left: 50%;
    top: -7px;
    width: max-content;
    margin-left: -55px;
    padding: 5px 10px;
    color: #fff;
    font-weight: bold;
}

.events, .chronicle {
    padding: 6px 12px;
    background-color: #D7E8DF;
    margin-bottom: 8px;
    font-size: small;
}

.chronicle a, .events a {
    outline: none;
    text-decoration: none;
}

/* GENERAL ELEMENTS */

.pagecontents-two {
   display: flex;
   max-width: 100%;
}

.maintext {
   flex-grow: 1;
}

.maintext li {
    padding-bottom: 15px;
}

.maintextcontents {
   width: 300px;
   margin-left: 25px;
   flex-shrink: 0;
}

.altmaintextcontents {
   width: 270px;
   margin-left: 15px;
   flex-shrink: 0;
   display: flex;
   flex-wrap: wrap;
   align-items: flex-start;
   align-content: flex-start;
   align-self: flex-start;
   position: sticky;
   top: 10px;
}

.altmaintextcontents a {
    text-decoration: none;
    color: #000;
}

.maintextcontents ul {
   background: var(--light);
   position: sticky;
   top: 30px;
   padding-top: 10px;
   padding-bottom: 10px;
   padding-right: 10px;
}

.maintextcontents li {
   margin-left: 10px;
   padding-bottom: 7px;
}

.maintextcontents a {
   text-decoration: none;
   color: #000;
}

.breadcrumbs {
    background: var(--dark);
    color: #fff;
    font-size: clamp(0.75rem, 0.75vw, 0.75rem);
    font-variant: small-caps;
    padding: 3px;
}

.breadcrumbs a {
    text-decoration: none;
    color: #fff;
}

.breadcrumbs i {
    padding: 0 3px;
}

.codeexample {
    background: #E8E8E8;
    padding: 0px 8px 8px 8px;
    font-family: 'Courier New', monospace;
    width: 70%;
    margin: 40px auto 20px auto;
    font-size: clamp(0.85rem, 0.85vw, 0.85rem);
}

.codeexample:before {
    content: "Example";
    color: var(--dark);
    font-family: "Bahnschrift Light", "Proxima Nova", sans-serif;
    font-weight: bold;
    font-variant: small-caps;    
    display: block;
    position: relative;
    right: 6px;
    top: -15px;
}

.box { /* General box with border*/
    text-align: center;
    border: solid #849AA5 3px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.longlist > li {
    margin-bottom: 10px;
}

.pagelist, .homelist {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.longimg {
    width: 100%;
    margin-bottom: 0;
}

.sqimg {
    float: left;
    margin: 5px 25px 10px 10px;
}

.pagelist > div {
    width: 32%;
    background: var(--panel);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #a6aaac
}

.homelist > div {
    width: 49%;
    background: var(--panel);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--mid);
    border-left: 4px solid var(--dark);
    font-size: smaller;
}

.homelist p {
    margin: 0 auto;
    overflow: hidden;
}

.pagelist p {
    overflow: hidden;
}

.homelist strong {
    font-size: medium;
}

.homelist img {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    margin-bottom: 1px;
}

/* 
.flashy > div {
    padding-top: 15px;
}
*/

.flashy > div:hover {
    background: #ddd;
}

.pagelist a {
    text-decoration: none;
}

.pagelist p {
    margin-bottom: 0;
}

.gridbox {
  display: grid;
  grid-template-areas:
  'main contents';
  grid-template-columns: 1fr minmax(150px,300px);
  grid-template-rows: 1fr;
  column-gap: 40px;
  justify-content: start;
  align-content: start;
}

.gridmain {
   grid-area: main;
}

.gridcontents {
   grid-area: contents;
   position: sticky;
   top: 15px;
   align-self: start;
}

.gridcontents div {
   background: var(--light);
   margin-bottom: 25px;
}

.gridcontents ul {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

.gridcontents li {
   margin-left: 10px;
   padding-bottom: 7px;
   padding-right: 10px;
}

.gridcontents a {
   text-decoration: none;
   color: #000;
}

.intro {
    background: var(--panel);
    padding: 1px 15px;
    margin-top: 8px;
}

/* THE GAME PAGES */

.threebox, .twobox { /* 3 box spread */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    margin: 20px 0 10px 0;
}

.threebox > div > img { /* 3 box spread */
    height: 20px;
    width: auto;
    margin: 0 auto;
}

.threebox ul, .twobox ul {
    margin: 0;
}

.threebox li, .twobox li {
    padding-bottom: 5px;
}

.threebox > div { /* Formatting of each box in 3 box spread */
    width: 210px;
    text-align: left;
    border: solid #849AA5 3px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background: var(--panel);
    margin-bottom: 20px;
}

.twobox > div { /* Formatting of each box in 3 box spread */
    width: 47%;
    min-width: 300px;
    text-align: left;
    border: solid #849AA5 3px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    background: var(--panel);
    margin-bottom: 20px;
}

.question {
    width: 100%;
    background: var(--mid);
    color: #fff;
    font-weight: bold;
    padding: 5px 5px 5px 10px;
    margin-bottom: 10px;
    display: flex;
}

.question:before {
    background: url('./images/css/fleurdelis-right.png') no-repeat top center;
    content: "";
    display: block;
    height: 18px;
    width: 18px;
    position: relative;
    left: -4px;
}

.answer {
    margin-bottom: 25px;
}

/* HELP PAGES */

.helptip {
    background: var(--panel);
    width: 85%;
    margin: 25px auto;
    border: 0;
    padding: 8px 8px 8px 35px;
    text-indent: -30px;
}

.helptip:before {
    background: url('./images/icons/tip.png') no-repeat top center;
    content: "";
    display: inline-block;
    height: 25px;
    width: 25px;
    position: relative;
    top: 3px;
}

.example-image {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.example-image img {
    padding: 10px;
    width: 175px;
}

.weapon {
    width: 100%;
    display: flex;
    margin-bottom: 30px;
}

.weaponstats {
    width: 200px;
    background: var(--mid);
    padding: 5px;
    font-weight: bold;
    text-align: center;
}

.weapontitle {
    background: var(--dark);
    padding: 5px;
    color: #fff;
    margin: 3px;
}

.card {
    border: 1px solid #000;
    padding: 3px 6px;
    margin: 4px 1px 7px 1px;
    position: relative;
    display: inline-block;
    color: #fff;
}

.card::before {
    text-align: center;
    color: rgb(238, 237, 237);
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    top: 35px;
    left: -100%;
    visibility: hidden;
}

.card:hover::before {
    visibility: visible;
}

.card::after {
    content: '';
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    position: absolute;
    bottom: -10px;
    margin-left: -50%;
    visibility: hidden;
}

.card:hover::after {
    visibility: visible;
}

.strong {
    background: red;
}

.strong::before {
    content: 'Strong';
    background-color: red;
}

.strong::after {
    border-bottom: 10px solid red;
}

.precise {
    background: green;
}

.precise::before {
    content: 'Precise';
    background-color: green;
}

.precise::after {
    border-bottom: 10px solid green;
}

.quick {
    background: blue;
}

.quick::before {
    content: 'Quick';
    background-color: blue;
}

.quick::after {
    border-bottom: 10px solid blue;
}

.level {
  background-color: var(--extradark);
  border: none;
  color: white;
  padding: 5px;
  font-size: small;
  width: 55px;
  text-align: center;
  text-decoration: none;
  margin: 6px auto;
  display: inline-block;
  cursor: pointer;
}

#ohsbasic, #csbasic {
    background: #879CC9;
}

.weaponabils {
    flex-shrink: 2;
    flex-basis: 90%;
    height: 100%;
}

.ability {
    font-weight: bold;
    padding: 5px;
    background: var(--mid);
    color: #fff;
}

.abdesc {
    padding: 5px;
    border: 2px solid var(--mid);
}

.abdesc ul {
    margin-top: -3px;
    margin-bottom: 0;
}

.abdesc::after, .row::after, .homelist div::after {
  content: "";
  clear: both;
  display: table;
}

.cooldown {
    float: right;
    font-style: italic;
    padding-right: 5px;
}

.ranged {
    display: flex;
    width: stretch;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.ranged img {
    width: 175px;
    padding: 5px;
}

.altatoz {
    height: 35px;
    width: 35px;
    background: var(--light);
    padding: 10px;
    margin: 5px;
    text-align: center;
}

.altatoz:hover {
    background: #a6aaac;
}

.dictionary ul {
    columns: 4 125px;
}

.dictionary li {
    padding-bottom: 2px;
}

#atcommands {
  border-collapse: collapse;
  width: 100%;
}

#atcommands td, #atcommands th {
  border: 1px solid #ddd;
  padding: 8px;
  scroll-margin-top: 44px;
}

#atcommands tr:nth-child(even){background-color: var(--panel);}

#atcommands tr:hover {background-color: #ddd;}

#atcommands th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: var(--mid);
  color: white;
  position: sticky;
  top: 0;
}

.charbox {
  display: grid;
  grid-template-areas:
  'intro portrait'
  'description portrait'
  '. portrait';
  grid-template-columns: 1fr minmax(300px,400px);
  grid-template-rows: auto auto auto;
  column-gap: 30px;
  row-gap: 20px;
  justify-content: start;
  align-content: start;
  margin-top: 15px;
}

.charintro {
   grid-area: intro;
   background: var(--light);
   padding: 10px;
   align-self: start;
}

.chardesc {
   grid-area: description;
   align-self: start;
}

.charimg {
   grid-area: portrait;
}

.charimg img {
    max-width: 100%;
    border: solid var(--dark) 3px;
}

.helpbullets {
    columns: 2 320px;
    margin: 10px auto;
}

/* CHANGES WHEN VIEWED ON TABLETS - HORIZONTAL */

@media screen and (max-width: 1300px) {
    .pagelist {
        justify-content: space-around;
    }
    .pagelist > div {
        width: 45%;
    }
}

/* CHANGES WHEN VIEWED ON TABLETS - VERTICAL */

/* CHANGES WHEN VIEWED ON MOBILE - HORIZONTAL (1150) */

@media screen and (max-width: 960px) {
    .homecontent {
       width: 95%;
    }
    .content {
       width: 95%;
    }
    .tagline {
       width: 95%;
    }
    .nomob, .herotext {
       display: none;
    }
    .herotitle {
        font-size: 20px;
    }
    .homelist {
        justify-content: center;
    }
    .homelist div {
        width: 95%;
    }
.footerbuttons div {
    min-width: unset;
}
}

/* CHANGES WHEN VIEWED ON MOBILE - VERTICAL */

@media screen and (max-width: 426px) {
    .desktopmenu, aside img, .alt1 img, .alt2 img, .weapon img, .footerbuttontitle, .slideshow-container {
       display: none;
    }
    .burger {
       display: inline-block;
    }
    .navbar {
        border-bottom: solid 2px black;
    }
    .homecontent {
       flex-direction: column;
       width: 100%;
       border-left: 0;
       border-right: 0;
    }
    .content {
       flex-direction: column;
       width: 100%;
       border-left: 0;
       border-right: 0;
    }
    .alt2 {
       text-align: left; 
    }
    .pagelist > div {
        width: 100%;
        margin: 0 0 20px 0;
    }
    h1 {
        margin-bottom: 20px;
    }
    .pagecontents-two {
       flex-direction: column-reverse;
    }
    .maintextcontents {
       width: 100%;
       margin: auto;
    }
    .altmaintextcontents {
       width: 100%;
       margin: auto;
       padding-bottom: 10px;
       justify-content: center;
       position: static;
    }
    .threebox {
       flex-direction: column;
    }
    .threebox > div, .twobox > div {
       width: 100%;
       margin-bottom: 10px;
       justify-content: space-between;
    }
    .tagline {
       width: 100%;
       border-left: 0;
       border-right: 0;
    }
    footer {
       flex-direction: column;
       align-items: flex-start;
    }
    #myBtn {
       bottom: 15px;
       right: 15px;
    }
    .gridbox {
       display: grid;
       grid-template-columns: 1fr;
       grid-template-rows: auto auto auto;
       column-gap: 0;
    }
    .gridmain {
       grid-row: 2;
       grid-column: 1;
    }
    .gridcontents {
      display: contents;
      position: static;
    }
    .gridcontents *:first-child {
      grid-row: 1;
      grid-column: 1;
    }
    .gridcontents *:last-child {
      grid-row: 3;
      grid-column: 1;
    }

    .gridlinks {
        margin-top: 30px;
    }

    .charbox {
      display: grid;
      grid-template-areas:
      'intro'
      'description'
      'portrait';
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      row-gap: 20px;
      justify-content: start;
      align-content: start;
      margin-top: 15px;
    }
    .weapon {
        flex-direction: column;
    }
    .ranged img {
        width: 85%;
    }
    .weaponstats, .weaponabils, .weapontitle {
        width: stretch;
    }
    .level {
        width: calc(100%/3 - 15px);
    }
    .card {
        margin: 4px 1px 4px 1px;
    }
    .footerbuttons div {
        width: 60px;
    }
    .howtoplay {
        flex-direction: column;
        padding: 10px 20px;
    }

    .howtoplay div {
        padding: 20px 0;
    }

    .howtoplay div:nth-child(1) {
        border-bottom:1px solid grey;
        border-right: none;
    }

    .howtoplay div:nth-child(3) {
        border-top:1px solid grey;
        border-left: none;
    }
    #playnow {
        width:60%;
    }
    .mobbanner {
        display: block;
    }
}