/* Reset css */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Ground CSS for every page */

body {
  background-size: cover;
  background-color: white;
  margin: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top left;
  background-origin: padding-box;
  background-clip: padding-box;
  font-family: "Futura", Verdana, serif;
}

main {
  min-height: 99vh;
  max-width: 100vw;
  overflow: hidden;
}

h3 {
  border-bottom: solid 1px white;
  padding-bottom: 10px;
  font-style: italic;
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  font-family: "Noto Sans", serif;
  margin-top: 20px;
  margin-left: 20px;
  line-height: 20px;
}

ul {
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  width: 100%;
}

#menu li {
  display: inline;
}

li a {
  display: block;
  color: #1d3557;
  text-align: center;
  text-decoration: none;
}

a {
  outline: none;
  text-decoration: none;
}

a:hover {
  outline: none;
  text-decoration: underline;
  color: #1d3557;
}

a:visited {
  color: #1d3557;
}

h1 {
  font-family: "Futura", "Nunito", Verdana, serif;
  font-size: 40px;
  letter-spacing: 1px;
}

h2 {
  letter-spacing: 1px;
}

.word_off {
  display: none;
}

/* Navbar and home page menu */

nav {
  border-bottom: 3px solid #004e98;
  padding: 0;
  margin: 0;
  top: 0;
  width: 100%;
}

#menu li {
  display: inline;
}

#menu li:last-child {
  border-right: none;
  float: right;
  justify-content: flex-end;
}

li a {
  display: inline-block;
  color: #1d3557;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #fe5f55;
  color: black;
  text-decoration: none;
}

li a:active {
  background-color: #f7f7ff;
}

.center a {
  text-decoration: underline;
}

figure {
  margin-left: 0;
  padding: 0;
}

.menuhome {
  margin: 0;
  padding: 0;
  flex: 0;
  background-color: white;
}

.hover-menu {
  max-width: 100%;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

/* effect over home page picture */

.hover-menu img {
  position: relative;
  max-width: 100%;
  top: 0;
  right: 0;
  opacity: 1;
  transition: 0.25s ease-in-out;
}

.hover-menu div {
  position: absolute;
  top: 0;
  left: -120px;
  width: 120px;
  height: 100%;
  transition: 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 3px solid #004e98;
}

.hover-menu div a {
  display: block;
  line-height: 2;
  color: #1d3557;
  text-decoration: none;
  opacity: 0.8;
  padding: 5px 15px;
  position: relative;
  transition: 0.25s ease-in-out;
  border-top: solid 1px black;
}

#kursenhome {
  border-bottom: solid 1px black;
}

.hover-menu:hover img {
  right: -120px;
}

.hover-menu:hover div {
  left: 0;
  opacity: 1;
}

#index {
  background-color: white;
}

/* Classes to place content on pages */

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  margin: 15px 15px 15px 15px;
  padding: 15px 15px 15px 15px;
  font-family: "Futura", serif;
}

.wrapper {
  display: grid;
}

.top {
  padding-right: 30px;
  padding-left: 30px;
  display: grid;
  grid-template-columns: 400px 1fr;
  grid-template-rows: 1fr;
  grid-gap: 10px;
  margin: 0;
}

.items {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 30px;
}

/* Text selection colours */

p::selection {
  background-color: #bdd5ea;
}

h1::selection {
  background-color: #bdd5ea;
}

h2::selection {
  background-color: #bdd5ea;
}

label::selection {
  background-color: #bdd5ea;
}

/* Images and effects on images */

img {
  max-width: 100%;
}

.people {
  display:flex;
}

.photo {
  width: 100%;
  grid-row: span 3;
  border-radius: 15px;
  align-self: center;
  justify-self: center;
}

/* Contact page */

input {
  margin-bottom: 15px;
  font-family: "Futura", Verdana, serif;
}

textarea {
  margin-bottom: 15px;
}

