* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------------------------- Header CSS --------------------------*/
/*Bilden*/
header {
  background-image: url("pictures/computer_header.jpg");
  position:relative;
  background-position:center;
  background-size: cover;
  height: 35em;
  display:flex;
}

/*nav-border*/
.menu {
  width: 100%;
  position: relative;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  background-color: rgb(90, 122, 212);
  font-size: large;
  font-weight: bold;
}

.nav-menu li a {
  display: flex;
  text-transform:uppercase;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 10px;
  font-family:monospace;
}


.nav-menu li a:hover {
  opacity: 0.5;
}

.nav-menu li {
  margin: 0.5em 1em;

}

.search img {
  width: 40px;
  height: auto;
}

.search img input{
  position: relative;
  display: flex;
  top: 8px;
  right: 20px;
}

.search:hover {
  cursor: pointer;
}

.menu .search {
  display: flex;
  align-items: center;
  margin-right: 30px;
}
.menu .search input{
  width: 15em;
  height: 2em;
  border-radius: 6px;
}

.nav-menu div .search {
  display: flex;

}

/* ---------------------------- Header CSS slut --------------------------*/

/* -------------------------- Internets historia CSS --------------------------*/

.articles {
  margin: 3%;
  background-color: rgb(243, 238, 232);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
}

.articles h3 {
  color: rgb(64, 104, 224);
  border: 2px solid black;
  border-bottom-right-radius:8px;
  background-color: rgba(238, 224, 208, 0.712);
  font-size: x-large;
  width: 30%;
  height: auto;
  padding: 10px;
  text-align: center;
}

.content-inside {
  font-family: monospace;
  font-size: medium;
  letter-spacing: 1px;
  color: rgb(19, 50, 124);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.content-inside img {
  width: 200px;
  height: auto;
  position: relative;
}

.sources {
  text-align: right;
  padding: 0 2rem 2rem 0;
}



/* -------------------------- Internets historia slut --------------------------*/

/* -------------------------- Tim Berners Lee CSS --------------------------*/


.wrapper {
  margin: 5%;
  border: 1px solid black;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  background-color: rgb(237, 237, 237)
}

h1 {
  text-decoration: underline solid rgb(88, 144, 199);
  margin-bottom: 2rem;
  color: rgb(88, 144, 199);
  text-align: center;
  padding-top: 40px;
  font-size: 40px;
}

article {
  margin :4rem;
  padding: 2rem;
  background-color: rgba(238, 224, 208, 0.712);
  border: 1px solid black;
  border-radius: 14px;
}

.text-box {
  display: block;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  font-size: 17px;
}

#info-box1 .content-img {
  display: flex;
  float: left;
  width: 300px;
  margin: 10px;
  margin-right: 2rem;
  border: 3px solid rgb(65, 104, 143);
}

#info-box2 .content-img {
  display: flex;
  float: right;
  width: 300px;
  margin: 10px;
  margin-left: 2rem;
  border: 3px solid rgb(65, 104, 143);
}

#info-box3 .content-img {
  display: flex;
  float: left;
  width: 300px;
  margin: 10px;
  margin-right: 2rem;
  border: 3px solid rgb(65, 104, 143);
}

#info-box4 .content-img {
  display: flex;
  float: right;
  width: 300px;
  margin: 10px;
  margin-left: 2rem;
  border: 3px solid rgb(65, 104, 143);
}

/* ------------------------ Tim Berners Lee CSS slut --------------------------*/

/* --------------------------- Agile metod -----------------------------*/

.main-site {
  margin: 5%;
}

.agile-info {
  background-color: rgb(237, 237, 237);
  border: 1px solid black;
  border-radius: 14px;
}

.agile-info article {
  border: 1px solid black;
  margin-bottom: 20px;
  padding: 3rem;
  border-radius: 14px;
}

.manifesto li {
  list-style:decimal-leading-zero;
  padding: 2rem;
}

#scrum-list li {
  list-style: disc;
  padding: 0.5rem;
}

.agile-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.agile-wrap h3 {
  padding: 1rem;
}

.video-container {
  position: relative;
  overflow:hidden;
  display: block;
  text-align: center;
  margin-bottom: 2rem;
}
/* ------------------------ Agile metod slut --------------------------*/

/* ------------------------- Popup-form -------------------------------*/
.popup-newsletter {
  position:fixed;
  left: 0%;
  bottom: 10%;
  display:flex;
  width: 2em;
  height: 6em;
  overflow: hidden;
  border: 2px dotted black;
  border-radius: 0px 8px 8px 0px;
  transition: width 1s ease;
}

.popup-newsletter:hover {
  height: 35em;
  width: 25em;
}

.frame-newsletter {
  background-color: rgb(238, 224, 208);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px;
}

.newsletter-form #email {
  border-radius: 12px;
  width: 15rem;
  height: 2rem;
  padding: 8px;

}

.newsletter-form figure img {
  width: 200px;
  height: auto;
  margin-bottom: 10px;
}

.newsletter-form button {
  background-color: rgb(17, 76, 160);
  color: white;
  width: 100px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid black;
  margin-top: 20px;
}

.newsletter-form button:hover {
  background-color: rgba(17, 77, 160, 0.776);
}

.newsletter-form figure{
  padding: 2rem;
}
/* ---------------------------- End popup-form --------------------------*/

/* ---------------------------- Footer CSS --------------------------*/
footer {
  background-color: rgb(90, 122, 212);
  padding: 70px 0;
}

.footer-container {
  max-width: 1170px;
  height: 8em;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

ul {
  list-style: none;
}

.column {
  width: 25%;
  padding: 0 15px;
  border-bottom: 1px solid white;
}
 .column h4 {
  color: white;
  padding-bottom: 10px;
  font-size: 20px;

 }

 .column .social-media a {
  display: inline-block;
  justify-content: center;
  padding-top: 15px;
  height: 50px;
  width: 50px;
  text-align: center;
  color: white;
  border: 1px solid white;
  border-radius: 50%;
  margin-right: 10px;
  margin-bottom: 10px;

}

.column ul li a {
  color: white;
  text-decoration: none;
}

.column ul li a:hover {
  color: white;
  padding-left: 8px;
}

.rights p {
  display:flex;
  justify-content: center;
  color: white;
}

/* ---------------------------- Footer CSS slut --------------------------*/

/* MEDIA REQUIER MEDIUM SCREEN*/
@media (max-width: 768px) {
  body {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  img {
    width: 100%;
  }
  
  .column {
    width: 50%;
    margin-bottom: 5rem;
  }
  .footer-container {
    height: auto;
  }
  .main-content {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
  }

  .wrapper {
    padding: 0;
    margin: 0;
  }

  .main-site {
    margin: 0;
  }

  .video-container {
    width: 100%;
    height: 100%;
    overflow: auto;
  }

  .articles h3 {
    min-width: 140px;
  }

  iframe {
    width: 100%;
    height: auto;
  }
}

/* MEDIA REQUIER SMALL SCREEN*/
@media (max-width: 540px) {
  .column {
    width: 100%;
  }

  article #info-box1 #info-box2 #info-box3 #info-box4{
    margin: 0;
    padding: 0;
  }

  .main-site {
    margin: 0;
    padding: 0;
  }

  .agile-wrap {
    margin: 0;
  }

  img {
    width: 100%;
  }

  .video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .popup-newsletter:hover {
    width: 100%;
    display:flex;
  }

  #www {
    width: 80%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
  }
}
