.page {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  padding: 0 2vw;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  max-inline-size: 1240px;
  inline-size: 100vw;
}

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 1vw 0;
  inline-size: 90vw;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: auto;
  padding: 50px 100px;
  height: 25vh;
}

.header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10%;
  width: 30%;
}

.link {
  position: relative;
  text-decoration: none;
}

.link:focus::before {
  bottom: 0;
  height: 100%;
}

.link:focus {
  box-shadow: none;
  outline: none;
}

.link::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 5px;
  transition: all 0.2s ease-in-out;
}

.link:hover::before {
  bottom: 0;
  height: 100%;
}

.header__logo {
  width: 80%;
  transition: opacity 0.3s ease;
}

.header__navigation {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 73%;
}

.header__list-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: "\1F63C";
  padding-left: 16px;
}

.header__link {
  padding-block-start: 2px;
  text-decoration: none;
  font-size: 20px;
}

.header__link:hover {
  opacity: 0.8;
}

.header__themetoggler {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 20%;
  position: relative;
  justify-content: space-around;
}

.header__kitty {
  position: absolute;
  height: 230px;
  width: 165px;
  object-fit: contain;
  top: 15%;
  left: 10px;
  background-image: url("../images/kitty.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  align-self: flex-end;
  z-index: 2;
  transition: background-image 0.2s ease, left 0.3s linear both;
  background-color: transparent;
  border: none;
}

.header__kitty:focus {
  box-shadow: none;
  outline: none;
  border: none;
}

.header__kitty:hover {
  background-image: url("../images/kittypaw.png");
  left: 7px;
  transition: background-image 0.2s ease, left 0.3s linear both;
}

.header__toy {
  height: 200px;
}

.header__line {
  position: absolute;
  top: -165%;
  justify-self: center;
  width: 2px;
  height: 100px;
}

.header__sphere {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.randomiser {
  display: flex;
  justify-content: center;
}

.randomiser::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 0;
  width: 30%;
}

.randomiser__block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto;
}

.randomiser__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 20px auto 40px;
  padding: 0 7px;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 25px;
  text-align: center;
  white-space: pre-wrap;
  block-size: 35vh;
  max-inline-size: 40vw;
  max-block-size: 250px;
}

.randomiser__button {
  position: relative;
  width: 300px;
  height: 100px;
  margin: auto 0 auto 5px;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  overflow: hidden;
  overflow-wrap: break-word;
  color: inherit;
  line-height: 100px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
  cursor: pointer;
}

.randomiser__button:focus {
  outline: none;
}

.randomiser__button::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 72%;
  width: 2px;
  height: 70%;
  opacity: 1;
  transition-delay: 0.15s;
  transition: left 0.15s ease, opacity 0.15s ease;
}

.randomiser__button.hide-after::after {
  left: -72%;
  opacity: 0;
}

.randomiser__button:hover::after {
  left: -72%;
  opacity: 0;
}

.randomiser__sign {
  position: relative;
  display: inline-block;
  overflow: hidden;
  overflow-wrap: break-word;
  width: 69%;
  height: 70%;
  margin: 6% 2%;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 0.15s cubic-bezier(0.31, -0.105, 0.43, 1.4);
  transition-delay: 0.15s;
  opacity: 1;
}

.randomiser__icon {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  height: 100%;
  text-align: center;
  width: 28%;
  transition: width 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.randomiser__update {
  height: 36px;
  margin: auto;
  vertical-align: middle;
  transition: transform 0.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.randomiser__button:hover .randomiser__icon .randomiser__update {
  transform: scale(1.5) translateY(-3px);
}

.randomiser__button:hover .randomiser__sign {
  left: -72%;
  opacity: 0;
}

.randomiser__button:hover .randomiser__icon {
  width: 100%;
}

.randomiser__icon.rotate {
  transform: rotate(360deg);
  transition: transform 1.25s cubic-bezier(0.31, -0.105, 0.43, 1.4);
}

.randomiser__icon.hover .randomiser__update {
  transform: scale(1.5) translateY(-3px);
}

.randomiser__icon.hover {
  width: 100%;
}
