@import url('https://fonts.googleapis.com/css2?family=Barlow&family=Barlow+Semi+Condensed:wght@400;600&display=swap');

main{
  width: 60%;
  min-width: 600px;
  margin: auto;
  font-family: "Barlow", sans-serif;
  color: #007FA3;
}

#logo{
  width: 100px;
  margin-top: 45px;
}

section{
  width: 50%;
  padding-bottom: 20px;
  font-size: 1.2em;
}

.tillbaka{
    display: block;
    border-radius: 50px;
    width: 150px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1.2em;
    background-color: #007FA3;
    color: white;
    text-align: center;
    text-decoration: none;
}

.tillbaka:is(:hover, :focus-visible){
    background-color: #B52555;
}

h1{
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 4em;
  margin-top: 10px;
  margin-bottom: 20px;
}

nav{
  display: flex;
  flex-wrap: wrap;
}

.elev{
  display: block;
  width: 150px;
  height: 90px;
  padding-top: 60px;
  margin-right: 5px;
  margin-bottom: 5px;
  border-radius: 50%;
  font-size: 1.2em;
  background-color: #007FA3;
  color: white;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.elev:hover, #tidigare:hover{
  background-color: #B52555;
}

#tidigare{
  background-color: #003C71;
}

footer{
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

#under_construction{
  width: 30%;
  padding-top: 100px;
  display: block;
  margin: auto;
}


@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes crazySpin {
  0% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(0, 255, 255, 0.8),
                0 0 30px rgba(0, 255, 255, 0.6),
                0 0 40px rgba(255, 0, 255, 0.4),
                0 0 50px rgba(255, 255, 0, 0.2);
    background-color: #007FA3;
  }
  25% {
    transform: rotate(90deg) scale(1.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8),
                0 0 40px rgba(255, 69, 0, 0.6),
                0 0 60px rgba(255, 140, 0, 0.4),
                0 0 80px rgba(255, 215, 0, 0.2),
                0 0 100px rgba(255, 255, 0, 0.1);
    background-color: #FF4500;
  }
  50% {
    transform: rotate(180deg) scale(1.4);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8),
                0 0 60px rgba(0, 255, 69, 0.6),
                0 0 90px rgba(0, 255, 140, 0.4),
                0 0 120px rgba(0, 255, 215, 0.2),
                0 0 150px rgba(0, 255, 255, 0.1);
    background-color: #32CD32;
  }
  75% {
    transform: rotate(270deg) scale(1.2);
    box-shadow: 0 0 40px rgba(0, 0, 255, 0.8),
                0 0 80px rgba(0, 69, 255, 0.6),
                0 0 120px rgba(0, 140, 255, 0.4),
                0 0 160px rgba(0, 215, 255, 0.2),
                0 0 200px rgba(0, 255, 255, 0.1);
    background-color: #1E90FF;
  }
  100% {
    transform: rotate(360deg) scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(0, 255, 255, 0.8),
                0 0 30px rgba(0, 255, 255, 0.6),
                0 0 40px rgba(255, 0, 255, 0.4),
                0 0 50px rgba(255, 255, 0, 0.2);
    background-color: #007FA3;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-150px);
  }
  40%, 80% {
    transform: translateY(-75px);
  }
  60% {
    transform: translateY(-100px);
  }
}


#daniel {
  transition: box-shadow 0.5s ease-in;

}

#daniel:hover {
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.8),
              0 0 40px rgba(255, 255, 0, 0.6),
              0 0 60px rgba(255, 215, 0, 0.4),
              0 0 80px rgba(255, 140, 0, 0.2),
              0 0 100px rgba(255, 69, 0, 0.1);
              animation: crazySpin 4s infinite;
}

#samuel {
  border-radius: 50%;
  background-image: url('https://i1.sndcdn.com/artworks-wiB1toLANV1Az4S4-UeNmjA-t500x500.jpg');
  background-position: center;
  background-size: 120%;
 transition: transform 0.3s ease-in-out;
}

#samuel:hover {
  transform: scale(0.95);
}

#martin:hover{
    transition: 0.5s;
    transform: rotate( 360deg);
    background-color: #29c502;
}

#vilmer {
   background-image: url("vilmer/img/pfp.png");
  background-size: cover;       /* fyller hela bubblan */
  background-position: center;  /* centrerar bilden */
  background-repeat: no-repeat;
}

#vilmer:hover {
  transform: scale(0.95);
}

@media (max-width:600px){
  main{
    width: 90%;
    min-width: 300px;
  }

  section{
    width: 80%;
  }

  h1{
    font-size: 3em;
  }
}
