@font-face {
  font-family: "Rocher";
  src: url(./fonts/RocherColorGX.woff2);
}

@font-palette-values --Mint {
  font-family: "Rocher";
  base-palette: 7;
}

/* Nollställ margin och padding för alla element och styr detta själv */
* {
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden; /* Tillåt inga scrollningar på x axeln */
}

.cons-pic {
  display: flex;
  justify-content: center; /* Centrerar innehållet i headern */
  align-items: center;
  width: 100%; /* Se till att headern fyller hela bredden */
  position: relative; /* För att placera sociala ikoner till höger */
}

/* Basinställningar för body */
body {
  background: linear-gradient(to bottom, #001f2e, #00384d);
  background-attachment: fixed;
  color: #ffffff;
  font-family: "Fira Code", monospace;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  overflow-y: auto; /* Scrolla om det behövs */ 
}

/* Inställningar för headern */
.header {
  background: #001f2e;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 10px;
  color: #00ffcc;
  margin-bottom: 20px; /* Skapa ett avstånd mellan headern och navbaren */
  width: 100%;
  border-bottom: 1px solid #00b3a6;
  animation: blinkBorder 2s infinite;
}

/* Inställningar för texten i headern (Loggan) */
.header h1 {
  font-family: "Rocher";
  text-align: center;
  font-size: 50px;
  font-palette: --Mint;
  text-transform: uppercase;
  margin: 0;
}

/* Inställningar för typewriter texten i headern */
.header p {
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap; /* Gör så att typewriter texten inte byter rad */  
}

/* Inställningar för content inuti headern */
.header-content {
  display: flex;
  justify-content: center; /* Centrerar innehållet i headern */
  align-items: center;
  width: 100%; /* Se till att headern fyller hela bredden */
  position: relative; /* För att placera sociala ikoner till höger */
}

.socials-container {
  display: flex;
  gap: 10px;
  position: absolute;
  right: 25px;
  bottom: 0;
}

.socials-container a {
  background-color: white;
  padding: 0.8em;
  border-radius: 50%;
  height: 52px;
  width: 52px;
  box-sizing: border-box;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.socials-container a svg {
  height: 26px;
}

.socials-container a::before {
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.4em 0.8em;
  border-radius: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-25px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(0.42, 0, 0.44, 1.68);
  font-size: 0.9em;
}

.socials-container a:hover {
  background-color: var(--accent-color);
  fill: white;
}

.socials-container a::after {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(0.42, 0, 0.44, 1.68);
}

.socials-container a:hover::before {
  transform: translateY(-55px) rotate(0);
  opacity: 1;
}

.socials-container a:hover::after {
  transform: translateY(-35px) rotate(0);
  opacity: 1;
}

/* Navbar */
.navbar {
  /* display: flex; */
  background: #001f2e;  
  width: 100%;

  /* justify-content: center; */
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.navbar li {
  margin: 0 10px;
}

.navbar a {
  padding: 10px 25px;
  display: block;
  background-color: transparent;
  text-decoration: none;
  color: #0ff;
  border: 2px solid #0ff;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.navbar a:hover {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 20px #0ff;
}

.navbar menu{
    display: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  pointer-events: none;
  border-radius: 0.5rem;
  background-color: #001f2e;  
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-content a {
  color: #0ff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background: #0ff;
}

@media (max-width: 500px) {
  .navbar menu{
        display: block;
  }

  .dropdown-content{
    background-color: transparent;
  }

  .dropdown-content a{
    width: 4rem;
    background-color: #001f2e;
  }

  .navbar-middle-right, .navbar-right, .navbar-middle-left{
    display: none;
    /* width: 2rem; */
  }

  .navbar ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
  }

 body {
    overflow-y: unset;    
    max-height: none;
 }
  
}

/* Flexbox för att centrera innehåll */
.main-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Boxen */
.box {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1),
    rgba(0, 179, 166, 0.1)
  );
  border: 2px solid #00b3a6; /* Grön ram */
  padding: 20px;
  color: #ffffff; /* Terminalgrön text */
  font-family: "Courier New", monospace;
  text-align: left;
  margin: 20px;
  max-width: 600px;
  width: 100%; /* Gör så att boxen är responsiv */
  border-radius: 6px;
  animation: blinkBorder 2s infinite; /* Blinkande ram */
  box-sizing: border-box;
}

.box-p{
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
  color: #0ff;
  margin-bottom: 2rem;
}

.box label {
  color: #0ff;  
}

.box input, textarea {
  height: 1.5rem;
  width: 100%;
  font-size: 1.3rem;
}

.box input:focus::placeholder, textarea:focus::placeholder {
  color: transparent;  
}

.box textarea {
  height: 10rem;
  resize: none;
}

.submit {
  margin-top: 0.8rem;
  height: 2rem;
  width: 5rem;
}

/* Blinkande ram */
@keyframes blinkBorder {
  0%,
  100% {
    border-color: #00b3a6;
  }
  50% {
    border-color: #00f7ff;
  } /* Växlar mellan grön och blå */
}

@media (max-width: 1100px) {
  .socials-container {
    position: static;
    justify-content: center;
    margin-top: 15px;
  }

  .header-content {
    flex-direction: column;
  }
}

.form__submit {
  margin-top: 0.7rem;
  width: 4.5rem;
  height: 2rem;
}


.title {
  font-size: 2em;
  font-weight: bold;
}

.subtitle {
  font-size: 0.83em;
  font-weight: bold;
}

.code__title, .info {
  display: block;
}

.carousel {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  width: 100%;
}

.carousel__scene {
  position: relative;
  width: 510px;
  height: 460px;
  max-width: 95vw;
  padding-top: 150px;
  perspective: 1000px;
  overflow: hidden;
}

.carousel__controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* padding: 10px; */
  position: absolute;
  right: 15px;
}

