@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&family=Source+Serif+Pro:ital@0;1&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: "Source Serif Pro", serif;
  line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  font-family: "Source Sans Pro", sans-serif;
}

h1 {
  font-size: 1.7em;
}

h2 {
  margin-block-start: 8px;
}

.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #00466e;
}

.head {
  grid-area: header;
  background: url(images/headerbg.jpg) no-repeat;
  background-size: 100% auto;
}

.nav {
  grid-area: nav;
}

.content {
  grid-area: content;
  color: white;
  padding: 0 1ex 1ex 1ex;
}

.footer {
  font-family: "Source Sans Pro", sans-serif;
  grid-area: footer;
  background: rgba(0, 0, 0, 0.29);
  border-top: 1px solid rgba(255, 255, 255, 0.43);
  height: 70px;
  text-align: center;
}

.footer a {
  text-decoration: none;
}

.head a {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 400px;
}

.logo {
  width: 100%;
}

.wrapper {
  display: grid;
  grid-template-areas:
    "header"
    "nav"
    "content"
    "footer";
}

nav {
  font-family: "Source Sans Pro", sans-serif;
  /* font-family: "Fira Sans Extra Condensed", sans-serif; */
  font-size: 90%;
  /* min-height: 20px; */
}

nav ul {
  flex-direction: column;
  display: block;
  background: rgba(255, 255, 255, 0.6);
  list-style: none;
  padding: 0;
  margin: -33px auto 1em 54px;
  width: 90%;
  max-width: 15em;
  border-radius: 5px 0 5px 0;
  line-height: 1.2;
}

nav li {
  display: block;
  border-bottom: 1px solid grey;
}

nav li:first-child {
  border-radius: 5px 0 0 0;
}

nav li:last-child {
  /* language switch link */
  background: rgba(253, 128, 8, 0.6);
  border-radius: 0 0 5px 0;
  border-bottom: none;
}

nav li a {
  display: block;
  padding: 1ex 2ex 1ex 2ex;
  width: 100%;
  height: 100%;
}

nav a,
nav a:visited {
  text-decoration: none;
  color: black;
}

nav li a:hover,
nav li:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
}

#menu-button {
  margin: 7px 0 0 7px;
  width: 36px;
  height: 36px;
  background: url(images/close.png) no-repeat;
  background-size: 100% auto;
}

nav.hidden #menu-button {
  background: url(images/menu.png) no-repeat;
  background-size: 100% auto;
}

nav.hidden ul {
  display: none;
}

pre {
  display: inline-block;
  background-color: #eee;
  color: black;
  font-family: "Source Sans Pro", monospace;
  padding: 1em;
  border-radius: 0.5em;
}

code {
  font-family: "Source Sans Pro", monospace;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
a,
a:visited,
.bigbutton,
.bigbutton:visited {
  color: rgb(255, 255, 176);
}

a:hover,
.bigbutton:hover {
  color: rgb(255, 255, 136);
}

.bigbutton {
  font-family: "Source Sans Pro", sans-serif;
  display: block;
  text-decoration: none;
  font-size: 110%;
  padding: 1ex;
  width: 80%;
  margin: auto;
  border: 1px solid rgb(215, 217, 219);
  border-radius: 0.5ex;
  text-align: center;
  background: linear-gradient(rgb(40, 80, 122), rgb(60, 94, 135));
}

.bigbutton:hover {
  background: linear-gradient(rgb(60, 94, 135), rgb(40, 80, 122));
}

.callout {
  border: 1px solid white; 
  border-radius: 2ex; 
  float: right; 
  margin: 1ex; 
  padding: 1ex; 
  background-color: #005AAD;
}


/* ---- Form elements */

label {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 150%;
}

input[type=checkbox] {
  font-size: 300%;
}

button {
  padding: 0.5em;
  margin: 0.25em;
  font-size: 150%;
  font-family: "Source Sans Pro", sans-serif;
  border: 2px solid rgb(215, 217, 219);
  border-radius: 5px;
  background: linear-gradient(rgb(40, 80, 122), rgb(60, 94, 135));
  color: yellow;
}

button:disabled {
  border-color: darkgrey;
  background: lightgrey;
  color: darkgrey;
}

img {
  max-width: 90%;
}

@media (min-width: 400px) {
  .callout {
    max-width: 45%;
  }
}

@media (min-width: 700px) {
  .wrapper {
    grid-template-columns: 3fr 9fr;
    grid-template-areas:
      "header header"
      "nav    content"
      "footer footer";
    background: url(images/bg_plain.jpg) #00466e no-repeat;
    background-size: 100% auto;
    background-position: top 6px left 0;
  }
  
  h2 {
    margin-block-start: 0.83em;
  }

  nav {
    display: block;
  }

  nav ul {
    margin: 1.65em auto 0 30px;
    width: 90%;
  }

  nav.hidden ul {
    display: block;
  }

  .head a {
    display: block;
    margin: 30px 30px 30px 30px;
  }

  .en .head a {
    width: 400px;
  }

  .fr .head a {
    width: 452px;
    max-width: 452px;
  }

  .content {
    padding: 0 2em 4em 2em;
    padding-bottom: 45px;
    min-height: 546px;
  }

  #menu-button {
    display: none;
  }
}