/* This is your theme file. Use the selectors used in the other layers or extend them.
See https://css.underdark.nl/docs for further explanation */

@import 'socials.css';
@import 'hamburger_menu.css';

/* General elements */
h1,
p,
a,
body {
  font-family: 'Nunito', sans-serif;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1 {
  hyphens: auto;
  font-size: 1.1rem;
  font-weight: 700;
}

p,
form p,
label {
  font-size: 1rem;
  font-weight: 400;
}

button:not(.hamburgermenu_icon),
.button:not(.hamburgermenu_icon) {
  background-color: #f97b41;
  color: #fff;
  border-radius: 1.2rem;
  float: right;
  margin-left: auto;
}

.logo {
  background-image: url('/static/images/csecn_logo.svg');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  min-width: 4.5rem;
  color: transparent;
}

/* Layout */
@media screen and (max-width: 39.9375rem) {
  main {
    padding-top: 3.5rem;
  }
}
.layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.layout div:first-child {
  margin-left: 0;
}

.layout div:first-child {
  margin-right: 0;
}

.layout_element_third {
  width: 31.66%;
  max-width: 31.66%;
  margin: 0 5%;
}

.layout_element_two_thirds {
  width: 63.33%;
  max-width: 63.33%;
  margin: 0 5%;
}

.columns_2,
.columns_3 {
  column-count: 1;
  text-align: center;
}

.columns_2 > div {
  margin-bottom: 2.5rem;
}

@media screen and (min-width: 40rem) {
  .columns_2 {
    column-count: 2;
    column-gap: 4rem;
    text-align: left;
  }

  .columns_3 {
    column-count: 3;
    column-gap: 4rem;
  }

  .columns_2 > div:first-child h1,
  .columns_3 > div:first-child h1 {
    margin-top: 0;
  }

  .columns_2 > div,
  .columns_3 > div  {
    break-inside: avoid-column;
    margin: 0 0 3rem 0;
  }
}

body > header > div,
body > footer > div > nav,
body > footer > div.copyright p,
body > :not(nav) + main section,
body > :not(nav) + main :not(section) > .magazine,
body > :not(nav) + main :not(section) > .newspaper {
  padding: 1.5rem 5%;
}

body > header > div, body > footer > div > nav,
body > footer > div.copyright p,
body > :not(nav) + main section,
body > :not(nav) + main :not(section) > .magazine,
body > :not(nav) + main :not(section) > .newspaper {
  max-width: 100%;
}

@media screen and (min-width: 100rem) {
  body > header > div,
  body > footer > div > nav,
  body > footer > div.copyright p,
  body > :not(nav) + main section,
  body > :not(nav) + main :not(section) > .magazine,
  body > :not(nav) + main :not(section) > .newspaper {
    padding: 1.5rem 15%;
  }
}

/* Header*/
body > header {
  background-color: #fff;
  color: #334559;
  display: flex;
  border: 0;
  justify-content: space-between;
  overflow: visible; /* Used to show the mobile menu */
}

body > header,
main > header {
  display: flex;
  border: 0;
  padding: 1rem 3%;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
}

main > header {
  flex-direction: column;
  text-align: center;
  padding: 2.5rem 3%;
}

main > header > div {
  max-width: 30rem;
  margin: 0 auto;
}

body#index > header,
main > header {
  background-color: #f95d63;
  color: #fff;
}

main > header h1,
main > header p {
  margin: 0;
}

main > header h1 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 2.5rem;
}

main > header p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

@media screen and (min-width: 45rem) {
  main > header {
    background-image: url('/static/images/dots_left.svg'), url('/static/images/dots_right.svg');
    background-size: 32%, 32%;
    background-position: -25% center, 125% center;
    background-repeat: no-repeat, no-repeat;
  }
}

@media screen and (min-width: 60rem) {
  main > header {
    background-position: -15% center, 115% center;
  }
}

@media screen and (min-width: 75rem) {
  main > header {
    background-size: 25%, 25%;
    background-position: left center, right center;
  }
}