.previous-button, .next-button {
  margin: 5px 0;
  padding: 5px;
  width: 50px;
  height: 50px;
  font-family: monospace;
  font-weight: bold;
  font-size: 2rem;
  border: 3px solid #0ff;
  border-radius: 10px;
  background-color: #444;
}

.previous-button:focus, .next-button:focus {
  outline: none;
  box-shadow: 0 0 6px 3px #0ff;
}

.carousel__list{
  width: 460px;
  height: 160px;
  margin: 0;
  padding: 0;
  position: absolute;
  transform: translateZ(-288px);
  transform-style: preserve-3d;
  transition: transform 1s;
  list-style: none;
  counter-reset: list-counter;  
}

.carousel__cell {
  position: absolute;
  width: 100%;
  height: 140px;
  max-width: calc(95vw - 20px);
  left: 2px;
  /* top: 10px; */
  border: 2px solid white;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-align: center;
  transition: transform 1s, opacity 1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  counter-increment: list-counter;
  background-color: rgba(128, 128, 128, 0.75);
  /*filter: blur(2px);*/
}

.carousel__a{
  text-decoration: none;
  color: white;  
}

.carousel__cell::before {
  content: counter(list-counter);
  color: white;
  text-shadow: 2px 2px black;
  width: 40px;
  height: 40px;
  line-height: 40px;
}

.carousel__cell.selected {
  color: #0ff;
  border-color: #0ff;
  border-width: 5px;
  /*filter: none;*/
}

.carousel__cell.selected .carousel__a{
  color: #0ff;
}

.carousel__cell.selected::before {
  color: #0ff;
}

.carousel__cell:nth-child(1) { transform: rotateX(  0deg) translateZ(288px); }
.carousel__cell:nth-child(2) { transform: rotateX( 40deg) translateZ(288px); }
.carousel__cell:nth-child(3) { transform: rotateX( 80deg) translateZ(288px); }
.carousel__cell:nth-child(4) { transform: rotateX(120deg) translateZ(288px); }
.carousel__cell:nth-child(5) { transform: rotateX(160deg) translateZ(288px); }
.carousel__cell:nth-child(6) { transform: rotateX(200deg) translateZ(288px); }
.carousel__cell:nth-child(7) { transform: rotateX(240deg) translateZ(288px); }
.carousel__cell:nth-child(8) { transform: rotateX(280deg) translateZ(288px); }
.carousel__cell:nth-child(9) { transform: rotateX(320deg) translateZ(288px); }

.blog_form2 {
  text-align: center;  
}

.blog_form2>input, button,p {
  margin-bottom: 0.5rem;   
}

.divblog {
  border: solid white 0.1rem;
  padding: 0.5rem;
  margin-bottom: 1rem;  
}

.divblog>h1, h2 {
  color: #0ff;
}

.divblog>p {
  color: #8eb5c7;
}

.nameOfPost {
  margin-bottom: 0.6rem;
}

.bredvid {
  display: flex;
  width: 100%;  
  flex-direction: row;    
}

.inne {
  width: 100%;
  margin-left: 5%;
}

.inne2 {  
  width: 100%;
  
}

@media (max-width: 430px){
  .carousel__cell {
    position: absolute;
    width: 70%;
    height: 140px;
    max-width: calc(95vw - 20px);
    /* left: 10px; */
    /* top: 10px; */
    border: 2px solid white;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: center;
    transition: transform 1s, opacity 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    counter-increment: list-counter;
    background-color: rgba(128, 128, 128, 0.75);
    /*filter: blur(2px);*/
  }
}

@media (max-width: 370px){
  .carousel__cell {
    position: absolute;
    width: 65%;
    height: 140px;
    max-width: calc(95vw - 20px);
    /* left: 10px; */
    /* top: 10px; */
    border: 2px solid white;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-align: center;
    transition: transform 1s, opacity 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    counter-increment: list-counter;
    background-color: rgba(128, 128, 128, 0.75);
    /*filter: blur(2px);*/
  }
}

