:root {
  --border-color: rgba(89, 105, 89, 1);
  --top-screen-font-color: #29423f;
}

@font-face {
  font-family: "DS-Font";
  src: url("../fonts/nds-true-bios.ttf") format("truetype");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*,
html {
  scroll-behavior: smooth !important;
}

body {
  font-family: "DS-Font";
  font-size: 25px;
  height: 100vh;
  background-color: #000;
}

.container {
  background-image: url("../../images/layouts/nintendodsi/bgtest.png");
  margin: 0 auto;
  max-width: 900px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

hr {
  width: 100%;
  height: 3px;
  color: #000;
  background-color: #000;
}

.screen {
  height: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  gap: 30px;
}

.top-screen {
  padding: 30px;
}

.bottom-screen {
  padding-bottom: 50px;
}

/* HTML: <div class="tooltip">This is a Tooltip with a border and with a border radius. Border and background have a solid coloration</div> */
/* CREDIT: https://css-generators.com/tooltip-speech-bubble/ */
.bubble {
  color: black;
  font-size: 18px;
  width: 99%;
  height: fit-content;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.bubble {
  /* triangle dimension */
  --a: 90deg; /* angle */
  --h: 1em; /* height */

  --p: 50%; /* triangle position (0%:left 100%:right) */
  --r: 10px; /* the radius */
  --b: 3px; /* border width  */
  --c1: var(--border-color);
  --c2: white;

  padding: 1em;
  border-radius: var(--r) var(--r)
    min(var(--r), 100% - var(--p) - var(--h) * tan(var(--a) / 2))
    min(var(--r), var(--p) - var(--h) * tan(var(--a) / 2)) / var(--r);
  clip-path: polygon(
    0 100%,
    0 0,
    100% 0,
    100% 100%,
    min(100%, var(--p) + var(--h) * tan(var(--a) / 2)) 100%,
    var(--p) calc(100% + var(--h)),
    max(0%, var(--p) - var(--h) * tan(var(--a) / 2)) 100%
  );
  background: var(--c1);
  border-image: conic-gradient(var(--c1) 0 0) fill 0 / var(--r)
    max(0%, 100% - var(--p) - var(--h) * tan(var(--a) / 2)) 0
    max(0%, var(--p) - var(--h) * tan(var(--a) / 2)) / 0 0 var(--h) 0;
  position: relative;
}
.bubble:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: var(--b);
  border-radius: inherit;
  clip-path: polygon(
    0 100%,
    0 0,
    100% 0,
    100% 100%,
    min(
        100% - var(--b),
        var(--p) + var(--h) * tan(var(--a) / 2) - var(--b) *
          tan(45deg - var(--a) / 4)
      )
      calc(100% - var(--b)),
    var(--p) calc(100% + var(--h) - var(--b) / sin(var(--a) / 2)),
    max(
        var(--b),
        var(--p) - var(--h) * tan(var(--a) / 2) + var(--b) *
          tan(45deg - var(--a) / 4)
      )
      calc(100% - var(--b))
  );
  background: var(--c2) content-box;
  border-image: conic-gradient(var(--c2) 0 0) fill 0 / var(--r)
    max(var(--b), 100% - var(--p) - var(--h) * tan(var(--a) / 2)) 0
    max(var(--b), var(--p) - var(--h) * tan(var(--a) / 2)) / 0 0 var(--h) 0;
}

.bubble > p {
  font-size: 30px;
  text-align: center;
}

#imgscroll {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  gap: 120px;
  overflow-x: hidden;
  padding-bottom: 10px;
}

.cart {
  border: solid 10px var(--border-color);
  border-radius: 10%;
  height: 120px;
  width: 120px;
  box-shadow: 0px 5px 6px 0px rgb(168, 163, 163);
  background-color: white;
}

.cart:first-of-type {
  margin-left: 500px;
}

.cart:last-of-type {
  margin-right: 500px;
}

.cart-hidden {
  visibility: hidden;
}

.cart-visible {
  visibility: visible;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 900px;
  height: 30px;
  padding: 0px 10px 0px 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

header > span {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

header > * > p {
  font-size: 20px;
}

#username {
  color: #88a1b3;
}

#audio {
  width: 18px;
  height: 12px;
  image-rendering: pixelated;
}

#battery {
  width: 17;
  height: 11;
  image-rendering: pixelated;
}

.photosbox {
  width: 100%;
  height: 100%;
  background-color: #abd4cc;
  border: 3px solid #fbfbfb;
  box-shadow: 2px 0px 10px 3px rgba(168, 162, 163, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.photosbox > p {
  text-align: center;
  color: var(--top-screen-font-color);
}

footer {
  border-top: 4px solid rgb(201, 202, 201);
  padding: 0px 10px 0px 10px;
  width: 100%;
  max-width: 900px;
  height: 50px;
  position: fixed;
}

footer {
  background: linear-gradient(
    180deg,
    rgba(236, 236, 236, 1) 10%,
    rgba(201, 202, 201, 1) 50%
  );
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#leftbutton {
  position: absolute;
  left: 0;
}

#rightbutton {
  position: absolute;
  right: 0;
}

button {
  border: 3px solid #87aab9;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  background: rgb(157, 181, 196);
  background: linear-gradient(
    180deg,
    rgba(157, 181, 196, 1) 10%,
    rgba(63, 104, 159, 1) 50%,
    rgba(91, 124, 149, 1) 100%
  );
  color: white;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

button > img {
  height: 50%;
  width: 50%;
  image-rendering: pixelated;
}

button:hover {
  background: rgb(91, 124, 149);
}

button:active {
  background: rgb(63, 104, 159);
}

#dotcontainer {
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-left: 50px;
  margin-right: 50px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  border-radius: 50%;
  display: inline-block;
  aspect-ratio: 1/1;
}

.dot-inactive {
  background: linear-gradient(
    180deg,
    rgba(124, 133, 124, 1) 10%,
    rgba(89, 105, 89, 1) 80%
  );
}

.dot-active {
  background-color: black;
}

/*      BUDDY       */
.corner-buddy {
  position: fixed;
  left: 0;
  bottom: 0;
}

@media screen and (max-width: 1360px) {
  .corner-buddy {
    display: none;
  }
}
