::-webkit-scrollbar {
  width: .9em;
}

::-webkit-scrollbar-track {
  background: #181414;
  border-radius: 100vw;
  margin-block: .5em;
}

::-webkit-scrollbar-thumb {
  background: lightgray;
  border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover {
  background: gray;
}


body {
  background-color: #1c1c24;
  background-image: none;
  margin:0;
  padding:0;
  overflow-x: hidden; /* Hide scrollbars */
}

p {
  color: white;
  margin: 20px;
  position: relative;
}

.half {
  opacity: 0.4;
}

h1 {
  margin: 20px;
  color: white;
  font-family:sans-serif;
}

footer {
  background-color: #181414;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
}

#header {
  background-color: #181414;
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
}

#certblock {
  position: relative;
  margin:30px;
  display: inline-block;
  text-align:center;
  background-color: #242222;
  border:3px solid #181414;
  border-radius: 10px;
  padding-top: 20px;
}

#certblock_two {
  position: relative;
  margin:30px;
  display: inline-block;
  text-align:center;
  background-color: #242222;
  border:3px solid #181414;
  border-radius: 10px;
  left:-25px;
}

#certblock_two:hover {
  box-shadow: 5px 5px 3px #f2f2f2;
}


#blockid {
  position: relative;
}

#certinnertext {
  line-height:50px;
  position:relative;
  top:-10px;
}

/* Add a black background color to the top navigation */
.topnav {
  background-color: #181414;
  margin-left: 20px;
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: right;
  color: #f2f2f2;
  text-align: center;
  padding: 20px 16px;
  text-decoration: none;
  font-size: 20px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #333;
  color: white;
}

.typewriter h1 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid white; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .01em; /* Adjust as needed */
  animation:
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 76% } /* Adjust for typing distance */
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white; }
}