@media screen and (min-width: 93rem) {
  main > header {
    background-size: 20%, 20%;
  }
}

/* Main Nav elements */
body > header a,
main > header a {
  text-decoration: none;
}

@media screen and (min-width: 40rem) {
  body > header a:not(.logo).active,
  body > header a:not(.logo):hover,
  body > header a:not(.logo):focus {
    border-bottom: 4px solid #f95d63;
    text-decoration: none;
  }

  body#index > header a:not(.logo).active,
  body#index > header a:not(.logo):hover,
  body#index > header a:not(.logo):focus {
    border-color: #fff;
  }
}

body > header a {
  color: #334559;
}

body#index > header nav:not(.hamburgermenu) a:not(.logo),
main > header nav:not(.hamburgermenu) a:not(.logo) {
  color: #fff;
  margin-left: 1rem;
}

body#index > header a.logo {
  background-image: url('/static/images/csecn_logo_white.svg');
}

/* Mobile menu (csecn specific menu styling) */
.hamburgermenu a {
  background-color: #fff;
  border-bottom: 1px solid #f97b41;
  color: #f97b41;
}

body:not(#index) > header .hamburgermenu_icon,
body:not(#index) > header button.hamburgermenu_icon:hover,
body:not(#index) > header button.hamburgermenu_icon:focus {
  background-image: url('/static/images/hamburger_menu_color.svg');
}

@media screen and (min-width: 40rem) {
  .hamburgermenu a {
    background-color: transparent;
    border: 0;
    color: #334559;
  }

  body#index > header nav.hamburgermenu a {
    color: #fff;
  }
}

/* Elements */
.summary h1 {
  font-size: 1rem;
}

.summary h1,
.summary p {
  text-align: center;
}

.summary_element {
  position: relative;
  padding-top: 0.1rem;
}

.summary_element:before {
  content: "";
  height: 4rem;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-size: contain;
  justify-content: center;
  margin: 3rem 0;
  width: 100%;
  background-position: center center
}

.summary_element.risks:before {
  background-image: url('/static/images/alert.svg');
}

.summary_element.preparation:before {
  background-image: url('/static/images/list.svg');
}

.summary_element.security:before {
  background-image: url('/static/images/shield.svg');
}

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

.side_element > img {
  position: relative;
  left: -6%;
  justify-self: flex-start;
  align-self: center;
  max-width: 100%;
  margin-right: 0;
  max-height: 18rem;
  margin-right: 0;
  margin-top: 2rem;
  order: 1;
}

@media screen and (min-width: 40rem) {
  .side_element {
    display: flex;
    flex-wrap: nowrap;
  }

  .side_element > img {
    max-width: 33%;
    margin-right: 5%;
    margin-top: 0;
    order: 0;
  }
}

@media screen and (min-width: 100rem){
  .side_element > img {
    left: -22%;
  }
}

section > h1,
section > p {
  text-align: center;
}

.overview > h1,
section > h1,
.banner h1 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.overview > p {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.overview > div > div > h1 {
  color: #f95d63;
}

.overview,
.partners {
  display: flex;
  flex-direction: column;
}

.overview .button,
.overview button {
  margin-left: auto;
}

.banner {
  position: relative;
  padding: 0 5%;
}

.banner div.content_container {
  margin-right: 0;
  background-color: #35475a;
  color: #fff;
  border-radius: 0;
  position: relative;
  left: -6%;
  padding: 1.5rem 6rem 1.5rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.banner div.content_container .button,
.banner div.content_container button {
  margin-left: auto;
  background-color: #f95d63;
}

@media screen and (min-width: 50rem) {
  .banner div.content_container {
    min-height: 13rem;
    border-radius: 0 10rem 10rem 0;
    width: 45%;
  }

  .banner_visual {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    min-height: 16rem;
    z-index: -1;
    min-width: 100%;
    position: absolute;
    top: 0;
    right: -6%;
  }

  #index .banner_visual {
    background-image: url('/static/images/conference.png');
  }
}

@media screen and (min-width: 82rem) {
  .banner div.content_container {
    border-radius: 0 8rem 8rem 0;
    width: 40%;
  }
}

.logo_view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 0;
  justify-content: center;
  margin-bottom: 0;
}

.logo_view li {
  list-style: none;
  margin: 1.5rem;
  display: flex;
  flex-direction: column;
}

.logo_view li img {
  height: 7rem;
  width: 10rem;
  object-fit: contain;
  align-self: center;
  justify-self: center;
  margin-bottom: 0.5rem;
}

/* Map  including contact details */
.map .content_container {
  margin-right: 0;
  background-color: #35475a;
  color: #fff;
  border-radius: 0;
  padding: 1.5rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin-left: -6%;
}

.map .content_container h1 {
  text-align: center;
  border-bottom: 2px solid #2a3846;
  width: 80%;
  margin: 0 auto 1.5rem auto;
  padding-bottom: 0.5rem;
}

.map .content_container address {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map .content_container a {
  color: #fff;
  text-decoration: none;
}

#map {
  height: 13rem;
  min-width: 110%;
  margin-left: -5%;
}

/* Icons */
.address,
.phone,
.mail {
  padding-left: 2rem;
  position: relative;
}

.address:before,
.mail:before,
.phone:before {
  content:"";
  width: 0.8rem;
  height: 1rem;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  margin-top: 0.2rem;
}

.address:before {
  background-image: url('/static/images/location_marker.svg');
}

.phone:before {
  background-image: url('/static/images/mobile.svg');
}

.mail:before {
  background-image: url('/static/images/mail.svg');
}

@media screen and (min-width: 30rem) {
  .map .content_container address {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
  }

  .map .content_container p {
    margin: 0;
  }
}

@media screen and (min-width: 60rem) {
  .map {
    display: flex;
  }

  .map .content_container {
    width: 30%;
    border-radius: 10rem 0 0 10rem;
    position: absolute;
    right: 0;
    padding: 1.5rem 6rem;
    min-height: 10rem;
    z-index: 2;
  }

  .map .content_container h1 {
    text-align: left;
    border: 0;
    margin: 0;
  }

  .map .content_container address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .map .content_container address a {
    margin-top: 0.5rem;
    display: inline-block;
  }

  #map {
    margin-left: -20%;
  }
}

