@font-face {
  font-family: "UnifontFullMediumMono";
  src: url("../assets/fonts/UnifontFullMediumMono.ttf") format("truetype");
  font-weight: normal;
}

html * {
  font-size: 16px;
  font-family: "UnifontFullMediumMono", sans-serif;
  font-weight: normal;
  color: white;
  scrollbar-width: none; /* Remove scrollbars on Firefox */
}

/* Remove scrollbars on WebKit browsers */
::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: black;
  cursor: url("../assets/images/ui/cursor_divers.png"), auto;
}

/* CRT with Divers UI */
#frame {
  position: relative;
  width: 742px;
  height: 577px;
  background: url("../assets/images/ui/frame_divers.png") no-repeat center center;
  background-size: cover;
}

/* About me sidebar */
#sidebar {
  position: absolute;
  width: 130px;
  height: 234px;
  top: 82px;
  right: 82px;
}

#sidebar-avatar {
  position: absolute;
  width: 130px;
  height: 130px;
  background: url("../assets/images/ui/cocktail.png") no-repeat center center;
}

#sidebar-header {
  position: absolute;
  width: 130px;
  height: 28px;
  top: 130px;
  right: 0;
  background: url("../assets/images/ui/sidebar_header.png") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar-content {
  position: absolute;
  width: 130px;
  height: 76px;
  top: 158px;
  right: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

#sidebar-content p {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  line-height: 1.05;
  text-align: justify;
  text-align-last: justify;
}

/* Main content */
main {
  position: absolute;
  width: 420px;
  height: 274px;
  top: 74px;
  left: 66px;
  overflow-y: scroll;
  justify-content: space-between;
}

main h1 {
  padding: 8px;
  margin: 0;
  color: #fa5692;
}
main p {
  padding: 8px;
  margin: 0px;
}

#button {
  width: 200px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#button span {
  margin-bottom: 15px;
}

/* Footer */
footer {
  position: absolute;
  width: 382px;
  height: 62px;
  bottom: 143px;
  left: 84px;
}

#marquee {
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
}

#marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
  margin: 0;
  color: #fa5692;
}
@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

/* Marquee displaying nav-item info on hover */
#marquee-nav-info {
  position: absolute;
  width: 376px;
  height: 62px;
  bottom: 0px;
  visibility: hidden;
  background-color: black;
  display: flex;
  align-items: center;
  padding-left: 6px;
}

/* Navigation panel */
nav {
  position: absolute;
  width: 79px;
  height: 79px;
  bottom: 150px;
  right: 123px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
}

#nav-item-home {
  background: url("../assets/images/ui/home.png") no-repeat center center;
}

#nav-item-blog {
  background: url("../assets/images/ui/blog.png") no-repeat center center;
}

#nav-item-links {
  background: url("../assets/images/ui/links.png") no-repeat center center;
}

#nav-item-music {
  background: url("../assets/images/ui/music.png") no-repeat center center;
  cursor: pointer;
}

.nav-item a {
  position: absolute;
  inset: 0;
  display: block;
}