input[type="submit"], .contactbutton {
  background: none;
  text-align: center;
  border-color: black;
  border: 2px solid;
  border-radius: 15px;
  padding: 1em 2em;
  font-size: 1em;
  transition: color 0.25s, border color 0.25s, box-shadow 0.25s, 0.25s;
}

input[type="submit"]:hover, .contactbutton {
  border-color: #004e98;
  color: black;
  box-shadow: 0 0.5em 0.5em -0.4em lightblue;
  transform: translateY(-0.25em);
}

/* kursen page */

.identity {
  padding: 10px 20px;
}

/*.identity:hover{
  background-color: white;
  border-radius: 15px;
  transition-timing-function: ease-in;
  box-sizing: border-box;
}*/

/* Material page */

a#home {
  display: grid;
  justify-content: center;
}

.image_off_nyb,
#home:hover .image_on_nyb {
  background-image: url(nyborjare.jpg);
  background-size: contain;
  width: 100%;
}

#home:hover .image_on_nyb {
  display: none;
}

.image_on_nyb,
#home:hover .image_off_nyb {
  display: block;
  transition: none;
  transform: none;
  background-color: #76c893;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-size: 25px;
  border: solid 5px white;
  border-radius: 10px;
  padding: 10px;
  width: 200px;
  height: 200px;
}

.image_off_mell,
#home:hover .image_on_mell {
  background-image: url(mellanniva.jpg);
  background-size: contain;
  width: 100%;
}

#home:hover .image_on_mell {
  display: none;
}

.image_on_mell,
#home:hover .image_off_mell {
  display: block;
  transition: none;
  transform: none;
  background-color: #168aad;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  font-size: 25px;
  border: solid 5px white;
  border-radius: 10px;
  width: 200px;
  height: 200px;
}

.col {
  padding: 50px;
  position: relative;
}

.container {
  width: 100%;
}

.card-title {
  text-align: center;
  margin-top: 20px;
}

