html {
  height: 100%; /* Full height of viewport */
  margin: 0;
  font-size: 16px;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.5; /* 24px */
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a:any-link {
  color: #058ED9;
  text-decoration-line: none;
  cursor: auto;
}

h1 {
  color: #ffffff;
  font-size: 7rem;
  line-height: 1;
  font-family: "Oswald", sans-serif;
  position: absolute;
  margin: 0;
  z-index: 0;
  font-weight: bold;
}

.heading-block {
  position: relative;
}

h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 400;
  font-style: normal;
  margin: 35px 0 -35px 0;
  position: relative;
  z-index: 2;
}

.bg-heading {
  -webkit-text-stroke: 2px #058ED9;
  color: transparent;
  /*font-size: 7rem;*/
  opacity: 0.3;
  font-family: "Oswald", sans-serif;
  position: absolute;
  top: -40px;
  margin: 0;
  z-index: 0;
  font-weight: bold;
}

p {
  font-size: 1.2em; /* 16px */
  line-height: 1.7; /* 27px */
}

ul {
  font-size: 18px;
  line-height: 27px;
}

/* Section with background color */
header {
  padding: 20px 0;
  background: radial-gradient(circle, #058ED9 0%, #1A2836 100%);
}

nav {
  background-color: color(srgb 0.0749 0.105 0.135);
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 3;
  font-family: "Oswald", sans-serif;
}

nav .col.col-12 {
  padding: 0;
}

#half-bg {
  background-color: #1a2836;
  height: 600px;
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/*header h1 {
  text-align: center;
  font-weight: bold;
  font-size: 3.6rem;
}*/

header h1 small {
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

header .col-4 {
  text-align: center;
}

header h2 {
  text-align: center;
  font-family: "Oswald", sans-serif;
  margin: 0;
}

nav .anchor-links .anchors:hover {
  transform: scale(1.05);
}

/*
nav .anchor-links #link-1 {
  color: #5e75be;
}
nav .anchor-links #link-2 {
  color: #FF6978;
}
nav .anchor-links #link-3 {
  color: #F4D06F;
}
nav .anchor-links #link-4 {
  color: #058ED9;
}
*/

header #contactbtn {
  background-color: #058ED9;
  padding: 10px 20px 10px 20px;
  border-radius: 5px;
  font-size: 1.6rem;
  color: color(srgb 0.1016 0.1584 0.2127);
  font-weight: bold;
}

header #contactbtn:hover {
  transform: scale(1.1);
}

header .row {
  justify-items: center;
  align-items: center;
}

.header-elements {
  z-index: 1;
  position: relative;
}

.header-elements small {
  background-color: #058ED9;
  padding: 10px 20px;
}

#picture-frame {
  background-color: #0f2337;
  border-radius: 50%;
  background-image: url('/images/my-portrait.png');
  background-position: 30% -16%;
  background-repeat: no-repeat;
  background-size: 90%;
}

.anchor-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.anchor-links a {
    cursor: pointer;
}

footer {
  padding: 40px 0;
  padding: 40px 0;
  background-color: #131b23;
}

footer p {
  text-align: center;
}

section:nth-child(odd) {
  background-color: #1A2836; /* Blue background for every even section */
}

section:nth-child(even) {
  background-color: #213447; /* Green background for every odd section */
}

#video #player-container {
  background-color: color(srgb 0.0762 0.1068 0.1361);
  box-shadow: -50px -50px 0 -40px #058ED9;
}

#video #thumbnail-container {
  background-color: color(srgb 0.0762 0.1068 0.1361);
  box-shadow: 50px 50px 0 -40px #058ED9;
}

.video-container {
  text-align: center;
  margin: 20px auto;
}

.thumbnail.active-img-thumbnail {
  border-color: #058ED9;
}

.thumbnail {
  width: 180px;
  margin: 0 10px;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 5px;
  transition: transform 0.3s;
}

.thumbnail:hover {
  transform: scale(1.1);
}

#cookie-notice {
  background-color: color(srgb 0.0749 0.105 0.135);
  color: #ffffff;
  padding: 30px 5px 30px 5px;
  position: fixed;
  top: 0;
  font-weight: bold;
  width: 100%;
  text-align: center;
  left: 0;
  z-index: 3;
}

#cookie-notice a {
  color: #068ed9;
  }

#cookie-notice button {
  font-size: 1.6rem;
  padding: 15px;
  border: none;
  color: #ffffff;
  background-color: #068ed9;
  cursor: pointer;
  }

