@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap");
* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}

body {
  background: url("../assets/images/bg-mobile-fallback.png") center center no-repeat;
  background-size: cover;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: rgb(255, 255, 255);
  overflow-y: scroll; /* Add the ability to scroll */
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Hide scrollbar for Chrome, Safari and Opera */
}
body::-webkit-scrollbar {
  display: none;
}
body .circle-logo {
  position: absolute;
  top: 5px;
  left: 5px;
}
body .circle-logo .circle {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
body .circle-logo .circle .logo {
  width: 112.5px;
  height: 112.5px;
  border-radius: 50%;
  background: #2e2223 url(../assets/images/my-photo.jpg);
  background-size: cover;
}
body .circle-logo .circle .logo .text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotateText 30s linear infinite;
  color: white;
  font-family: consolas;
}
body .circle-logo .circle .logo .text span {
  position: absolute;
  left: 50%;
  transform-origin: 0 75px;
}
@keyframes rotateText {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

main {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

a {
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

.bg-video {
  display: none;
}

.dark-filter {
  min-width: 100%;
  min-height: 100%;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.5);
}

section.exercises {
  margin: 100px 3%;
}
section.exercises h2 {
  margin-bottom: 40px;
  text-align: center;
}
section.exercises .exercises-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
section.exercises .exercises-container .exercise {
  padding: 10px;
  max-width: 300px;
  flex: 1 0 270px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
section.exercises .exercises-container .exercise .card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
section.exercises .exercises-container .exercise .card figure {
  height: 150px;
  overflow: hidden;
}
section.exercises .exercises-container .exercise .card figure img {
  min-height: 100%;
  -o-object-fit: fill;
     object-fit: fill;
  -o-object-position: top left;
     object-position: top left;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
section.exercises .exercises-container .exercise .card .card-content {
  height: 100%;
  padding: 10px;
  line-height: 1.25;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
section.exercises .exercises-container .exercise .card .card-content h4 {
  text-align: center;
}
section.exercises .exercises-container .exercise .card .card-content p {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.1rem;
  color: rgb(233, 233, 233);
}
section.exercises .exercises-container .exercise .card .card-content a {
  margin-top: auto;
  padding: 10px;
  align-self: flex-start;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  border-radius: 10px;
  transition: background-color 350ms ease-in-out, transform 350ms ease-in-out;
}
section.exercises .exercises-container .exercise .card .card-content a:visited {
  color: rgb(255, 255, 255);
}
section.exercises .exercises-container .exercise .card .card-content a:hover, section.exercises .exercises-container .exercise .card .card-content a:active {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0.9);
}

.main-header {
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  transition: all 350ms ease-in-out;
  line-height: normal;
}
.main-header .logo {
  margin-left: 3%;
  font-size: 2.5rem;
  color: rgb(255, 255, 255);
  order: 1;
  visibility: hidden;
  opacity: 0;
}
.main-header .logo:visited {
  color: rgb(255, 255, 255);
}

.main-header:hover,
.main-header:active {
  background-color: rgba(0, 0, 0, 0.5);
}

.main-navigation {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.25s ease-in-out;
  background-color: rgba(51, 51, 51, 0.95);
  z-index: 1;
  order: 3;
}
.main-navigation ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.main-navigation ul li {
  width: 100vw;
  margin: 10px 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  transition: background-color 350ms ease-in-out, transform 350ms ease-in-out;
}
.main-navigation ul li:hover,
.main-navigation ul li:active,
.main-navigation ul li.active {
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  cursor: pointer;
}
.main-navigation li a {
  width: 100%;
  padding: 10px;
  display: inline-block;
}
.main-navigation li a,
.main-navigation li a:visited {
  color: rgb(255, 255, 255);
}

a.menu-btn {
  width: 2rem;
  height: 2rem;
  margin-right: 3%;
  order: 2;
}
a.menu-btn svg {
  width: 100%;
  color: white;
  transition: all 350ms ease-in-out;
}
a.menu-btn svg:hover, a.menu-btn svg:active {
  transform: scale(0.9);
}

.show-nav {
  transform: scaleY(1);
}

footer {
  height: 2rem;
  width: 100%;
  padding: 10px 0;
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  background-color: #2e2223;
  font-size: 0.65rem;
}

section.home-main-content {
  transform: translateY(-50%);
}
section.home-main-content article.banner {
  padding: 20px 40px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
section.home-main-content article.banner > * {
  line-height: 3;
}

section.exercises.algorithms .accordion-item {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

section.exercises.algorithms .accordion-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

section.exercises.algorithms .accordion-button::after {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
}

section.exercises.algorithms .accordion-body {
  text-align: center;
}

section.exercises.algorithms .accordion-body p {
  padding: 10px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.1);
}

@media screen and (min-width: 768px) {
  .bg-video {
    min-width: 100%;
    min-height: 100%;
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -2;
    -o-object-fit: cover;
       object-fit: cover;
  }
  body {
    background: none;
  }
}
@media screen and (min-width: 992px) {
  .main-header {
    height: 4rem;
  }
  .main-navigation {
    margin-right: 3%;
    background-color: transparent;
    display: flex;
    transform: scaleY(1);
  }
  .main-navigation ul {
    display: flex;
    gap: 10px;
  }
  .main-navigation ul li {
    width: auto;
  }
  .menu-btn {
    display: none;
  }
}