/* Allmänt */
* {
  box-sizing: border-box;
}

body {
  background-color: rgb(235, 235, 235);
}

/* sektion bredd */
section {
  width: 80%;
  margin: auto;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(/web2/flexbox-teknikprogrammet/img/student_1200.png);
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0 5px 50px 5px;
  border-radius: 10px;
  box-shadow: 5px 3px 10px 1px rgb(0 0 0 / 0.2);
}

header h1 {
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  margin: 5px 0 0 0;
  padding: 5px;
  align-self: flex-start;
  width: 100%;
}

header p {
  margin: 5px;
  width: 33%;
  font-size: 2em;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Main */
main {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  padding-top: 20px;
  flex-wrap: wrap;
}

.information-box {
  display: flex;
  flex-direction: column;
  flex-basis: 200px;
  background-color: white;
  padding: 10px;
  justify-content: space-between;
  box-shadow: 5px 3px 10px 1px rgb(0 0 0 / 0.2);
  flex-grow: 1;
}

.information-box img {
  width: 100%;
}

.information-box__btn {
  align-self: flex-start;
  margin-top: auto;
  text-decoration: none;
  color: white;
  background-color: rgb(100, 112, 191);
  padding: 5px;
  border-radius: 3px;
}

/* FOOTER */
footer {
  display: flex;
  background-color: white;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 3px 5px 5px 1px rgb(0 0 0 / 0.1);
}

footer p {
  padding: 15px 20px;
  margin: 0;
  justify-content: space-between;
}

footer p:nth-child(1) {
  flex-grow: 0.5;
  flex-basis: 170px;
}

footer p:nth-child(2) {
  flex-grow: 2;
  background-color: rgb(150, 246, 255);
}

footer p:nth-child(3) {
  flex-grow: 0.5;
  flex-basis: 170px;
}
