* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "roboto", helvetica, arial, sans-serif;
}

body {
  background-image: linear-gradient(-20deg, #2b5876 0%, #4e4376 100%);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-color: #121212;
  min-height: 100vh;
  color: #e4e7eb;
  display: grid;
  grid-auto-rows: minmax(100px, auto);
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "h h h h h h h h h h h h"
    "l l l l l l l l l l l l"
    ". . . . b b b b . . . ."
    ". s s s s s s s s s s ."
    ". . . . . . . . . . . ."
    ". . . . . . . . . . . ."
    "f f f f f f f f f f f f";
}

a {
  color: #e4e7eb;
}

/*Header*/
header {
  grid-area: h;
}

/*Nav*/

/* nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.5rem;
}

.loga {
  font-size: 0.9rem;
  width: 9rem;
}

nav ul li {
  list-style: none;
  padding: 4px;
  position: relative;
  display: block;
  font-size: 1.1em;
}

nav ul li a {
  text-decoration: none;
  transition: all 0.3s ease 0s;
  color: #e4e7eb;
  padding: 5px 10px;
}

nav ul a:hover {
  color: #ffaa33;
}

nav ul li ul {
  display: none;
}

nav ul li:hover ul {
  display: block;
  position: absolute;
  background-color: rgb(228, 231, 235, 0.2);
  border-radius: 10px;
}*/

.top {
  display: flex;
  justify-content: space-around;
  align-items: center;
  grid-area: l;
}

.tlogo {
  max-width: 50%;
  height: auto;
  width: 400px;
  transition: transform 0.7s ease;
}

.tlogo:hover {
  transition: transform 0.8s ease;
  transform: rotateZ(10deg) rotateY(0.1turn);
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.5rem;
}

.loga {
  font-size: 0.9rem;
  width: 9rem;
}

nav ul li {
  list-style: none;
  padding: 4px;
  position: relative;
  display: block;
  font-size: 1.1rem;
}

nav ul li a {
  text-decoration: none;
  transition: all 0.3s ease 0s;
  color: #e4e7eb;
  padding: 5px 10px;
}

nav ul a:hover {
  color: #ffaa33;
}

nav ul li ul {
  display: none;
}

nav ul li:hover ul {
  display: block;
  position: absolute;
  background-color: rgb(228, 231, 235, 0.2);
  border-radius: 10px;
}

#hamburger-icon {
  margin: 50px;
  display: none;
  cursor: pointer;
}

#hamburger-icon div {
  width: 44px;
  height: 3px;
  background-color: white;
  margin: 10px 0;
  transition: 0.4s;
}

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  margin-top: 35px;
  position: absolute;
  top: 50px;
  width: 80%;
  background-color: rgb(0, 0, 0, 0.8);
  border-radius: 15px;
  font-size: 1.5rem;
}

.mobile-menu li {
  margin-bottom: 10px;
  display: block;

  width: 100%;
  padding: 10px;
  transition: all 0.3s ease 0s;
}

.logm {
  text-decoration: none;
}

/*Section*/
h2 {
  margin-bottom: 1em;
}

.main {
  /* margin: 0 2em; */
  grid-area: s;
}

/*Footer*/
footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 50px;
  grid-area: f;
}

a:hover {
  color: #ffaa33;
  transition: all 0.3s ease 0s;
}

/*-----------> M1R1 <----------*/
.m1r1 {
  background-color: rgb(228, 231, 235, 0.2);
  border-radius: 15px;
  padding: 2rem;
}

.m1r1list {
  margin-left: 20px;
}

.m1r1list li {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: large;
}
.m1r1p {
  margin-bottom: 1rem;
}

.m1r1re {
  margin-left: 20px;
}

.m1r1re {
  margin-bottom: 1rem;
}

/*-----------> M2 PWA <----------*/

.btn {
  grid-area: b;
  margin: 3rem 0 3rem 0;
}

.pwa {
  font-weight: bold;
  font-size: 1em;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #e4e7eb;
  display: inline-block;
  padding: 10px 10px;
  position: relative;
  border: 3px solid #e4e7eb;
  border-radius: 25px;
  background-color: transparent;
  width: 100%;
  text-align: center;
}

.pwa:hover {
  background-color: #e4e7eb;
  color: #121212;
  cursor: pointer;
  transition: 0.4s;
}

.sech2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

h3 {
  font-size: 1.3rem;
}

.typep {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.typep img {
  max-width: 60%;
  height: auto;
  margin: 1rem 0;
}

/* Resources */
.resources {
  grid-area: r;
  background-color: rgb(228, 231, 235, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}

.resource {
  padding: 0.5rem;
}

/* M4 Resources and Tools */
.rate {
  font-size: large;
  margin: 0.5rem 0;
}

.rtline {
  color: #e4e7eb;
  margin: 2rem 0;
}

/* Adjust for smaller screens */

@media only screen and (max-width: 700px) {
  body {
    margin: 0 2rem;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "h h"
      "l l"
      "b b"
      "s s"
      "f f";
  }

  .top {
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
  }

  .tlogo {
    width: 90%;
    margin-bottom: 2rem;
  }

  h2 {
    text-align: center;
  }

  header nav {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }

  /*nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  nav ul li a {
    font-size: 1rem;
  } */
}
