* {
  margin: 0;
  padding: 0;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: 
     "nav"
     "tidebar"
     "main"
     "footer";
  font-family: "inter", sans-serif;
}

nav {
  background: #393e3e;
  grid-area: nav;
  height: 130px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

h1 {
  color: #ffffff;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  position: absolute;
  left: 90px;
  top: 30.28px;
  width: 212px;
}

#logo {
  border-radius: 50%;
  border-style: solid;
  height: 65.17px;
  position: relative;
  left: 35px;
  top: 10px;
  object-fit: cover;
}

ul {
  position: absolute;
  top: 4rem;
  left: 250px;
  transform: translateX(-50%);
  display: flex;
}

ul li {
  list-style: none;
}

ul li a {
  position: relative;
  display: block;
  text-transform: uppercase;
  margin: 20px 0;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 600;
  transition: 0.5s;
  z-index: 1;
}

ul li a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  transform: scaleY(2);
  opacity: 0;
  transition: 0.3s;
}

ul li a:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transform: scale(0);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

ul li a:hover {
  color: #000000;
}

ul li a:hover:before {
  transform: scaleY(1);
  opacity: 1;
}

ul li a:hover:after {
  transform: scaleZ(1);
  opacity: 1;
}

#tidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #666666;
  grid-area: tidebar;
  height: 50px; 
}

h3 {
  text-align: center;
  color: #ffffff;
}

main {
  background: #fff;
  grid-area: main;
  height: 170px;
}

footer {
  background: #393e3e;
  grid-area: footer; 
  height: 100px;
  position: absolute;
}

.mother,
.processor,
.graphicscard,
.storage,
.ram,
.psu,
.casecooler,
.operating {
  display: flex;
  padding: 10px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.motherboard,
.processor,
.graphicscard,
.storage,
.ram,
.psu,
.casecooler,
.operating {
  width: 100%;
  max-width: 400px;
}

.motherboard-info,
.processor-info,
.graphics-info,
.storage-info,
.memory-info,
.psu-info,
.case-info,
.os-info {
  flex: 1;
  padding: 10px;
  text-align: center;
}

.tutorial {
  flex: 1;
  order: 1;
  margin-top: 50px;
  text-align: justify;
}

.tutorial h2 {
  font-size: 24px;
  color: #333;
}

.tutorial ol {
  padding-left: 20px;
}

.tutorial li {
  margin-bottom: 10px;
}

.tutorial p {
  font-size: 16px;
  line-height: 1.6;
  color: #a32d2d;
}

.tutorial img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/* Media Queries */

@media screen and (max-width: 768px) {
  nav {
    height: 100px;
  }

  h1 {
    font-size: 20px;
    width: auto;
    left: 10px;
    transform: none;
    top: 20px;
  }

  #logo {
    width: 50px;
    height: 50px;
  }

  ul {
    top: 5rem;
  }
}

@media screen and (max-width: 600px) {
  nav {
    height: 80px;
  }

  h1 {
    font-size: 18px;
    top: 10px;
  }

  #logo {
    width: 40px;
    height: 40px;
  }

  ul {
    top: 4rem;
  }

  .mother,
  .processor,
  .graphicscard,
  .storage,
  .ram,
  .psu,
  .casecooler,
  .operating {
    max-width: 100%;
  }
}