footer {
  background-color: #35475a;
  display: flex;
  justify-content: space-between;
  color: #eff3f7;
  padding: 4rem 5%;
  align-items: center;
  position: relative;
  overflow: hidden;
}

footer .logo {
  align-self: flex-start;
  margin-top: -2rem;
  position: absolute;
}

footer nav:not(.socials) {
  display: flex;
  flex-direction: column;
}

footer h1 {
  font-size: 1rem;
}

footer a {
  color: #eff3f7;
  text-decoration: none;
  font-weight: 400;
}

footer .socials {
  position: absolute;
  right: 3%;
  bottom: 1rem;
}

@media screen and (min-width: 40rem) {
  footer {
    padding: 2.5rem 3%;
  }

  footer .logo {
    position: static;
    margin-top: -1rem;
  }

  footer .socials {
    position: static;
    align-self: flex-end;
    justify-self: flex-end;
    margin-bottom: -1rem;
  }
}

.geo_bg {
  background-image: url('/static/images/geomatric_element.png'), url('/static/images/geomatric_element_bottom.png');
  background-position: top right, bottom left;
  background-repeat: no-repeat, no-repeat;
  background-size: 22%, 22%;
}

/* Selectable info, an overview of information with a sidemenu to select topics */
.selectable_info {
  min-height: 55vh;
}

.selectable_info form {
  display:  flex;
  justify-content: space-between;
  background-color: transparent;
  border: none;
  flex-direction: column;
}

.selectable_info nav {
  min-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  border-bottom: 2px solid #f95d63;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.selectable_info nav label:before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  background-color: #8da0a5;
  border-radius: 50%;
  margin-right: 1rem;
}

.selectable_info label:first-child {
  margin-top: 0;
}

@media screen and (min-width: 32rem) {
  .selectable_info nav {
    min-width: 100%;
    width: 100%;
    column-count: 2;
    margin-top: 0;
    display: block;
  }

  .selectable_info nav label {
    width: 100%;
    display: block;
  }
}

