:root{
  --gridOpacity: 0.95;
}



canvas {
    background-color: #1A1815;
  }

div{
  font-family: 'blocky';
}

.slideShow{
  position: relative;
  margin: auto;
}
.projectSlide {
  display: none;
  position: relative;
  padding-left: 5%;
  padding-right: 5%;
}

body {
  /*overflow-x: hidden;  Hide vertical scrollbar */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  margin: 0;
}

h1{
  color: #555D71;
  z-index: 2;
  font-size: 40px;
  font-family: 'Blocky';
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
h2{
  color: #bb9c6a;
  position: relative;
  z-index: 2;
  font-size: 35px;
  font-family: 'Blocky';
}

h3{
  color: #1A1815;
  position: relative;
  z-index: 2;
  font-size: 30px;
  font-family: 'Blocky';
}

a{
  outline: none;
  text-decoration: none;
}


a:link {
  color: #768ab6;
}

a:visited {
  color: #555D71;
}

a:focus {
  border-bottom: 1px solid;
  color: #86a2de;
}

a:hover {
  border-bottom: 1px solid;
  background: rgba(237,145,33,0.1);
}

a:active {
  background: rgba(237,145,33,0.1);
  color: #86a2de;
}

.grid{
  display: grid;
  gap: 2rem;
  grid-template-columns: 25% 25vw 12vw;
  grid-template-rows: 72vh auto auto;
  padding: 10px;
  /*background-color: #FFBF00;*/
  opacity: var(--gridOpacity);
  z-index: 2;
  position: relative;
}

.grid > div{
  display: block;
  /*background-color:rgba(247,231,205,0.8);*/
  position: relative; 
  z-index: 2;
  border: 4px dashed black;
  background-color: rgba(50,30,134,0.85);
  padding-left: 20px;
  padding-right: 20px;
  font-size: 30px;
  text-align: center;
}

.container3 > .post{
  display: block;
  /*background-color:rgba(247,231,205,0.8);*/
  position: relative; 
  z-index: 2;
  border: 4px dashed black;
  background-color: rgba(50,30,134,0.85);
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 30px;
  text-align: center;
}

div.mobile-display{
  opacity: var(--gridOpacity);
}

div.mobile-display > div.mobileContainer{
  display: block;
  /*background-color:rgba(247,231,205,0.8);*/
  position: relative; 
  z-index: 2;
  border: 4px dashed black;
  background-color: rgba(50,30,134,0.85);
  padding-left: 10px;
  padding-right: 10px;
  font-size: 40px;
  text-align: center;
  min-width: 75vw;
}

div.constantSize{
  min-height: 80vh;
}

div.mobileContainer{
  float: left;
  clear: left;
  margin: 10px;
  width: 95vw;
}


div.container {

}

div.container1{
  grid-row-start: 1;
  grid-row-end: 3;
}
div.container2{
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column-start: 1;
  grid-column-end: 4;
}
div.container3{
  grid-column-start: 3;
  grid-column-end: 5;
}


div.container.isActive {
  display: block;
  /*background-color:rgba(247,231,205,0.8);*/
  position: relative; 
  z-index: 2;
  border: 4px dashed orangered;
}


/*  COLOUR SCHEME:
  Foreground:#F7E7CD
  Background:#1A1815
  Cursor color:#87281F
  Selection background: #8C452B

  Black:#33302A
  Red: #E34234
  Green: #FF7F50
  Yellow: #E25822
  Blue: #FF6600
  Purple:#ED9121
  Cyan: #FFBF00
  White: #F7E7CE

*/
p {
    opacity: 1;
    color: #ab3100; /*Kanske byta denna färg #E34234*/
    font-size: 28px;
    font-family: 'blocky';
    z-index: 2;
    /*margin-left: 5px;*/
    overflow: hidden;
    position: relative;
    text-align: left;
}

.typewrite{
  white-space: normal;
  animation: blink 0.9s steps(2, start) infinite;
}

/**
.typewrite::after{
  position: absolute;
  content: "█";
  color: yellow;
  font-size: 28px;
  animation: blink 900ms cubic-bezier(1,-0.07,.01,1.08) infinite;
  z-index: 0;
   animation: blinker 0.9s steps(2, start) infinite; 
}
*/

@keyframes blinker {
  to { 
    visibility: hidden; 
  }
}

.glcanvas{
  height: 100vh!important;
  width: 100vw!important;
  padding: none;
}

.canSelect{
  background-color: aquamarine;
  color: black;
  white-space: normal;
  opacity: 1;
  animation: fadeIn 0.3s;
}

#background_scene{
  position: fixed; 
  top: 0px; left: 0px; 
  width: 100vw; height: 100vh; 
  z-index: 0; 
  opacity: 1;
}

#hidden{
  display: none;
}
/*Slideshow buttons*/
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: black;
  font-size: 35px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
  left: 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(237,145,33,0.5);
  color: orangered;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@-webkit-keyframes fade {
  0% {opacity: .4}
  100% {opacity: 1}
}
@-moz-keyframes fade {
  0% {opacity: .4}
  100% {opacity: 1}
}

@-webkit-keyframes blink{
  0%{background-color: rgba(237,145,33,1); color: rgba(135,40,31,1);}
  100%{background-color: rgba(237,145,33,0);}
}

@-moz-keyframes blink{
  0%{background-color: rgba(237,145,33,1); color: rgba(135,40,31,1);}
  100%{background-color: rgba(237,145,33,0);}
}

@keyframes blink{
  0%{background-color: rgba(237,145,33,1); color: rgba(135,40,31,1);}
  100%{background-color: rgba(237,145,33,0);}
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}


::-moz-selection { /* Code for Firefox */
  color: #33302A;
  background: #FFBF00;
}

::selection {
  color: #33302A;
  background: #FFBF00;
}

@font-face {
  font-family: 'blocky';
  src: url("Font/blocky.ttf");
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

.mobile-display{display:none}
.desktop-display{display:block}
@media only screen and (max-width:1000px){
  .desktop-display {display:none}
  .mobile-display {display:block}
}