/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #396b53;
  --content-background-color: #fcffdf;
  --sidebar-background-color: #fcffdf;
  --header-background-color: #9dd4ae;
  --header-image: url('img/header1.png');
  --body-bg-image: url('img/bg_check03_03.gif');

  /* Text Colors: */
  --text-color: #396b53;
  --sidebar-text-color: #396b53;
  --link-color: #e89e83;
  --link-color-hover: #9dd4ae;

  /* Text: */
  --font: url(fonts/MonaspaceArgon-Regular.woff);
  --heading-font: url(fonts/euxoi_memesbruh03_01102018.ttf);
  --font-size: 14px;

  /* Other Settings: */
  --margin: 0px;
  --padding: 20px;
  --border: none;
  --round-borders: 0px;
  --sidebar-width: 230px;
}


@font-face {
    font-family: main-font;
    src: url('fonts/MonaspaceArgon-Regular.woff');
}

@font-face {
    font-family: main-font;
    src: url('fonts/MonaspaceArgon-Bold.woff');
    font-weight: bold;
}

@font-face {
    font-family: main-font;
    src: url('fonts/MonaspaceRadon-Italic.woff2');
    font-style: italic;
}

@font-face {
    font-family: main-font;
    src: url('fonts/MonaspaceRadon-BoldItalic.woff');
    font-style: italic;
    font-weight: bold;
} 

@font-face {
  font-family: heading-font;
  src: url(fonts/Biscuit\ Glitch.ttf);
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: 'main-font';
  line-height: 1.2;
  background: var(--background-color);
  background-image: var(--body-bg-image);
  cursor: url('img/catcursor.png'), pointer;
  
}

::selection {
  /* (Text highlighted by the user) */
  background: var(--link-color-hover);
}

mark {
  /* Text highlighted by using the <mark> element */
  background-color: var(--link-color);
  color: var(--text-color);
  padding: 2px;
  border-radius: 4px;
}

/* Links: */
a {
  text-decoration: none;
}

a,
/* a:visited {
  color: var(--link-color);
} */

a:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}

hr {
  border: 1px solid var(--link-color);
}
/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  width: 1200px;
  display: grid;
  grid-gap: var(--margin);
  grid-template: "header header header" auto "leftSidebar main rightSidebar" auto "footer footer footer" auto / var(--sidebar-width) auto var(--sidebar-width);
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-area: header;
  font-size: 1.2em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--header-background-color);
}

.header-content {
  padding: 0;
}

.header-title {
  font-family: 'heading-font';
  font-size: 4.5em;
  font-weight: bold;
  padding-right: 30px;
  padding-top: 20px;
  text-align:right;
  letter-spacing: 5px;
}

.header-image img {
  width: 100%;
  height: auto;
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

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

.left-sidebar {
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.2em;
  font-family: var(--font);
  color:var(--link-color);
}

.sidebar-section:not(:last-child) {
  margin-bottom: 3em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* Sidebar Blockquote: */

.sidebar-section blockquote {
  background: var(--sidebar-background-color);
  padding: 15px;
  margin: 1em 0;
  border:solid 1px var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  color:var(--text-color);
  font-size: smaller;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

.sidebar-section img.centered {
  display: block;
  margin: auto;
  padding-bottom: 5px;
}

#statuscafe {
    padding: 3px;
    font-family: 'main-font';
}
#statuscafe-username {
    margin-bottom: .5em;
}
#statuscafe-content {
    margin: 0 0.5em 0.5em 0.5em;
}

/* Site Button: */

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}

.todolist li {
  list-style-image: url(img/tiny/pencil.gif);
}

/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  grid-area: footer;
  overflow: hidden;
  font-size: 1em;
  padding: 15px;
  background: var(--header-background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer a,
footer a:visited {
  color: var(--content-background-color);
}

footer a:hover,
footer a:focus {
  color: var(--background-color);
}

/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 0em;
}

nav .sidebar-title {
  margin-bottom: 0em;
}

nav ul {
  margin: 0 -5px;
  padding-left: 20px;
  list-style: none;
  user-select: none;
}

nav ul li {
  margin-bottom: 0;
  padding-left: 10px ;
}

nav > ul li > a,
nav > ul li > strong {
  display: inline-block;
}

nav > ul li > a,
nav > ul li > details summary,
nav > ul li > strong {
  padding: 5px 5px;
}

nav > ul li > a.active,
nav > ul li > details.active summary {
  color: var(--header-background-color);
  text-decoration: none;
  background-color: var(--content-background-color);
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
  transition:color 0.5s ease-in-out;
  background-color: var(--content-background-color);
  color:var(--header-background-color);
}

nav ul ul li > a:hover {
    color: var(--link-color);
    background-color: var(--content-background-color);
}

/* NAVIGATION IN HEADER */

