/*Coloring*/
:root {
  --main-background-color: #ececec;
  --main-background-color-lighter: #f8f8f8;
  --header-color: #03413f;
  --header-shadow-color: #03413fc2;
  --header-font-color: white;
  --header-height: 100px;
  --header-height-smaller: 65px;

  --main-font-color: black;
}

/*All*/

* {
  margin: 0;
  padding: 0;
  /*  outline: 1px red dashed;*/
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;

  display: flex;
  justify-content: center;
  background-color: var(--main-background-color);
}

/*To center all*/

.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.row {
  flex-direction: row;
  flex-flow: wrap;
}

.column {
  flex-direction: column;
}

/*Usable on multiple pages*/

.spaced {
  margin: 30px 0 30px 0;
}

.distinct {
  background-color: var(--main-background-color-lighter);
  border-radius: 8px;
  padding: 20px;
}

/*Error Pages*/
.error_number {
  float: right;
  height: var(--header-height);
  margin-right: 100px;
}

.error_page_gif {
  width: 65vw;
}

.middle_of_page {
  height: 100%;
  justify-content: center;
}

/*HEADER AND CONTAINER*/
.header {
  background-color: var(--header-color);
  color: var(--header-font-color);
  box-shadow: 0 3px 4px var(--header-shadow-color);

  width: 100vw;
  height: var(--header-height);
  position: fixed;

  opacity: 1;
  transition: all 0.3s ease 0s;
  transition-delay: 0s;
}
.header a {
  text-decoration: none;
  color: var(--header-font-color);
}

.container {
  width: 60vw;
}

.under_menubar {
  margin-top: calc(var(--header-height) + 25px);
  width: 100%;
  height: 1px;
}
/* MENU BAR*/
.page_title {
  float: left;
  height: var(--header-height);
  margin-left: 100px;
}

.menubar {
  float: right;
  height: var(--header-height);
  margin-right: 100px;
}
.menubar a,
.menubar a:link,
.menubar a:visited {
  text-decoration: none;
  font-size: larger;
  font-variant: small-caps;
  transition: 0.15s;
  padding-left: 40px;
  color: var(--header-font-color);
}
.menubar a:hover,
.menubar a:active {
  transform: scale(1.2);
  transition: 0.15s;
}

/* -- IMAGES --*/
.image {
  max-width: 60vw;
  cursor: pointer;
  padding: 1px;
}
.image:hover {
  border: 1px solid black;
  padding: 0;
}

/*MOBILE VIEW VS DESKTOP VIEW*/

.mobile_view_only {
  display: none;
}
.desktop_view_only {
  display: flex;
}

/* ------- MOBILE VIEW -------- */
@media only screen and (max-width: 620px) {
  .header {
    height: var(--header-height-smaller);
  }
  .container {
    width: 90vw;
  }
  .under_menubar {
    margin-top: calc(var(--header-height-smaller) + 25px);
  }
  .page_title {
    height: var(--header-height-smaller);
    margin-left: 20px;
  }
  .error_number {
    height: var(--header-height-smaller);
    margin-right: 20px;
  }

  .menubar {
    height: var(--header-height-smaller);
    margin-right: 20px;
  }

  .mobile_view_only {
    display: flex;
  }
  .desktop_view_only {
    display: none;
  }
  .grow:active {
    transform: scale(1.4);
    transition: 0.2s;
  }
}
#side_menu {
  height: 100%;
  width: 0;

  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;

  background-color: #033331;
  opacity: 0.99;
  box-shadow: -5px 0px 5px var(--header-shadow-color);

  overflow-x: hidden;
  transition: 0.2s;
  padding-top: var(--header-height-smaller);

  display: flex;
  align-items: left;
  text-align: left;
  flex-direction: column;
}

#side_menu a,
#side_menu a:visited,
#side_menu a:hover,
#side_menu a:active {
  display: block;
  font-size: 20px;
  color: white;
  text-decoration: none;
  margin: 20px;
}
