/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   Aggis Music School Custom Fonts
   ========================================================================== */

   @font-face {
    font-family: 'Montserrat-Regular';
    src: url(../fonts/Montserrat/Montserrat-Regular.eot);
    src: url(../fonts/Montserrat/Montserrat-Regular.eot?#iefix) format('embedded-opentype'),
         url(../fonts/Montserrat/Montserrat-Regular.svg#Montserrat-Regular) format('svg'),
         url(../fonts/Montserrat/Montserrat-Regular.ttf) format('truetype'),
         url(../fonts/Montserrat/Montserrat-Regular.woff) format('woff'),
         url(../fonts/Montserrat/Montserrat-Regular.woff2) format('woff2');
  }

  @font-face {
    font-family: 'Montserrat-Bold';
    src: url(../fonts/Montserrat/Montserrat-Bold.eot);
    src: url(../fonts/Montserrat/Montserrat-Bold.eot?#iefix) format('embedded-opentype'),
         url(../fonts/Montserrat/Montserrat-Bold.svg#Montserrat-Bold) format('svg'),
         url(../fonts/Montserrat/Montserrat-Bold.ttf) format('truetype'),
         url(../fonts/Montserrat/Montserrat-Bold.woff) format('woff'),
         url(../fonts/Montserrat/Montserrat-Bold.woff2) format('woff2');
  }

  @font-face {
    font-family: 'ABeeZee-Regular';
    src: url(../fonts/ABeeZee/ABeeZee-Regular.eot);
    src: url(../fonts/ABeeZee/ABeeZee-Regular.eot?#iefix) format('embedded-opentype'),
         url(../fonts/ABeeZee/ABeeZee-Regular.svg#ABeeZee-Regular) format('svg'),
         url(../fonts/ABeeZee/ABeeZee-Regular.ttf) format('truetype'),
         url(../fonts/ABeeZee/ABeeZee-Regular.woff) format('woff'),
         url(../fonts/ABeeZee/ABeeZee-Regular.woff2) format('woff2');
  }

/* ==========================================================================
   Aggis Music School Custom Styles
   ========================================================================== */
  body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;

    /*Set height to 100% so the placement of the header background image can work*/
    height: 100%;

    /*Setting for the default background image in the header*/
    --hero-image: url("../img/pexels-yankrukov-8191537-1200x800.jpg");

    /*Color Settings*/
    --main-heading-color: rgb(85, 0, 212);  /*Headings and also main navigation links*/
    --link-hover-color: rgb(255, 0, 212);   /*Hovering over links*/
    --card-link-color: rgb(0, 0, 255);   /*Color of the Link to the contact form*/
    --content-heading-color: rgb(128, 0, 128); /*Headings in Main COntent Area*/
  }

  /*Setting for the header background image medium resolution*/
  @media (min-width: 1200px) and (max-width: 2000px) {
    body {
      --hero-image: url("../img/pexels-yankrukov-8191537-2000x1333.jpg");
    }
  }

  /*Setting for the header background image high resolution*/
  @media (min-width: 2000px) {
    body{
      --hero-image: url("../img/pexels-yankrukov-8191537.jpg");
    }
  }

  /*
  * Header Settings
  */
  header {
    background-image: var(--hero-image);

    /* Set a specific height */
    height: 50%;

    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
  }

  #top-container {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: flex-end;
    height: 100%;
  }

  #logo {
    background-color: white;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    margin: 20px;
  }

  #main-navigation {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 2;
    border-radius: 20px;
    width: fit-content;
    height: fit-content;
    padding: 20px;
    margin: 20px;
    background-color: rgba(255, 255, 255, 0.75);
  }

  #main-navigation > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }

  #main-navigation a {
    color: var(--main-heading-color);
    text-decoration: none;
  }

  #main-navigation a:hover {
    color: var(--link-hover-color);
  }

  /*
  * Profile Card Settings
  */
  .card {
    display: flex;
    max-width: 700px;
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 18px;

    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);

    transition: 0.3s;
    border: 1px solid black;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
  }

  .card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.4);
  }

  .card img {
    width: 33%;
  }

  .profile-container {
    padding: 8px 16px;
  }

  .profile-container a {
    color: var(--card-link-color);
  }

  .profile-container a:hover {
    color: var(--link-hover-color);
  }

  .abeezee-text {
    font-family: 'ABeeZee-Regular', sans-serif;
  }

  /*
  * The Social Media Bar
  */

  /*Heading - visit social media*/
  #visit-socials {
    font-family: sans-serif;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
  }

  /*The Bar containing the Logos linking to the Social Media Profiles*/
  #social-media-bar {
    display: flex;
    justify-content: center;
  }

  /*Size the Logos in the Bar*/
  #social-media-bar img {
    width: 100px;
    margin: 0 25px;
  }


  /*
  * Main Content Sections
  */
  .content-section {
    font-family: sans-serif;
    margin: 150px 50px;
  }

  /*Heading for every Section*/
  .content-section h2 {
    font-family: 'Montserrat-Bold', sans-serif;
    color: var(--content-heading-color);
    font-size: 5vw;
    margin: 0;
    padding: 10px 25px;
    border-bottom: 1px solid black;
  }

  /*Adjustment for right adjusted Headings*/
  .right-adjusted {
    text-align: right;
  }

  /*Content below every Heading, consisting of bullet points and an image*/
  .content-bar {
    font-family: 'ABeeZee-Regular', sans-serif;
    display: flex;
    justify-content: space-between;
    font-size: 2.5vw;
  }

  /*bullet point list in the content bar*/
  .content-bar ul {
    list-style: none;
    padding: 25px;
  }

  /*adjust spacing between bullet points*/
  .content-bar ul li {
    margin-bottom: 25px;
  }

  /*first the image, then the text in the content bar*/
  .image-text {
    flex-direction: row-reverse;
  }

  /*make image in content bar responsible*/
  .content-bar img {
    max-width: 50%;
    height: auto;
  }

  /*
  *The Contact Form
  *
  */
  div#contact-form {
    border: 1px solid gray;
    border-radius: 10px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    padding: 25px;
  }

  div#contact-form h1, h2 {
    text-align: center;
  }

  div#contact-form div {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
  }

  /*Verstecktes Feld, welches ungewollte Post aussortieren soll*/
  .special-class {
    position: absolute;
    left: -500px;
  }

  div#contact-form button {
    font-size: 120%;
    padding: 10px 0;
    width: 100%;
  }

  div#contact-form input {
    height: 28px;
    font-size: 120%;
  }

  div#contact-form label {
    padding-bottom: 5px;
    font-size: 120%;
  }

  div#contact-form textarea {
    font-size: 150%;
  }

  /*
  *The Footer
  *
  */
  footer {
    font-family: sans-serif;
    display: flex;
    justify-content: space-between;
    background: black;
    margin-top: 50px;
    min-height: 100px;
    color: rgb(153, 153, 153);
    padding: 25px;
  }

  /*space the links on the left side of the footer evenly*/
  footer > div:first-child {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /*Align the paragraph in the footer with the anchor elements on the left side*/
  footer  p {
    padding: 0;
    margin: 0;
  }

  footer a {
    color:rgb(153, 153, 153);
    text-decoration: none;
  }

  footer a:hover {
    text-decoration: underline;
    color: var(--link-hover-color);
  }

  /*
  * Cookie-Banner
  *
  */
  div#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 230, 128);
  }

  div#cookie-banner > button {
    height: 36px;
    width: 125px;
  }


/*
*Legal Texts
*
*/
div#legal-text {
  width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  border: 1px solid black;
  border-radius: 20px;
  padding: 25px;
}

/*Linking back to the Homepage*/
a.backtrack {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
  text-align: center;
  width: 175px;
  margin-top: 50px;
  color: rgb(0, 136, 170);
  border: none;
  border-radius: 5px;
  padding: 5px;
}

a.backtrack:hover {
  background-color: rgb(170, 255, 238);
}


  /*
  * adjustments for small resolution
  */
  @media (max-width: 780px) {

    #logo {
      width: 120px;
      height: 120px;
    }

    #main-navigation {
      font-size: 12px;
    }

    .card {
      font-size: 12px;
    }

    .card img {
      width: 120px;
      height: auto;
    }

    .content-section {
      margin: 100px 0;
    }

    .content-bar ul {
      font-size: 90%;
      padding: 0 20px;
    }

  }