@media screen and (min-width: 40rem){
  .selectable_info form {
    flex-direction: row;
  }

  .selectable_info nav {
    column-count: 1;
    min-width: 30%;
    width: 30%;
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    border: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .selectable_info nav label {
    width: auto;
    display: inline;
  }

  .selectable_info nav label:before {
    content: "";
    width: 8px;
    height: 8px;
    display: inline-block;
    background-color: #8da0a5;
    border-radius: 50%;
    margin-right: 1rem;
  }
}

.selectable_info input[type=radio] {
  display: none;
}

.selectable_info input[type=radio]#service_cyber_to_go_roadshow:checked ~ nav label[for=service_cyber_to_go_roadshow],
.selectable_info input[type=radio]#service_security_pool:checked ~ nav label[for=service_security_pool],
.selectable_info input[type=radio]#service_security_audit:checked ~ nav label[for=service_security_audit],
.selectable_info input[type=radio]#service_security_community:checked ~ nav label[for=service_security_community],
.selectable_info input[type=radio]#service_cybercrisis_oefeningen:checked ~ nav label[for=service_cybercrisis_oefeningen],
.selectable_info input[type=radio]#service_hacklab_noord_nederland:checked ~ nav label[for=service_hacklab_noord_nederland],
.selectable_info input[type=radio]#service_northern_security_conference:checked ~ nav label[for=service_northern_security_conference] {
  color: #f95d63;
}

.selectable_info input[type=radio]#service_cyber_to_go_roadshow:checked ~ nav label[for=service_cyber_to_go_roadshow]:before,
.selectable_info input[type=radio]#service_security_pool:checked ~ nav label[for=service_security_pool]:before,
.selectable_info input[type=radio]#service_security_audit:checked ~ nav label[for=service_security_audit]:before,
.selectable_info input[type=radio]#service_security_community:checked ~ nav label[for=service_security_community]:before,
.selectable_info input[type=radio]#service_cybercrisis_oefeningen:checked ~ nav label[for=service_cybercrisis_oefeningen]:before,
.selectable_info input[type=radio]#service_hacklab_noord_nederland:checked ~ nav label[for=service_hacklab_noord_nederland]:before,
.selectable_info input[type=radio]#service_northern_security_conference:checked ~ nav label[for=service_northern_security_conference]:before {
  background-color: #f95d63;
}

.selectable_info .content_container {
  min-width: 65%;
  margin-left: 5%;
}

.selectable_info .content_container > div {
  display: none;
}

.selectable_info input[type=radio]#service_cyber_to_go_roadshow:checked ~ .content_container .cyber_to_go_roadshow_content,
.selectable_info input[type=radio]#service_security_pool:checked ~ .content_container .security_pool_content,
.selectable_info input[type=radio]#service_security_audit:checked ~ .content_container .security_audit_content,
.selectable_info input[type=radio]#service_security_community:checked ~ .content_container .security_community_content,
.selectable_info input[type=radio]#service_cybercrisis_oefeningen:checked ~ .content_container .cybercrisis_oefeningen_content,
.selectable_info input[type=radio]#service_hacklab_noord_nederland:checked ~ .content_container .hacklab_noord_nederland_content,
.selectable_info input[type=radio]#service_northern_security_conference:checked ~ .content_container .northern_security_conference_content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.selectable_info .content_container p:last-of-type {
  margin-bottom: 0;
}

.selectable_info .visuals {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.selectable_info .visuals img {
  object-fit: cover;
  max-height: 15rem;
  width: 47.5%;
  margin: 1rem 0;
}

.selectable_info .visuals iframe {
  width: 100%;
  margin: 1rem 0;
}

/* For pages that consist only of a section with text */
.text_page section {
  max-width: 50rem;
  margin: 0 auto;
  min-height: 60vh;
}

.text_page section > h1,
.text_page section > p {
  text-align: left;
}

/* Modules */
#index #about {
  background-color: #eff3f7;
}