.selectmaterial {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#material {
  box-shadow: 0 5px 10px lightblue;
  border-radius: 0 1px 2px 2px;
  max-height: 144px;
  margin-left: 10px;
  margin-right: 10px;
  padding: 6px 6px 6px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Material pages */

.manustext a {
  text-decoration: underline;
}

.manustext {
  white-space: pre-line;
}

.manus {
  display: grid;
  grid-template-columns: 1fr;
  grid-template: auto;
  justify-content: center;
  align-items: center;
  justify-items: center;
  white-space: pre-line;
}

iframe {
  margin-top: 40px;
}

/* Text animation for podcast name with key frames and nth-child */

.word {
  font-family: "Futura", sans-serif;
  perspective: 1000px;
  color: #d40012;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: 40px;
  margin-bottom: 20px;
}

.word span {
  cursor: pointer;
  display: inline-block;
  font-size: 50px;
  user-select: none;
  line-height: 0.8;
}

.word span:nth-child(1).active {
  animation: balance 1.5s ease-out;
  transform-origin: bottom left;
}

@keyframes balance {
  0%,
  100% {
    transform: rotate(0deg);
  }

  30%,
  60% {
    transform: rotate(-45deg);
  }
}

.word span:nth-child(2n).active {
  animation: shrinkjump 1s ease-in-out;
  transform-origin: bottom center;
}

@keyframes shrinkjump {
  10%,
  35% {
    transform: scale(2, 0.2) translate(0, 0);
  }

  45%,
  50% {
    transform: scale(1) translate(0, -150px);
  }

  80% {
    transform: scale(1) translate(0, 0);
  }
}

.word span:nth-child(3n).active {
  animation: falling 1.5s ease-out;
  transform-origin: bottom center;
}

@keyframes falling {
  12% {
    transform: rotateX(240deg);
  }

  24% {
    transform: rotateX(150deg);
  }

  36% {
    transform: rotateX(200deg);
  }

  48% {
    transform: rotateX(175deg);
  }

  60%,
  85% {
    transform: rotateX(180deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

.word span:nth-child(4n).active {
  animation: rotate 1s ease-out;
}

@keyframes rotate {
  20%,
  80% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.word span:nth-child(5n).active {
  animation: rotate 1s ease-out;
}

@keyframes rotate {
  20%,
  80% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.word span:nth-child(6n).active {
  animation: falling 1.5s ease-out;
  transform-origin: bottom center;
}

@keyframes falling {
  12% {
    transform: rotateX(240deg);
  }

  24% {
    transform: rotateX(150deg);
  }

  36% {
    transform: rotateX(200deg);
  }

  48% {
    transform: rotateX(175deg);
  }

  60%,
  85% {
    transform: rotateX(180deg);
  }

  100% {
    transform: rotateX(0deg);
  }
}

.word span:nth-child(7).active {
  animation: shrinkjump 1s ease-in-out;
  transform-origin: bottom center;
}

@keyframes shrinkjump {
  10%,
  35% {
    transform: scale(2, 0.2) translate(0, 0);
  }

  45%,
  50% {
    transform: scale(1) translate(0, -150px);
  }

  80% {
    transform: scale(1) translate(0, 0);
  }
}

.word span:nth-child(13).active {
  animation: balance 1.5s ease-out;
  transform-origin: bottom left;
}

@keyframes balance {
  0%,
  100% {
    transform: rotate(0deg);
  }

  30%,
  60% {
    transform: rotate(-45deg);
  }
}

@keyframes toplong {
  10%,
  40% {
    transform: translateY(-48vh) scaleY(1);
  }

  90% {
    transform: translateY(-48vh) scaleY(4);
  }
}

.word span:nth-child(11).active {
  animation: balance 1.5s ease-out;
  transform-origin: bottom left;
}

@keyframes balance {
  0%,
  100% {
    transform: rotate(0deg);
  }

  30%,
  60% {
    transform: rotate(-45deg);
  }
}

@keyframes toplong {
  10%,
  40% {
    transform: translateY(-48vh) scaleY(1);
  }

  90% {
    transform: translateY(-48vh) scaleY(4);
  }
}

/* Footer */

footer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 0.3fr;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
  position: relative;
  background-color: #004e98;
  color: white;
  bottom: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  bottom: 0;
  row-gap: 40px;
  overflow-y: hidden;
}

footer section a {
  color: white;
  text-decoration: none;
}

footer section a:visited {
  color: white;
}

footer container {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  column-gap: 200px;
}

footer .partnerskap {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.partner {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

footer img {
  width: 100px;
  height: 100px;
}

/* Praktisk info */

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.price-category {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.price-category img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.price-category h2 {
  color: #333;
}

.price-category p {
  color: #777;
}

#calendar .fc-scroller.fc-day-grid-container {
  height: 100% !important;
}

/* Responsive pages */

@media screen and (max-width: 900px) {
  .hover-menu div {
    position: sticky;
    width: 100%;
    display: column;
    left: 0;
    height: 100%;
    transition: 0;
    flex-direction: column;
    justify-content: center;
  }

  .hover-menu img {
    position: sticky;
    max-width: 100%;
  }

  .hover-menu:hover img {
    opacity: 1;
  }

  .hover-menu:hover div {
    opacity: 1;
  }

  .top {
    grid-template-columns: 1fr;
  }

  .people {
    display: grid;
    justify-content: center;
  }

  .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}

@media screen and (max-width: 700px) {
  #menu li:last-child {
    float: none;
    display: inline;
  }

  .grid-container {
    display: flex;
    flex-direction: column;
  }

  footer container{
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
}

@media screen and (max-width: 500px) {
  .row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .word {
    display: grid;
    grid-template-columns: 1fr;
  }

  .word span {
    display: none;
  }

  .word_off {
    display: block;
    font-family: "Futura", sans-serif;
    color: #004e98;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 50px;
    line-height: 0.8;
  }
}
