:root {
    --bodyfont: sans-serif;
    --headerfont: serif;
    --titlefont: serif;

   
    --pagebg: url("https://lutzbug.neocities.org/assets/darkthemebg.png"); /*Main background color*/ #945600;

	--boxbg: url("https://lutzbug.neocities.org/assets/Planetbg4.png"); /*Content background color*/
	--color:#c6bcf1;
	--headers:#c6bcf1;
	
	--link:#c6bcf1;
	--linkhover:#bcf1bc;

    --titlecolor:#fcf0e0;

	--sidebarbg:  url("https://lutzbug.neocities.org/assets/Planetbg4.png");
	--menubg: none;
	--menucolor: #c6bcf1;
  --menubghover: #100e25;
  --menucolorhover:#bcf1bc;
  --menuborder: #100e25;
    
	--formbg:#f1dec4;
	--formcolor:#621B00;
	
	--detailsbg:#f1dec4;
	--hr:#621B00;

}



/* Alternate colors */
/* Replace "dark" with "light" and add your light mode colors here if you want your site to be in dark mode by default */
@media (prefers-color-scheme: light) {
    :root {
    --bodyfont: sans-serif;
    --headerfont: serif;
    --titlefont: serif;

   
    --pagebg: url("https://lutzbug.neocities.org/assets/darkthemebg.png"); /*Main background color*/ #945600;

	--boxbg: url("https://lutzbug.neocities.org/assets/Planetbg2.png"); /*Content background color*/
	--color: #100e25;
	--headers: #100e25;
	
	--link: #100e25;
	--linkhover: #100e25;

    --titlecolor:#fcf0e0;

	--sidebarbg:  url("https://lutzbug.neocities.org/assets/Planetbg4.png");
	--menubg: none;
	--menucolor: #c6bcf1;
  --menubghover: #100e25;
  --menucolorhover:#bcf1bc;
  --menuborder: #100e25;
    
	--formbg:#f1dec4;
	--formcolor:#621B00;
	
	--detailsbg:#f1dec4;
	--hr:#621B00;
}
}







* { margin: 0; padding: 0; }
img { margin:2px; max-width: 100%; height:auto; }

body { 
    background: var(--pagebg);
    color:var(--color);
    font: 1rem sans-serif; 
    letter-spacing:.5px;
}

#skip a {
    position:absolute;
    display:inline-block;
    left:0px;
    top:-1000px;
    overflow:hidden;
    background:var(--boxbg);
    color:var(--link);
    z-index:1000;
    padding:5px;
}
 
#skip a:focus {
    top: 0;
    transition:top 0.5s ease;
}

#container {
    display:flex;
    flex-wrap:wrap;
}


/* MENU */

#sidebar-container {
    flex: 1 1 calc(10% - 20px);
    min-width: 150px;
    box-shadow:1px 1px 3px rgb(0,0,0,0.5);
    background:var(--sidebarbg);
    border-style: Groove;
    border-color: var(--menuborder);
    border-radius: 10px;
}

#sidebar {
    position:sticky;
    width: calc(100% - 20px);
    padding:10px;
    text-align:center;
    font:1.0rem var(--headerfont);
    top:10px;
}

#main-navigation ul { list-style-type:none; }
#main-navigation li { margin-bottom:5px; }

#main-navigation li a {
    text-decoration: none; 
    display:inline-block;
    width:90%;
    background:var(--menubg);
    padding:10px;
    text-align:center;
    color:var(--menucolor);
    border: 0.5px solid var(--menuborder);
    border-color: var(--menuborder);
    border-radius: 10px;
}

#main-navigation li a:hover, nav li a:focus {
    background:var(--menubghover);
    color:var(--menucolorhover);
}

/* HEADER */

#main-header {
    font: 1.5em var(--titlefont);
    color: var(--menucolorhover);
    font-style: bold;
}

/* CONTENT */

main {
    padding:10px;
    display:flex;
    flex-wrap:wrap;
    flex: 1 1 calc(85% - 20px);
}

main section, #footer {
    padding:15px;
    margin:12px;
    background: var(--boxbg);
    border-style: Groove;
    border-color: var(--menuborder);
    border-radius: 10px;
}


