body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-image: url(mess/sus/starrrr.jpg);
}

p,
.p2,
h5,
h6,
.neocities {
  font-family: helvetica;
}

h1,
h3,
h4 {
  font-family: "Sable", sans-serif;
}

main {
  display: flex;
  flex-direction: column;
}

.dashboard {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  margin-right: 10%;
  margin-left: 10%;
}

#front {
  text-align: center;
}

h1,
h3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: white;
  font-size: 45px;
  text-align: center;
}

h2 {
  color: white;
  font-size: 15px;
  padding: 10px;
  font-weight: normal;
}

h4,
p,
a {
  color: white;
  font-size: 21px;
  white-space: wrap;
}

h1 a {
  font-size: 15px;
}

nav a {
  color: white;
}

a:hover {
  color: #d8e9f8;
}

.link {
  align-items: center;
  list-style: none;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  font-family: "Sable", sans-serif;
  justify-content: space-evenly;
}

a {
  text-align: center;
  margin: 50px;
  font-family: "Sable", sans-serif;
}

#gbox {
  padding: 20px;
  outline: 2px black dotted;
  grid-row: 1;
  grid-column: 2;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
      circle at bottom,
      transparent 100%,
      #000 50%,
      #000 50%,
      transparent 50%
    ),
    radial-gradient(
      circle at top,
      transparent 100%,
      #000 10%,
      #000 10%,
      transparent 50%,
      transparent 100%,
      #000 100%,
      #000 10%,
      transparent 10%
    ),
    radial-gradient(
      circle at left,
      transparent 25%,
      #000 50%,
      #000 30%,
      transparent 31%,
      transparent 39%,
      #000 40%,
      #000 45%,
      transparent 46%
    ),
    radial-gradient(
      circle at right,
      transparent 24%,
      #000 1%,
      #000 1%,
      transparent 2%,
      transparent 1%,
      #000 50%,
      #000 50%,
      transparent 10%
    );
  background-size: 2em 2em;
  background-color: rgb(58, 121, 204);
}

#grid {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

#grid > div {
  position: relative;
  width: 90px;
  height: 90px;
}

#grid > div img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 8px;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  width: 130px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#grid > div:hover .content {
  opacity: 1;
}

#p1,
#p2,
#p3,
#p4,
#p5,
#p6,
#p7,
#p8 {
  cursor: pointer;
}

#item1,
#item2,
#item3,
#item4,
#item5,
#item6,
#item7 {
}

#grid2 {
  display: grid;
  justify-content: center;
  width: 100%;
  grid-template-columns: repeat(7, 115px);
  grid-template-rows: repeat(3, 120px);
  gap: 5px;
}

.container {
  grid-row: 2;
  grid-column: 2;
  background-color: #6fa1ce96;
  outline: black 2px dotted;
  color: black;
}

p {
  color: white;
  font-size: 25px;
  font-family: "Sable", sans-serif;
}

.p2 {
  padding: 2px;
  background: white;
  border-radius: 1px;
  color: black;
  font-size: 15px;
  text-align: left;
  word-break: break-word;
  margin-right: 50px;
  margin-left: 50px;
  outline: black 1px dotted;
}

.mid {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.neocities {
  padding: 10px;
}

.buttons {
  text-align: center;
  margin: 10px;
}

#scroll-container {
  border-radius: 2px;
  overflow: hidden;
  height:29px;
  flex-direction:row;
}

#scroll-text {
  text-align: right;
  -moz-transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  
  -moz-animation: my-animation 20s linear infinite;
  -webkit-animation: my-animation 25s linear infinite;
  animation: my-animation 35s linear infinite;
}
/* for Firefox */
@-moz-keyframes my-animation {
  from { -moz-transform: translateX(-100%); }
  to { -moz-transform: translateX(100%); }
}

/* for Chrome */
@-webkit-keyframes my-animation {
  from { -webkit-transform: translateX(-100%); }
  to { -webkit-transform: translateX(100%); }
}

@keyframes my-animation {
  from {
    -moz-transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  to {
    -moz-transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }}


@media (max-width: 768px) {
  .dashboard {
    margin: 0 3%;
  }

  h1,
  h3 {
    font-size: 36px;
  }

  p,
  .p2 {
    font-size: 18px;
  }

  #grid {
    justify-content: space-evenly;
    gap: 10px;
  }

  #grid > div img {
    max-width: 70px;
    max-height: 70px;
  }

  #grid2 {
    grid-template-columns: repeat(4, 115px);
    grid-template-rows: repeat(4, 120px);
  }

  .link {
    flex-direction: column;
    align-items: center;
  }

  .container {
    width: 100%;
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .dashboard {
    margin: 0 2%;
  }

  h1,
  h3 {
    font-size: 28px;
  }

  p,
  .p2 {
    font-size: 16px;
  }

  #grid {
    justify-content: space-evenly;
    gap: 5px;
  }

  #grid > div img {
    max-width: 60px;
    max-height: 60px;
  }

  #grid2 {
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(6, 100px);
  }

  .link {
    flex-direction: column;
    align-items: center;
  }

  .container {
    width: 100%;
    margin: 20px 0;
  }
}
