/* === Reset === */
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
  /* ~~ if things go/look/feel funky or if you really like red borders
   * uncomment this: ~~ */
  /*
  border: red 1px solid;
   */
}

/* === Basic === */

html {
  background-color: #ddd9d0;
  scroll-behavior: smooth;
}

body{
  background-image: url("/site/templates/site-assets/pics/bg.jpg");
  background-attachment: fixed;
  background-position: right bottom;
  background-repeat: no-repeat;
  border: 1px solid #ddd9d0;
  color: #222;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(13px + 0.390625vw);
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.8;
  margin: 0;
}


header {
  margin: 15px auto;
}
main {
  margin: 0 auto;
  padding: 15px;
}
header, main {
  max-width: 960px;
}

img {
  height: auto;
  width: 100%;
}

strong, b {
  color: #000;
  font-weight: 700;
}

a {
  color: #069;
}

/* === Headings and text === */

h1 {font-size: 1.6em;}
h2 {font-size: 1.5em;}
h3 {font-size: 1.3em;}
h4 {font-size: 1.3em;}
h5 {font-size: 1.2em;}
h6 {font-size: 1.1em;}

h2, h3, h4 {
  color: #069;
}

/* === img and float classes === */
img.align_right {
  float: right;
  max-width: 200px;
  margin: 5px 0 40px 60px;
  width: auto;
}

img.align_left {
  float: left;
  max-width: 200px;
  margin: 5px 60px 40px 5px;
  width: auto;
}

/* === Header === */
header.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 auto;
  padding: 0;
}
#logo {
  max-width: 255px;
}
.header-title {
  flex: 1;
  text-align: center;
}
.header-title > h2 {
  color: #52748b;
}

@media all and (max-width: 959px) {
  header.logo {
    flex-direction: column;
  }
  .subheader_header {
    display: none;
  }
}

/* === Navbar === */

/* gen */
#topnav {
  background-color: #404040;
  border-top: 3px solid #006699;
  border-bottom: 3px solid #ddd9d0;
  width: 100%;
}
#topnav ul {
  list-style: none;
  padding-left: 0;
}
#topnav a {
  color: inherit;
  display: block;
  text-decoration: none;
}
#topnav .menu {
  margin: 0 auto;
  max-width: 960px;
}

/* toggle */
@media all and (min-width: 980px) {
  .toggle {
    display: none;
  }
}

#toggle {
  display: none;
}

.toggle {
	margin: 5px 15px;
	cursor: pointer;
	position: absolute;
	top: 5px;
	right: 5px;
}

#toggle:checked ~ label > .bar:first-child {
  transform: rotate(45deg) translateY(14px);
}
#toggle:checked ~ label > .bar:nth-child(2) {
	opacity: 0;
}
#toggle:checked ~ label > .bar:last-child {
  transform: rotate(-45deg) translateY(-14px);
}

.bar {
  background-color: #404040;
  height: 6px;
  transition: all .1s linear;
  width: 40px
}
.bar:not(:last-child) {
  margin-bottom: 4px;
}

/* menu */
.menu {
  background-color: #404040;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: start;
	position: absolute;
  top: 140px;
  left: 0;
  height: 100vh;
	overflow-y: auto;
  transform: translateX(-1000px);
  width: 100%;
}

.menu > li {
  padding: 4px 8px;
  position: relative;
  text-transform: uppercase;
}
.menu > li:hover, .menu > li:active,
.menu > li:focus, .menu > li:focus-within {
  background-color: #006699;
  border-bottom: 3px solid #069;
}

#toggle:checked ~ .menu {
	transform: translateX(0);
}

@media all and (min-width: 980px) {
  .menu {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    overflow-y: unset;
    position: static;
    transform: none;
  }
  .menu > li {
    padding: 0;
    height: 100%;
  }
  .menu a, .has-submenu > span {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
    padding: 8px 12px;
  }
  .has-submenu > span {
    display: block;
  }
}


/* submenu */
.submenu {
  background-color: #069;
  display: none;
  width: 200px;
}
@media all and (min-width: 980px) {
  .submenu {
    position: absolute;
  }
}