header nav {
  margin-bottom: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

header nav ul li {
  position: relative;
  
}

header nav li a {
    color: var(--header-background-color);
    font-weight: 800;
    text-decoration: none;
    background-color: var(--content-background-color);
    border-radius: 10px 10px 0px 0px;
    padding: 8px;
    transition: color 0.5s ease-in-out, background-color 0.5s ease-in-out;    
}

header nav li a:hover {
    color: var(--content-background-color);
    text-decoration: none;
    background-color: var(--header-background-color);
}

/* Subnavigation (Drop-Down): */

header nav ul ul {
  background: var(--content-background-color);
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  padding: 0.5em;
  z-index: 1;
  border: var(--border);
  min-width:max-content;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
}

header nav ul li:hover ul,
header nav ul li:focus-within ul {
  display: block;
}

header nav ul li strong {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: normal;
}

header nav ul ul li a {
  display: block;
  padding-left: 0;
  padding-right: 5px;

}

/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

main {
  line-height: 1.5;
}

main a,
main a:visited {
  color: var(--link-color);
  font-style: italic;
  font-weight: bold;
}

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  text-decoration-style: wavy;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main blockquote {
  background: var(--background-color);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  color: var(--content-background-color);
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

main center {
  margin: 1em 0;
  padding: 0 1em;
}

main hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--font);
  margin-bottom: 0;
  line-height: 1.5;
  color:var(--link-color);
}

main h1:first-child,
main h2:first-child,
main h3:first-child,
main h4:first-child,
main h5:first-child,
main h6:first-child {
  margin-top: 0;
}

main h1 {
  font-size: 1.5em;
  text-align:center;
}

main h2 {
  font-size: 1.4em;
  text-align:center;
}

main h3 {
  font-size: 1.3em;
  text-align:center;
}

main h4 {
  font-size: 1.2em;
}

main h5 {
  font-size: 1.1em;
}

main h6 {
  font-size: 1em;
}

ul.leaf li {
  list-style-image: url(img/tiny/leaf.gif);
}

/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

.idbuttons {
  width: 150px;
  float: right;
  margin:auto;
  padding: 10px;
}

.idbuttons img {
    transition: scale 0.2s;
    transition-timing-function: ease-in;
    
}

.idbuttons img:hover {
    scale: 130%;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

.buttons img {
    padding-left: 3px;
    padding-bottom: 3px;
}

.buttons img:hover {
    transform: translateY(-2px) translateX(-2px);
}

.stamps {
    width: inherit;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.stamps img{
    margin: 5px;
    height:55px;
    width: 99px;
}

.divider {
    display:block;
    margin-left:auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;  
}

.scrollbox {
  display:flex;
  flex-direction: column;
  margin:auto;
  width: 100%;
  height: 220px;
  overflow: scroll;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), url(img/cloudsbg.png);
  background-position: center;
  font-size: smaller;
  scrollbar-width: thin;
}

.column-box {
  width: 50%;
  height: 300px;
  overflow: auto;
  margin: 10px;
  padding: 15px;
  border: 1px solid var(--link-color);
  border-radius: 15px;
}

table#favorites {
  border: 1px solid var(--link-color);
  border-radius: 15px;
  border-spacing: 0;
  margin: 10px;
}


table#favorites td {
  padding: 10px;
  border-bottom: 1px solid var(--link-color);

    &:nth-child(odd) {
    width: 120px;
  }
}
table#favorites tr:last-of-type td {
  border: none;
}

.outlink:after {
content:url(img/outlink2.png);
padding-left:3px;
vertical-align:top;
}



/* -------------------------------------------------------- */
/* CONTENT IMAGES */
/* -------------------------------------------------------- */

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.images img {
  width: 350px;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow:hidden;
}

.spin-image {
  transition-property: scale, rotate;
  transition-duration: 0.3s, 0.3s;
  transition-timing-function: ease-in-out;
}

.spin-image:hover{
  rotate: -5deg;
  scale: 110%;
}

/* -------------------------------------------------------- */
/* MODAL IMAGE GALLERY */
/* -------------------------------------------------------- */

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0 15px;
}

.gallery-item {
  position: relative;
  width: calc(25% - 20px);
  height:auto;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
  overflow:hidden;
  object-fit: cover;
}

.gallery-item:hover {
  transform: scale(1.1);
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 20px;
  width: auto;
  height: 90%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* Modal content (image) */
.modal-content {
  position: relative;
  width: 90%;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  border-radius: 5px;
  overflow: hidden;
}


.modal.show {
  display: flex;
  opacity: 1;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Caption of modal image */
.caption {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 14;
  padding-left: 5px;
  padding-right: 5px;
}

@media screen and (max-width: 480px) {

  .modal {
    height: 100%;
    top: 0; 
  }
}
/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

/* please do not remove this. */

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    grid-template: "header" auto  "main" auto "leftSidebar" auto "rightSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  
  

  aside {
    border-bottom: 1px solid;
    padding: 9px;
    font-size: 0.9em;
  }

  
  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}