#cookie-notice p {
  font-size: 1.6rem;
  padding: 0;
  margin: 0 0 20px 0;
}

 #cookie-rejected-message {
  display: none;
  background-color: #f8f8f8;
  color: #333;
  padding: 10px;
  text-align: center;
 }

 #cookie-preference-button {
  background-color: #068ed9;
  border: none;
  font-size: 1.3rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  color: #ffffff;
 }

 #contact-me input,  #contact-me textarea {
  width: 90%;
  display: block;
  float: left;
  margin: 0 0 20px 0;
  border: 1px solid #058ED9;
  background-color: transparent;
  color: #058ED9;
  padding: 20px 10px;
  font-size: 1.2rem;
}

#contact-me form button:hover {
  transform: scale(1.2);
}

#contact-me #checkbox1 {
  width: 10%;
}

/* The checkbox container */
.checkbox-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  /*font-size: 22px;*/
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
  background-color: #058ED9;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

#contact-me label {
  float: left !important;
  width: 90%;
  margin-bottom: 20px;
}

#contact-me textarea {
  height: 100pxs;
}

#contact-me form button {
  background-color: #058ED9;
  padding: 10px 20px 10px 20px;
  border-radius: 5px;
  font-size: 1.8rem;
  color: #ffffff;
  border: none;
  cursor: pointer;
  }
  @media (min-width: 1024px) {
    .bg-heading {
      font-size: 7rem;
      top: -40px;
    }
    .anchor-links {
      grid-template-columns: repeat(4, 1fr);
      font-size: 1.9rem;
    }
  }
 @media (min-width: 768px) and (max-width: 1024px) {
  .bg-heading {
    font-size: 5rem;
    top: 0;
  }
  #web-title::before, #email-title::before, #video-title::before, #graphics-title::before {
    font-size: 4rem;
    margin: -70px 0 0 -40px;
  }
  .filter-btn {
    font-size: 1rem;
  }
  .filter-buttons {
    gap: 10px;
  }
  .anchor-links {
    grid-template-columns: repeat(4, 1fr);
    font-size: 1rem;
  }
 }

 @media (min-width: 767px) {
  .hide-desktop {
    font-size: 0;
  }
 }
@media (max-width: 1106px) {
  h1 {
    font-size: 5rem;
  }
 }
 @media (max-width: 836px) {
  h1 {
    font-size: 4.3rem;
  }
 }
 @media (max-width: 767px) {
  .header-elements.hide-mobile {
    font-size: 0;
  }
  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  /*header h1 {
    font-size: 4rem;
    line-height: 1;
  }*/

  #video #thumbnail-container {
    padding: 0 10px 40px 10px;
  }

  h2 {
    margin: 35px 0 -35px 0;
  }
  
  #half-bg {
    height: 600px;
  }

  .thumbnail {
    width: 150px;
  }
}
@media (min-width: 520px) {
  h2 {
    font-size: 2.5rem;
    line-height: 1.5;
  }
  #picture-frame {
    height: 350px;
    width: 350px;
    }
  .ribbon {
    font-size: 1.7rem;
    width: 191px;
    top: 305px;
    left: 61px;
  }
  section {
    padding: 100px 20px;
  }
}
@media (max-width: 519px) {
  header h2 {
    margin: 20px 0 0 0;
  }
  h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
  #picture-frame {
    height: 250px;
    width: 250px;
    }
  .ribbon {
    font-size: 1.3rem;
    width: 140px;
    left: 40px;
    top: 215px;
  }
  section {
    padding: 50px 20px;
  }
  .bg-heading {
    font-size: 3.2rem;
    top: 20px;
  }
  .anchor-links {
    grid-template-columns: repeat(4, 1fr);
    font-size: 0.8rem;
  }
}
@media (min-width: 520px) and (max-width: 767px) {
  .bg-heading {
    font-size: 3rem;
    top: 30px;
  }
  .anchor-links {
    grid-template-columns: repeat(2, 1fr);
    font-size: 1rem;
  }
}
@media (min-width: 320px) and (max-width: 520px) {
  .bg-heading {
    font-size: 2.1rem;
    top: 40px;
  }
  .anchor-links {
    grid-template-columns: repeat(2, 1fr);
    font-size: 1rem;
  }
  #contact-me form button {
    padding: 10px 15px 10px 15px;
    font-size: 1.5rem;
    width: 100%;
  }
}
@media (max-width: 320px) {
  .bg-heading {
    font-size: 1.8rem;
    top: 50px;
  }
  .anchor-links {
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.9rem;
  }
  #contact-me form button {
    padding: 8px 10px 8px 10px;
    font-size: 1.3rem;
    width: 100%;
  }
}
