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

@font-face {
  font-family: comicsansms;
  src: url(/fonts/comic.ttf);
}

:root {
  --xxxl: 2.4rem;
  --xxxlss: 2rem;
  --xxl: 1.9rem;
  --xxlss: 1.6rem;
  --xl: 1.5rem;
  --xlss: 1.4rem;
  --l: 1.3rem;
  --lss: 1.2rem;
  --m: 1.1rem;
  --mss: 1rem;
  --s: 0.8rem;
  --sss: 0.7rem;

  --primary-color: #cecece;
  --oprimary-color: #000000;
  --secondary-color: #ffffff;
  --osecondary-color: #333333;
  --tprimary-color: #ffffff22;
  --tsecondary-color: #000000cc;
  --highlight-color: #ffffff;
  --ohighlight-color: #333333;
  --t-color: rgba(0, 0, 0, 0);
}

.lighttheme {
  --primary-color: #333333;
  --oprimary-color: #ffffff;
  --secondary-color: #000000;
  --osecondary-color: #cecece;
  --tprimary-color: #00000066;
  --tsecondary-color: #ffffff3c;
  --highlight-color: #000000;
  --ohighlight-color: #ffcece;
  --t-color: rgba(255, 255, 255, 0);
}

.colortheme {
  background: var(--oprimary-color);
  box-shadow: 0px 0px 5px 7px var(--tprimary-color);
  border-radius: 100px;
  border: none solid;
  display: block;
  z-index: 100002;
  text-align: right;
  position: fixed;
  width: auto;
  padding-left: 5px;
  padding-right: 5px;
  left: -46px;
  bottom: 2px;
  transition: 5s;
}
.colortheme:hover {
  transition: 0.6s;
  box-shadow: 0px 0px 5px 4px var(--primary-color);
  left: 0;
}

.topcss {
  position: fixed;
  right: -100px;
  bottom: 8px;
  font-size: var(--xxl);
  color: var(--primary-color);
  background: var(--osecondary-color);
  text-align: center;
  height: 50px;
  width: 50px;
  transition: 1.2s;
  opacity: 0.4;
  border-radius: 100%;
  box-shadow: 0px 5px 10px var(--tprimary-color);
  z-index: 1000;
}
.topcss:hover {
  opacity: 1;
}
.topcss.active {
  display: block;
  right: 20px;
}

h2,
h3,
h5 {
  color: var(--highlight-color);
}

p,
h1,
h4,
h6 {
  color: var(--primary-color);
}

a {
  color: var(--secondary-color);
}
a:hover {
  color: var(--highlight-color);
}

li {
  color: var(--primary-color);
}

.text-xxxl,
h1 {
  font-size: var(--xxxl);
  font-weight: 900;
  margin: 40px 0 20px;
}
.text-xxl,
h2 {
  font-size: var(--xxl);
  font-weight: 600;
  margin: 30px 0 15px;
}
.text-xl,
h3 {
  font-size: var(--xl);
  margin: 20px 0 10px;
}
.text-l,
h4 {
  font-size: var(--l);
  margin: 10px 0 5px;
}
.text-m,
h5,
h6 {
  font-size: var(--m);
  margin: 5px 0 5px;
}

a,
button,
p,
li,
input {
  font-size: var(--m);
}

.text-s {
  font-size: var(--s);
  margin: 0;
}

.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.hide {
  display: none;
}

div[popover]:not(.container-pop)::backdrop {
  height: 100%;
  width: 100%;
  background: var(--tsecondary-color);
}

body {
  background: var(--oprimary-color);
  font-family: comicsansms;
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

body:has([popover]:popover-open) {
  overflow: hidden;
}

html {
  cursor: url(/images/cursor.png), url(/images/cursorsmall.png), not-allowed;
  scroll-behavior: smooth;
}

a {
  cursor: url(/images/cursorsmall.png), pointer;
  text-decoration: none;
}

button,
img {
  cursor: url(/images/cursorsmall.png), pointer;
}

header {
  position: fixed;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  top: 0;
  left: 0;
  z-index: 999;
  background: var(--tsecondary-color);
  border-radius: 0 0 10px 10px;
  box-shadow: 0px 2px 10px var(--tprimary-color);
  white-space: nowrap;
  transition: 0.4s;
  padding: 2px;
}

header img {
  width: 96px;
  height: 95px;
}
header img.paw {
  width: 48px;
  height: 35px;
  margin: 30px 32px;
  transform: rotate(0deg);
  z-index: 100002;
  transition: 1.5s;
}
header img.paw:hover {
  transform: rotate(-180deg);
  transition: 2.5s;
}

header nav {
  margin: auto;
}

header nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
}

