@charset "utf-8";

html {
  scroll-behavior: smooth;
}

body {
  color: navy;
}

nav {
  margin: 1rem auto;
}

nav p {
  margin: auto;
  background: ivory;
  width: 9%;
}

a {
  display: block;
  color: #ff88c9;
}

a:hover {
  color: darkorange;
  background: mediumslateblue;
}

img {
  display: block;
  border-left: 3px solid mediumspringgreen;
  border-top: 3px solid mediumspringgreen;
  border-right: 3px solid mediumslateblue;
  border-bottom: 3px solid mediumslateblue;
  margin: 1rem auto;
  width: 30%;
}

div p {
  text-align: left;
  border-left: 3px solid black;
  border-top: 3px solid black;
  border-right: 3px solid mediumslateblue;
  border-bottom: 3px solid mediumslateblue;
  border-radius: 5%;
  margin: auto;
  padding: 1rem;
  background: aquamarine;
  width: 59%;
}

article {
  border-left: 3px solid mediumspringgreen;
  border-top: 3px solid mediumspringgreen;
  border-right: 3px solid mediumslateblue;
  border-bottom: 3px solid mediumslateblue;
  border-radius: 5%;
  margin: 1rem auto;
  padding: 1rem;
  background: ivory;
  width: 59%;
}

h2 {
  margin: auto;
  color: blueviolet;
  font-size: 1.6rem;
}

article p {
  text-align: left;
  margin: auto;
}

footer {
  margin: 1rem auto;
}

.top {
  display: none;
}

/* =========== for Mobile =========== */
@media (max-width: 767px) {

nav p {
  width: 30%;
}

img {
  width: 90%;
}

div p,article {
  width: 85%;
}

a {
  padding: 0.3rem 0;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 3rem;
  bottom: 3rem;
  z-index: 9;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.6rem;
  font-weight: bold;
  background: rgba(138,43,226,0.3);
  width: 7rem;
  height: 7rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

}
