@charset "utf-8";

html {
  scroll-behavior: smooth;
}

body {
  color: blueviolet;
}

nav {
  margin: 1rem auto;
}

nav p {
  margin: auto;
  background: ivory;
  width: 9%;
}

p a {
  display: block;
  color: #ff88c9;
}

p a:hover {
  color: darkorange;
  background: mediumslateblue;
}

form {
  margin: 1rem auto;
}

input {
  text-align: center;
  vertical-align: middle;
  border: none;
  border-bottom: 3px solid blueviolet;
  padding: 0.7rem;
  color: blueviolet;
  width: 19%;
}

:focus {
  outline: none;
}

::placeholder {
  color: blueviolet;
}

:focus::placeholder {
  color: rgba(138,43,226,0.3);
}

button {
  vertical-align: middle;
  border: none;
  margin-left: 0.3rem;
  color: blueviolet;
  background: white;
}

button:hover {
  color: darkorange;
}

table {
  table-layout: fixed;
  border-collapse: collapse;
  margin: 3rem auto;
  color: black;
  background: ivory;
  width: 70%;
}

caption {
  border-left: 1px solid black;
  border-top: 1px solid black;
  border-right: 1px solid black;
}

table:nth-of-type(odd) caption {
  color: white;
  background: blueviolet;
}

table:nth-of-type(even) caption {
  color: black;
  background: deepskyblue;
}

tr:hover {
  background: yellow;
}

th {
  background: aquamarine;
}

th,td {
  border: 1px solid black;
}

td a {
  display: block;
  color: blueviolet;
}

td a:hover {
  color: red;
}

.n {
  width: 5%;
}

.f {
  width: 45%;
}

.j {
  width: 5%;
}

.b {
  width: 15%;
}

footer {
  margin: 1rem auto;
}

.top {
  display: none;
}

/* =========== for Mobile =========== */
@media (max-width: 767px) {

nav p {
  width: 30%;
}

p a {
  padding: 0.3rem 0;
}

input {
  width: 50%;
}

table {
  width: 90%;
}

.n {
  width: 10%;
}

.f {
  width: 80%;
}

.j {
  display: none;
}

.b {
  display: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 3rem;
  bottom: 3rem;
  z-index: 9;
  border: none;
  border-radius: 50%;
  color: aqua;
  font-size: 1.6rem;
  font-weight: bold;
  background: rgba(123,104,238,0.3);
  width: 7rem;
  height: 7rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

}