header nav ul li {
  list-style: none;
  white-space: nowrap;
  margin: 0 auto;
  position: relative;
  width: 125px;
  height: 40px;
  cursor: url(/images/cursorsmall.png), pointer;
}

header nav ul li button {
  text-align: center;
  color: var(--secondary-color);
  font-size: var(--m);
  font-weight: 600;
  border: none;
  background: transparent;
  white-space: nowrap;
  padding: 0 10px;
  width: 100%;
  height: 100%;
  transition: 2s;
}
header nav ul li button:hover {
  color: var(--highlight-color);
}

header nav ul li button:hover li {
  position: relative;
}

header nav ul li::after {
  content: "";
  background: var(--highlight-color);
  bottom: 35%;
  left: 35%;
  width: 25%;
  height: 25%;
  position: absolute;
  transition: all 0.6s;
  opacity: 0;
}
header nav ul li:hover::after {
  background: var(--tprimary-color);
  width: 100%;
  height: 100%;
  border-radius: 25px;
  bottom: 0;
  left: 0;
  opacity: 1;
}

header button {
  margin: auto 0;
}

header .hamburgerbutton {
  display: none;
  background: transparent;
  margin: auto 0;
}

header .hamburgerbutton .hamburgerline1,
header .hamburgerbutton .hamburgerline2,
header .hamburgerbutton .hamburgerline3 {
  width: 30px;
  height: 4px;
  margin: 6px 0;
  background: var(--highlight-color);
  transition: 0.6s;
}

@media (max-width: 1080px) {
  header {
    z-index: 100001;
    color: var(--secondary-color);
  }

  header img.paw {
    transform: rotate(16deg);
    transition: 0s;
  }
  header img.paw:hover {
    transform: rotate(8deg);
    transition: 0s;
  }

  header.mobilemenuheader {
    flex-direction: column;
    height: 100%;
  }

  body:has(header.mobilemenuheader) {
    overflow: hidden;
  }

  header.mobilemenuheader img {
    margin: auto;
  }

  header .hamburgerbutton {
    display: block;
  }

  header nav ul.mobilemenu {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  header nav ul {
    display: none;
  }
  header nav ul li {
    width: 100%;
  }
  header nav ul li button {
    font-size: var(--xl);
  }
  header nav ul li::after {
    height: 5px;
  }
  header nav ul li button {
    margin: auto;
  }

  header .hamburgerbutton {
    margin: auto 0;
    position: absolute;
    top: 32px;
    right: 40px;
  }
  .hamburgerbutton .hamburgerline1.close {
    transform: rotate(-45deg) translateX(-5px) translateY(12px);
  }
  .hamburgerbutton .hamburgerline2.close {
    transform: scale(0);
  }
  .hamburgerbutton .hamburgerline3.close {
    transform: rotate(45deg) translateX(-1px) translateY(-10px);
  }
}

@media (max-width: 1080px) and (orientation: landscape) {
  header nav ul.mobilemenu {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 20px;
  }
}

.cat {
  width: 80vw;
  height: auto;
  position: fixed;
  bottom: -90vw;
  left: 15vw;
  transform: rotate(6deg);
  z-index: 100002;
  transition: 2s;
}
.cat:hover {
  bottom: -40vw;
  transition: 1s;
}

.news {
  margin: 25% auto;
}

.primary-color {
  color: var(--primary-color);
}

.oprimary-color {
  color: var(--oprimary-color);
}

.secondary-color {
  color: var(--secondary-color);
}

.osecondary-color {
  color: var(--osecondary-color);
}

.highlight-color {
  color: var(--highlight-color);
}

.ohighlight {
  color: var(--ohighlight-color);
}
