@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  display: inline;
}

nav {
  background-color: #427990;
  padding: 5px;
  position: sticky;
  top: 0;
  z-index: 2;
}

nav ul {
  display: flex;
  padding-inline: 4rem;
  gap: 2rem;
}

nav li {
  list-style-type: none;
}

nav a {
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  color: white;
}

nav a:hover {
  font-weight: bold;
}

main {
  display: flex;
  padding: 20px;
  gap: 1.5rem;
}

aside {
  flex: 1;
}

footer {
  color: #fff;
  background-color: #427990;
  padding: 20px;
  text-align: center;
}

h2 {
  color: #427990;
}

h3 {
  color: #60b0d1;
}

#content {
  flex: 5;
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem 2rem;
}

#ekstrakurikuler li {
  transition: .3s;
}


#ekstrakurikuler ol li:hover {
  color: red;
}

.jumbotron {
  font-size: 20px;
  padding: 60px;
  background-image: url('../image/school.jpg');
  text-align: center;
  color: white;
  background-size: cover;
  background-attachment: fixed;
}

.jumbotron h1,
.jumbotron p {
  text-shadow: 2px 2px 1px rgba(255,0,0,.5),
               3px 3px 3px rgba(0, 0, 255, .5);
}

.profile header {
  text-align: center;
}

.featured-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}

/* Image on Hover */
.hvr-image-float-shadow {
  width: 150px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  transition: .3s;
}
.hvr-image-float-shadow:before {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  content: '';
  top: 100%;
  left: 5%;
  height: 10px;
  width: 90%;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
  transition: .3s;
}
.hvr-image-float-shadow:hover {
  transform: translateY(-5px);
}
.hvr-image-float-shadow:hover:before {
  opacity: 1;
  transform: translateY(5px);
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.profile img {
  width: 200px;
}

.card {
  box-shadow: 0 2px 8px 2px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 20px;
  transition: .3s;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px 2px rgba(38, 70, 83, .8);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
}
  
.menu-toggle input {
  position: absolute;
  width: 40px;
  height: 28px;
  left: -5px;
  top: -2px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}
  
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all .5s;
}
  
.menu-toggle span:nth-child(2) {
  transform-origin: 0 0;
}
  
.menu-toggle span:last-child {
  transform-origin: 0 100%;
}

.menu-toggle input:checked ~ span:nth-child(2) {
  transform: rotate(45deg) translate(-1px, -1px);
}
  
.menu-toggle input:checked ~ span:last-child {
  transform: rotate(-45deg) translate(-1px, 0);
}
  
.menu-toggle input:checked ~ span:nth-child(3) {
  opacity: 1;
  transform: scale(0);
}

@media screen and (max-width: 1200px) {
  main {
    flex-flow: column nowrap;
  }

  main aside {
    align-self: center;
  }
}

@media screen and (max-width: 768px) {
  nav ul {
    justify-content: center;
  }

  main aside {
    align-self: stretch;
  }
}

@media screen and (max-width: 576px) {
  section.logo {
    margin: auto;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    position: absolute;
    left: 0;
    top: 0;
    width: 80%;
    height: 100vh;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
    background-color: #427990;
    z-index: -1;
    transform: translateX(-100%);
    transition: all .5s;
    opacity: 0;
  }
  
  nav ul.slide {
    opacity: .9;
    transform: translateX(0);
  }
}