/* 
 * Prov i CSS del I och II 
 * 
 * namn: 
 */

/* Headlines */

body {
  font-size: 20px;
}

#container {
  margin-left: 20px;
  margin-right: 20px;
  width: 80%;
  padding: 20px;
  border: solid 10px;
}

/* Del I - Start */

/* Del I - Slut */

/* Del II uppgift 1 - Start */

/* Del II uppgift 1 - Slut */

/* Del II uppgift 2 - Start */

/* Del II uppgift 2 - Slut */

#banner {
  text-align: left;
}

#news,
#calendar {
  background-color: white;
}

.story,
.event {
  border: solid 5px;
}

.event {
  color: green;
}

.story {
  color: blue;
}

#footer {
  text-align: center;
}

@media only screen and (min-width: 800px) {
  #container {
    display: flex;
    flex-direction: column;
  }

  #banner {
    font-size: 64px;
    background-color: white;
    border: solid 20px;
  }

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

  #news,
  #calendar {
    border: solid 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  #news,
  #calendar {
    width: 25%;
    display: flex;
    flex-direction: column;
    font-size: 8px;
    height: 800px;
    background-color: white;
  }

  .story {
    display: flex;
    flex-direction: column;
    color: blue;
  }

  .story h1 {
    margin-bottom: 1px;
  }

  .event {
    display: flex;
    flex-direction: column;
    color: green;
  }

  #main {
    width: 50%;
    height: 800px;
    padding: 10px;
    margin: 10px;
  }

  #footer {
    background-color: black;
    color: yellow;
    padding: 20px;
    margin: 20px;
    font-size: 40px;
  }
}

@media only screen and (max-width: 800px) {
  /* Del II uppgift 2 - Start */

  /* Del II uppgift 2 - Slut */

  #container {}

  #banner {
    font-size: 48px;
    font-weight: bold;
    text-decoration: underline;
    padding: 10px;
    margin: 10px;
  }

  #news,
  #calendar {
    border: solid 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  #main {
    font-size: 12px;
  }
}
