/* FONT IMPORT */
@import url('https://fonts.cdnfonts.com/css/qartech');
@import url('https://fonts.cdnfonts.com/css/lower-pixel');
/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #000000;
  --content-background-color: rgba(48, 42, 46, 0.63);
  --sidebar-background-color: #5e26525e;

  /* Text Colors: */
  --text-color: #d6d3d3d0;
  --link-color: #e7d8d8d0;
  --link-color-hover: #5e26525e;

  /* Text: */
  --font: 'Lower Pixel', sans-serif;
  --heading-font: 'Lower pixel', sans-serif;
  --font-size: 17px;

  /* Other Settings: */
  --margin: 30px;
  --padding: 15px;
  --border:var(--content-background-color);
  --round-borders: 20px;
  --sidebar-width: 210px;

}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  box-sizing: border-box;
  
}


body {  
    background-image: url(https://media0.giphy.com/media/v1.Y2lkPWVjZjA1ZTQ3NWs2bHhzdWhiZ2lldTVsb3VhZG9xZGZkdThkcTcybGt1YWFrZmgydyZlcD12MV9naWZzX3JlbGF0ZWQmY3Q9Zw/dpv5T6nimfV9NU5g9z/giphy.webp);
 background-size: 100px;
    border-width: 10px;
  border-color: #000000;
  border-style:ridge;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1;
 

  
}

::selection {
  /* (Text highlighted by the user) */
  background:#5e265294;
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links: */
a {
  text-decoration: underline;
}

a,
a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
   grid-area: main;
  width: 1000px;
  height: fit-content;
  margin-top: -350px;
  display: grid;
  padding: 20px;
  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);
  margin-left: -250px;
  margin-right: -250px;
  margin-top: 250px;
  margin-bottom: -100px;
  padding: 20px;
  padding-bottom: 25px;
}


/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

/* tog bort grejor här*/

/* Journal: */

.entry {
  margin: 20px;
  background-color: #0000008f;
  padding: 15px;
  position: relative;
  border-radius: 0px;
  border-width: 10px;
  border-color: #000000;
  border-style:ridge;
  padding: 10px;
  max-height: 350px;
  overflow-y: scroll;
}


/* HEADER: */

header{
  margin-top: -10px;
  margin-bottom: 40px;
}

main h1 {  
  width: fit-content;
  display: flex;
  font-size: 2em;
  justify-self: center;
  padding: 15px;
}

#back {
  font-size: 17px;
  color:#eceaead5;
 float: right;
 line-height: 17px;
 margin-top: -97px;
 margin-right: 20px;
 background-color: #0000008f;
  border-radius: 0px;
  border-width: 10px;
  border-color: #000000;
  border-style:ridge;
  padding: 7px;
  padding-bottom: 6px;
  padding-top: 3px;
 
}

/* HEADINGS: */

main h2 {
  font-size: 1.2em;
}


/* COLUMNS: */

.two-columns {
  display: flex;
}

.two-columns > * {
  flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

/* -------------------------------------------------------- */
/* CONTENT IMAGES */
/* -------------------------------------------------------- */

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* 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: 700px) {
  body {
    font-size: 12x;
  }

  .layout {
    width:100%
    grid-template: "header" auto  "leftSidebar" auto "main" auto "rightSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }


 header {
  margin-top: -200px;
 }

.left-sidebar{     
  position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
margin-top: 520px;
height: fit-content;
}

.right-sidebar {
     position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
  height: fit-content;
  margin-top: 1400px;
}

  aside {
    width: 400px;
    border-bottom: 1px solid;
    padding: 9px;
    font-size: 0.9em;
    margin-left: 5px;
    
    
  }

  
  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 {
    margin-top: -90px;
    height:300px;
    position: relative;
    justify-content: center;
    max-width: 500px;
    padding: 15px;
  }

  .images {display: block;
  width: auto;
  height: auto;
  max-width: 100%;
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}