#footer {
    text-align:center;
    margin-top:20px;
    flex: 1 1 100%;
    padding:15px;
    background: var(--boxbg);
    border-color: var(--menuborder);
    box-shadow:1px 1px 1px rgb(0,0,0,0.5);
}

main a {
    color:var(--link);
}

main a:hover, main a:focus {
    color: var(--linkhover);
}

main a img:hover, main a:focus img {
    opacity:0.7;
}

img:hover {
  
  transform:rotate(1deg);
}

main p {
    margin:10px 0px 10px 0px;
    line-height:1.4;
}

main h1 {
    font:2em var(--headerfont);
    margin:5px 0 5px 0;
    color:var(--headers);
    border-radius:7px;
    border-bottom:7px groove  var(--menuborder);
}

main h2 {
    margin:10px 0 10px 0;
    font:1.7em var(--headerfont);
    color:var(--headers);
}

main h3 {
    margin:5px 0 5px 0;
    font: 1.4em var(--headerfont);
    color:var(--headers);
}

main h4 {
    font:1.2em var(--headerfont);
    margin:5px 0 5px 0;
    color:var(--headers);
}

main input, textarea, select, button { 
    background: var(--formbg);  
    color: var(--formcolor);
    font: 1rem var(--bodyfont); 
    border: 1px solid var(--hr); 
    padding: 5px; 
    margin: 5px;
}

main ul, ol { 
    list-style-position: outside;
}

main li {
    margin:5px 0 5px 0;
    line-height:1.4;
    margin-left: 30px;
}

main summary {
    cursor:pointer;
    margin: 5px 0px 5px 0px;
}

main details {
    padding:8px;
    background:var(--detailsbg);
    margin:5px 0 5px 0;
    border-radius:5px;
}

main hr {
    border:0.5px solid var(--hr);
    margin:20px;
}

main table {

  border-radius: 10px;
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #1f1c4a;
} 

tr:hover {background-color: var(--boxbg)
}

/* Textbox */
  .scrollbox {
  color: var(--boxtext); 
  background-color: var(--boxbg);
  padding: 18px;
  font-family: Monospace;
  max-height: 130px;
  overflow: auto;
  border-style: groove;
  border-color: var(--menuborder);
  border-width: 4px;
  border-radius: 10px;
  }
  

/* Create two equal columns that floats next to each other */
.column {
  float: left;
  width: 50%;
  padding: 7px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 768px) {
  .column {
    width: 100%;
    float: none;
  }
}

div.gallery {
  border: 2px Groove #1f1c4a;
    border-radius: 10px;
  margin-bottom: 20px;
}

div.gallery:hover {
    background: #100e25;
}

div.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px Groove #1f1c4a;
}

div.desc {
  padding: 15px;
  text-align: center;
  overflow-y: scroll;
  max-height: 120px;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media screen and (max-width: 768px) {
  .responsive {
    width: 100%;
    float: none;
    padding: 6px 0;
  }
  
    div.desc {
    max-height: none;
    overflow-y: visible;
  
  
}

/* FLEX AND GRID */

.flexcontainer {
    display:flex;
    flex-wrap:wrap;
    margin:auto;
}

.full { flex: 1 1 calc(100% - 30px);}
.half { flex: 1 1 calc(50% - 55px); }
.third { flex: 1 1 calc(33% - 55px); }
.twothird { flex: 1 1 calc(66% - 55px); }
.quarter { flex: 1 1 calc(25% - 60px); }
.threequarter { flex: 1 1 calc(75% - 55px); }

.gridcontainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 10px;
    margin:auto;
}

@media screen and (max-width: 1024px) {    
    main {
        padding:0;
        flex: 0 0 100%;
        display:block;
    }

    .flexcontainer {
        display:block;
    }

    #footer {
        margin-top: 20px;
    }

    #sidebar-container {
        flex:0 0 100%;
    }
    
    #sidebar {
        position:relative;
        height:auto;
        text-align:center;
        margin-bottom:1em;
    }

    #main-navigation li {
        display:inline-block;
        margin-bottom:.75em;
    }
    
    #main-navigation li a {
        display: inline;
    }
}