body {
    background-color: #33321a;
    color: white;
    margin:0px;
    margin-bottom: 300px;
    font-family: Arial, Helvetica, sans-serif;
}

footer{
    left:0;
    bottom:0;

    padding:30px
}

header{
    position:sticky;
    left:0;
    right:0;
    top:0;
    background-color: #33321a;
    border-bottom: 1px solid white;
}

article{
    margin-bottom: 80px;
}

a{
    color:rgb(7, 90, 185);
}

@font-face {
    font-family: "Blackwood Castle";
    src: url("https://db.onlinewebfonts.com/t/e3a9ca7686ddde7cd60e67c364056e4b.woff");
}

#obradinn{
    font-family: "Blackwood Castle"; 
    font-size:xx-large;
}

@font-face {
    font-family: "Karmina";
    src: url("https://db.onlinewebfonts.com/t/3fbead11062985cb8e9cfdf51cc0c544.woff");
}

#thewitness{
    font-family: "Karmina"; 
    font-size: xx-large;
}

@font-face {
    font-family: "DIN";
    src: url("https://db.onlinewebfonts.com/t/43c793eb9fcfce5efd986389cceb93d0.woff");
}

#portal {
    font-family: "DIN";
    font-size: xx-large;
    font-weight:bolder;
}

.gallery_image{
    width:auto;
}

@media screen and (min-width: 800px){
    .gallery_image{ min-width: 200px;
}
    section.submissions{
    text-align: center;
}
    .maingrid{
        grid-template-columns: 1fr 2fr 1fr;
        text-align: left;
    }
    .gallery_BBS{ 
        min-width: 200px;
        max-width: 100%;
}

#BBS-3, #BBS-2, #BBS-4, #BBS-5{
    width:48%;
    clear:none;
}

.toparea img{
    padding-top: 20px;
    padding-bottom: 5px;
    padding-left: 47.5%;
    width: 5%;
}

.steam{
    float:right;
}

}

@media screen and (max-width:1000px){
.toparea img{
    visibility: hidden;
    height: 0px;
}


.gallery_image{ min-width: 300px;
}
.gallery_BBS{ min-width: 300px;
}

}

#BBS-1, #BBS-2, #BBS-3, #BBS-4, #BBS-5{
    margin:5px;
}


h1#navtitle {
    padding: 0px;
    margin:0px;
    text-align: center;
    padding-bottom: 5px;
}

#navbar ul {  
    display: flex;
    list-style-type: none;    
    justify-content: center;  
    flex-wrap: wrap;
    padding:0;
}

#navbar {
    top: 0;
    position: sticky;
    overflow: hidden;
    background-color: #33321a;
}

#navbar a {
    padding: 1vw;
    text-align: center;
    color:white; 
}

#navbar a:hover {
    background: white;
    color: black;
}




.maingrid{
    display: grid;
    grid-auto-flow: row;
    gap: 3px;
    padding: 3px;
    margin: 20px;
    grid-column: 2;
}

.content{
    grid-column: 2;
    margin-bottom: 30px;
}

span::selection{
    background-color: #111111;
    color: #111111;
}

div.mainpword{
    display:inline;
}
div.mainpword::selection{
    background-color: black;
}



/*---------------------- PUZZLES ----------------------------*/

h2{
    padding-top:50px;
}

/* SUDOKU STYLING */

table#sudoku{
    border-collapse: collapse;
    text-align: center;
}

table#sudoku td{
    border: 1px solid white;
    padding: 10px;
    width:30px;
    height:30px;
}

div#sudoku_table{
    display:inline-flex;
    align-items: center;
}

table#sudoku td:first-child,table#sudoku td:nth-child(4),table#sudoku td:nth-child(7){
    border-left: 3px solid white;
}

table#sudoku td:nth-child(9){
    border-right:3px solid white;
}

table#sudoku tfoot{
    border-right:3px solid white;
    border-bottom:3px solid white;
    padding: 10px
}

table#sudoku tr.rowtopborder{
    border-top:3px solid white;
}

td.table_solution{
    background-color:grey;
}

#sudoku_solution:invalid{
    border: 2px solid red;
}

#sudoku_solution:valid{
    border: 2px solid green;
}

/* END SUDOKU STYLING */








/* NONOGRAM STYLING */

div#nono_table{
    display:inline-flex;
    align-items: center;
}

table#nono{
    border-collapse:collapse;
}
#nono input{
    box-sizing: border-box;
    appearance: none;
    background: white;
    width: 50px;
    height: 50px;
    padding: 0px;
    margin: 0px;
}

table#nono td{
    width:50px;
    height:50px;
    line-height: 0px;
}

#nono input:checked{
    background: grey;
}

/* END NONOGRAM STYLING */

/*---------------------- END OF PUZZLES ----------------------------*/



input#lockinput{
    background-image: url('images/locked.png');
    background-repeat: no-repeat;
    font-size: large;
    text-align: center;
    position: absolute;
    left: 50%;
    transform:translateX(-50%);
    bottom: 10%;
    width: 20vw;
    height: 25vw;
    margin-bottom: 50px;
    margin-top: 300px;
}

input#lockinput:valid{
  display:none;
}

#cat{
    position: absolute;
    left: 50%;
    transform:translateX(-50%);
    bottom: 10%;
    width: 20vw;
    height: 25vw;
    margin-bottom: 50px;    
    margin-top: 300px;
}


.gallery_image{
    width: 50%;
}





/*--------------- FORM CSS ----------------*/

@media screen and (max-width: 600px){
#form_input_comment{
    width:90%;
    height:80px;
}
input{
    margin:7px;
}

    .maingrid{
        text-align: center;
    }
}

@media screen and (min-width: 600px){
    #form_input_comment{
    display: flex;
    float: right;
    padding: 8px;
    margin: 2vw;
    width:40%;
    height:3vw;
}
}

.forminputdiv{
    display:flex;
    justify-content: center;
    padding: 10px;
}

.form_input_label{
    padding:10px;
    margin: 10px;
}

.submitform input{
    padding: 10px;
}

#radio_field{
    display: flex;
    float: left;
    padding: 1vw;
    margin: 2vw;
}

#submission_button{
    margin: 1vw;
    width:70px;
    height:35px;
}