.has-submenu:hover ul {
  transform: translateY(0);
  display: block;
}

.submenu li:hover, .submenu li:active,
.submenu li:focus, .submenu li:focus-within {
  background-color: #e0e0e0;
  color: #213c60;
}


@media all and (max-width: 979px) {
  .submenu {
    min-width: 200px;
  }
  .submenu li {
    padding: 4px 8px;
  }
  .submenu.drop {
    transform: translateY(0);
    display: block;
    right: auto;
    left: 0;
    width: 100%;
  }
}

/* === Content === */

ol > li > ol {
  list-style: lower-latin;
}
ol > li > ol > li > ol {
  list-style: lower-roman;
}
article {
  background-color: #efeeeae5;
  padding: 5px 10px;
}

article img {
  max-width: 100%;
  width: auto;
}
.header-image > img {
  width: 100%;
}

.address_box {
  display: flex;
  flex-direction: column;
}

article.program_page > h3 {
  font-size: 1.2em;
  line-height: 1;
  margin-bottom: 4px;
}
article.program_page > h4 {
  font-size: 1em;
}
article.program_page > h3 > span {
  font-size: .8em;
}

@media all and (max-width: 812px) {
  .home_pic_piano.align_right {
    display: block;
    float: none;
    margin: 10px;
    max-width: 120px;
  }
}

@media all and (min-width: 960px) {
  article {
    padding: 10px 30px;
  }
}

/* === Archive pages === */
.archive_wrapper {
  display: flex;
}

.archive_wrapper article {
  max-width: 70%;
  flex: 1;
}

.archive_wrapper >  article > p > img {
  max-width: 100%;
  width: auto;
}

.archive_wrapper >  article > p > img.laureates_pics {
  width: 90%;
}

.archive_wrapper aside {
  background-color: #efeeeaaa;
  flex: 1;
  margin-left: 4px;
  max-width: 30%;
  padding: 10px;
}

.archive_wrapper aside > h3 {
  color: #444;
  font-size: 1em;
}
.archive_wrapper aside li {
  line-height: 1.4;
}
.archive_wrapper aside a {
  font-size: .9em;
}

@media all and (max-width: 959px) {
  .archive_wrapper {
    flex-direction: column-reverse;
  }
  .archive_wrapper article, .archive_wrapper aside {
    max-width: unset;
  }
}

/* Youtube embed */
.video-wrapper .play-button svg {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.video-wrapper:hover .play-button svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
}
.video-wrapper {
  cursor: pointer;
}
.video-iframe {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-iframe.visible {
  opacity: 1;
}

/* Media pages buttons */
.mbuttonlist {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: .5rem;
}
.mbutton {
	padding: .6em 2.4em;
	margin-left: .5em;
	margin-right: .5em;
	border: 2px outset #70AD47;
	border-radius: 8px;
	min-width: 150px;
	text-align: center;
	text-decoration: none;
  transition: all ease-in-out .5s;
}
@media all and (max-width: 400px) {
  .mbutton {
    padding: .6em 16px;
    min-width: 120px;
  }
}
.mbutton:hover, .mbutton:active {
	background-color: #70AD47;
	color: white;
}

/* === Forms === */
form#registration {
  max-width: 960px;
  width: 80%;
}
#registration button {
  background-color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1em;
  line-height: 1.6;
  min-width: 100px;
  padding: 6px 12px;
}
#registration button:hover, #registration button:active,
#registration button:focus, #registration button:focus-within {
  background-color: #e5e3dd;
  border-color: #069;
}
.fieldwrapper {
  margin-bottom: 1em;
}
label.label {
  font-weight: bold;
}
span.asterisk {
  color: #f00;
  font-weight: bold;
  margin-left: 5px;
}

input {
  line-height: 1.8;
}

input[type="text"], textarea {
  width: 100%;
}

/* extra */
.pic_div {
	display: flex;
	align-items: center;
}
.pic_div > img {
	margin-right: 15px;
}
@media all and (max-width: 959px) {
  .pic_div {
    flex-direction: column;
  }
  .pic_div > img {
    margin-right: none;
  }
}
