/*! HTML5 Boilerplate v9.0.0-RC1 | 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
   ========================================================================== */



@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

h1,h2,h3 {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  color: #0d532e;
}
html {
  scroll-behavior: smooth;
}
body{
  background: linear-gradient(
  180deg,
  #006E90 0%,
  #49A596 14%,
  #AAD8E0 100%
);
#mainnavbar{
  background-color: #086136;
}
#home .btn-snapy,
#videos .btn-snapy {
  background: linear-gradient(to bottom, #f9ca40, #fdcc43);
  color: #000;
  border: none;
  border-radius: 50px; /* pill shape */
  padding: 12px 28px;
  font-size: 0.83em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  text-decoration: none;
}
#home .btn-snapy:hover,
#videos .btn-snapy:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
  color: #000;
}
#home .btn-snapy:active,
#videos .btn-snapy:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
#home .play-icon,
#videos .play-icon {
  width: 24px;
  height: 24px;
}
#home .hero-text {
  padding: 86px 30px 15px;
}
#downloads .container{
  background-color: #60bcca;
}
#about > .container{
  padding-bottom: 670px !important;
  background-image:
    url('../img/snappy-singalong-cloud-meadow-sky.png'),
    url('../img/snappy-singalong-guitar-cloud-meadow.png');
  background-size:
    100% auto,
    100% auto;
  background-position:
    center top,
    center bottom;
  background-repeat:
    no-repeat,
    no-repeat;
}
.music-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.music-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* hover effect */
.music-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
/* brand colours */
.spotify { background: #1DB954; }
.apple   { background: #000000; }
.amazon  { background: #FF9900; color: #000; }
.deezer  { background: #EF5466; }
.tidal   { background: #000000; border: 1px solid rgba(255,255,255,0.2); }
.amazon-logo {
  position: relative;
  display: inline-block;
  line-height: 1;
  padding: 5px 0 1px;
}
.amazon-text {
  position: relative;
  z-index: 2;
  top:-4px;
}
.music-badge .amazon-smile {
  width: 40px;   /* THIS is your true length control */
  height: 23px;
  position: absolute;
  left: 0;
  bottom: -10px;
}
.tidal svg {
  width: 20px;
  height: 20px;
}
#contact .container{
  background-color: #f0c808;
}
footer .container{
  background-color: #41afc6;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  overflow: hidden;
  box-shadow:
    -20px 0 40px rgba(0,0,0,0.08),
     20px 0 40px rgba(0,0,0,0.08),
     0 20px 40px rgba(0,0,0,0.10);
}
footer a {
    display: inline-block;
    transition: all 0.2s ease;
}

footer a:hover {
    transform: translateY(-2px) scale(1.08);
    filter: brightness(1.3);
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.navbar-brand img {
  height: 77px;
  width: auto;
}
.navbar-nav .nav-link {
  color: #82c82f;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.25s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #f9d739;
  text-decoration-color: #f9d739;
}
section {
  scroll-margin-top: 77px;
}
.floating-shadow{
  box-shadow:
    -20px 0 40px rgba(0,0,0,0.08),
     20px 0 40px rgba(0,0,0,0.08);
}
#home .container {
  background-image: url('../img/snappy-singalong-hero.jpg');
  background-size: 100%;
  background-position: center top;
  background-repeat: no-repeat;
}
.video-card {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: 0.2s ease;
}
.video-card:hover .play-overlay {
  opacity: 1;
}
.video-title {
  font-size: 0.85rem;
  line-height: 1.2;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trust-bar {
  padding: 10px;
}
.trust-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}
.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FAE09E;/*#f9ca40;*/
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.trust-icon i {
  font-size: 22px;
  color: #000;
}
.trust-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.navbar-toggler {
  border: none;
  padding: 0;
  box-shadow: none !important;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2382c82f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus {
  box-shadow: none;
}

.downloads-intro {
  max-width: 700px;
  margin-inline: auto;
}

.downloads-accordion .accordion-item {
  border: 1px solid #d8ecd9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.downloads-accordion .accordion-button {
  background: #E2F3E2;
  padding: 1rem;
  gap: 1rem;
}

.downloads-accordion .accordion-button:not(.collapsed) {
  background: #dff4e1;
  color: inherit;
  box-shadow: none;
}

.downloads-accordion .accordion-button:focus {
  box-shadow: none;
}

.download-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.download-heading {
  text-align: left;
}

.download-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.download-count {
  color: #4e9c53;
  font-weight: 600;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li:not(:last-child) {
  margin-bottom: 0.75rem;
}

.download-list a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #006e90;
  font-weight: 600;
}

.download-list a:hover {
  color: #4e9c53;
}

.download-list i {
  color: #e53935;
  font-size: 1.1rem;
}


 /* X-Small devices (portrait phones, less than 576px) */
 /* No media query for `xs` since this is the default in Bootstrap */
 @media (max-width: 767.98px) {

  .navbar-nav {
    text-align: center;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 1rem 0;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #82c82f;
    text-decoration: none;
  }

  #about > .container{
    padding-bottom: 260px !important;
  }

  #home .container {
    background-image: url('../img/snappy-singalong-hero-mobile.jpg');
  }

}

 /* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  /*body{border:10px solid red;
    border-width:0 10px;
  }*/
  #home .hero-text {
    padding: 87px 30px 25px;
  }
  #home .btn-snapy{
    font-size: 0.83em;
  }
  #about > .container{
    padding-bottom: 290px !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /*body{
    border:10px solid green;
    border-width:0 10px;
  }*/
  #home .hero-text {
    padding: 130px 30px 33px;
  }
  #home .btn-snapy{
    font-size: 0.80em;
  }
  #about > .container{
    padding-bottom: 400px !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /*body{
    border:10px solid blue;
    border-width:0 10px;
  }*/
  #home .hero-text {
    padding: 173px 30px 40px
  }
  #home p.lead{
    font-size:15px;
    margin:0;
  }

  #about > .container{
    padding-bottom: 520px !important;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /*body{
    border:10px solid yellow;
    border-width:0 10px;
  }*/
  #home .hero-text {
    padding: 200px 30px 33px;
  }
  #about > .container{
    padding-bottom: 670px !important;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /*body{
    border:10px solid black;
    border-width:0 10px;
  }*/
  #home .hero-text {
    padding: 230px 0 38px;
  }
}




/* ==========================================================================
   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.
   ========================================================================== */

 /* X-Small devices (portrait phones, less than 576px) */
 /* No media query for `xs` since this is the default in Bootstrap */

 /* Small devices (landscape phones, 576px and up) 
@media (min-width: 576px) {
  body{border:10px solid red;border-width:0 10px;}
}

/* Medium devices (tablets, 768px and up) 
@media (min-width: 768px) {
  body{border:10px solid green;border-width:0 10px;}
}

/* Large devices (desktops, 992px and up) 
@media (min-width: 992px) {
  body{border:10px solid blue;border-width:0 10px;}
}

/* X-Large devices (large desktops, 1200px and up) 
@media (min-width: 1200px) {
  body{border:10px solid yellow;border-width:0 10px;}

}

/* XX-Large devices (larger desktops, 1400px and up) 
@media (min-width: 1400px) {
  body{border:10px solid black;border-width:0 10px;}
  #home .hero-text {
    padding: 230px 0 38px;
  }
}*/

@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;
  }
}

