:root {
    --primary-fg: #7efba2;
    --primary-bg: #1e2a1d;
    --secondary-fg: #fceeb6;
    --secondary-bg: #2a281d;

    --plain-fg: #FFF;
    --plain-bg: #000;
}

body {
    margin: 0px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #000;
    color: #FFF;
    user-select: none;
}

h1, h2 {
    display: block;
    padding: 0px;
    margin: 0px;
}

p {
    display: block;
    margin: 0px;
}

a {
    color: var(--secondary-fg);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    padding-left: 16px
}

hr {
    border-color: var(--primary-fg);
}

div {
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;   
    border: 0px solid red;
}

/* Small things*/
.button {
    display: inline-block;
    background-color: var(--primary-fg);
    color: #000;
    text-align: center;
    margin: auto;
    padding: 5px;
    border: 2px solid black;
}

input {
    width: 160px;
    display: inline-block;
    background-color: var(--primary-fg);
    color: #000;
    text-align: center;
    margin: auto;
    padding: 5px;
    border: 2px solid black;
    border-bottom: none;
}

/* Large things*/

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100vw;
    height: 100vh;
}

.overlay .button {
    position: fixed;
    right: 5px;
    top: 5px;
}

.overlay-pane {
    display: block;
    background-color: var(--plain-bg);
    color: var(--plain-fg);
    padding: 10px;
    padding-top: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    width: 100%;
    height: 100%;
}

/* Main Grid */
.parent {
    height: 100%;
    display: grid;
    grid-template-columns: 0px 1fr;
    grid-template-rows: 78px 1fr 30px;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    color: var(--primary-fg);
} 

.div1 { grid-area: 1 / 1 / 2 / 3; background-color: #000;}
.div2 { grid-area: 1 / 1 / 3 / 2; display: none; background-color: var(--primary-bg); padding: 12px; overflow: scroll;}
.div3 { grid-area: 2 / 1 / 3 / 3; }
.div4 { grid-area: 3 / 1 / 4 / 3; background-color: var(--plain-bg); padding: 3px; padding-left: 5px;} 

.div1 h1{
    margin-top: 10px;
    margin-left: 10px;
}
.div1 p{
    margin-left: 10px;
}
.div2 .button{
    width: 174px;
}
.current-seed-titlebar {
    display: block;
}
.div1 .options {
    position: fixed;
    right: 5px;
    top: 5px;
}
.div1 .generate {
    position: fixed;
    right: 5px;
    top: 40px;
}

.div3 {
    display: flex;
}

/* Inner Bingo Grid */
.bingo-parent {
    display: block;
    margin: auto;
    max-width: 800px!important;
    max-height: 800px!important;
    height: calc(100vh - 90px);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    background-color: var(--primary-bg);
    color: var(--primary-fg);
    border: 2px solid var(--primary-fg);
}

.bingo-parent.infomode {
    display: none;
}

.info-box {
    display: none;
    position: relative;
    padding: 16px;
    margin: auto;
    max-width: 800px!important;
    max-height: 800px!important;
    height: calc(100vh - 90px);
    width: 100%;
    background-color: var(--primary-bg);
    color: var(--primary-fg);
    border: 2px solid var(--primary-fg);
}

.info-box.infomode {
    display: block;
}

.info-box .button {
    position: absolute;
    top: 10px;
    right: 10px;
}

.bingo-div {
    border: 2px solid var(--primary-fg);
    padding: 8px;
    overflow: scroll;
    max-width: 200px;
    max-height: 200px;
}
.bingo-div h3 {
    margin: 0px;
    display: inline;
    position: relative;
    top: -11px;
    font-size: 22px;
}

.explination {
    display: none;
}

.description-text {
    background-color: transparent;
}

.special_box {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto a;
}

/* Full Width Screens*/
@media screen and (min-width: 768px){
    .parent {
        grid-template-rows: 60px 1fr 22px;
        grid-template-columns: 200px 1fr;
    }

    .div1 { grid-area: 1 / 2 / 2 / 3; }
    .div2 { grid-area: 1 / 1 / 3 / 2; display: block;}
    .div3 { grid-area: 2 / 2 / 3 / 3; }

    .div1 .button {
        display: none;
    }

    .current-seed-titlebar {
        display: none;
    }

}

.optionsbutton {
    position: fixed;
    top: 5px;
    right: 5px;
    display: none;
}

.showanyway .optionsbutton {
    display: block;
}

.showanyway .parent {
    grid-template-rows: 60px 1fr 22px;
    grid-template-columns: 100vw 0px;
}

.showanyway .div1 { grid-area: 1 / 2 / 2 / 3; display: none;}
.showanyway .div2 { grid-area: 1 / 1 / 3 / 2; display: block;}
.showanyway .div3 { grid-area: 2 / 2 / 3 / 3; display: none;}

.showanyway .div1 .button {
    display: none;
}

.showanyway .current-seed-titlebar {
    display: none;
}

/* Warning for tiny screens*/
.too-small-warning {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    color: #FFF;
    text-align: center;
    padding: 10px;
}

@media screen and (max-width: 300px) {
    .too-small-warning {
        display: block;
    }
}

@media screen and (max-height: 400px) {
    .too-small-warning {
        display: block;
    }
}

/* CHECKBOX */
.container {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 35px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

  }
  
  /* Hide the browser's default checkbox */
  .container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--primary-bg);
    border: 4px solid var(--primary-fg);
  }
  
  /* On mouse-over, add a grey background color */
  .container:hover input ~ .checkmark {
    background-color: #000;
  }
  
  /* When the checkbox is checked, add a blue background */
  .container input:checked ~ .checkmark {
    background-color: var(--primary-bg);
  }
  
  /* Create the checkmark/indicator (hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
  /* Show the checkmark when checked */
  .container input:checked ~ .checkmark:after {
    display: block;
  }
  
  /* Style the checkmark/indicator */
  .container .checkmark:after {
    left: 0px;
    top: 0px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-fg);
  }