*,
:after,
:before {
  box-sizing: inherit;
}

/**********TAG SELECTORS**********/

html {
  box-sizing: border-box;
  font-size: 100%;
}

:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --heading-color: #000000;
  --icon-color: #024873;
  --avatar-border-color: #000000;
  --avatar-filter: none;
  --footer-text-color: #000000;
}

[data-theme="dark"] {
  --background-color: #1a1a1a;
  --text-color: #ffffff;
  --heading-color: #ffffff;
  --icon-color: #ffffff;
  --avatar-border-color: #ffffff;
  --avatar-filter: brightness(0) invert(1);
  --footer-text-color: #ffffff;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  max-width: 100%;
  min-height: 100vh;
  height: auto;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 120px;
}

h1 {
  color: var(--heading-color);
}

h2 {
  color: var(--heading-color);
}

hr {
  border-style: none;
  border-top-style: dotted;
  border-color: rgb(196, 196, 196);
  border-width: 5px;
  width: 100px;
}

/**********CLASS SELECTORS**********/

.logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  display: block;
  transition: filter 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo:hover {
  transform: none;
}

.link-container {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 550px;
  margin: 0 auto 4px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.icon-box i {
  font-size: 1.4rem;
  color: white;
}

.icon-box_instagram {
  background-color: #E4405F;
}

.icon-box_pinterest {
  background-color: #E60023;
}

.icon-box_youtube {
  background-color: #FF0000;
}

.icon-box_tiktok {
  background-color: #000000;
}

.icon-box_cara {
  background-color: #4B4B4B; /* Darker grey color */
}

.icon-box_bluesky {
  background-color: #0085FF;
}

.icon-box_twitch {
  background-color: #9146FF;
}

.links {
  flex: 1;
  display: block;
  padding: 8px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.link-container:hover .icon-box {
  transform: scale(1.1);
}

.link-container:hover .icon-box_instagram {
  background-color: white;
}

.link-container:hover .icon-box_pinterest {
  background-color: white;
}

.link-container:hover .icon-box_youtube {
  background-color: white;
}

.link-container:hover .icon-box_tiktok {
  background-color: white;
}

.link-container:hover .icon-box_cara {
  background-color: white;
}

.link-container:hover .icon-box_bluesky {
  background-color: white;
}

.link-container:hover .icon-box_twitch {
  background-color: white;
}

.link-container:hover .icon-box i {
  color: var(--icon-color);
}

.link-container:hover .icon-box_instagram i {
  color: #E4405F;
}

.link-container:hover .icon-box_pinterest i {
  color: #E60023;
}

.link-container:hover .icon-box_youtube i {
  color: #FF0000;
}

.link-container:hover .icon-box_tiktok i {
  color: #000000;
}

.link-container:hover .icon-box_cara i {
  color: #4B4B4B;
}

.link-container:hover .icon-box_bluesky i {
  color: #0085FF;
}

.link-container:hover .icon-box_twitch i {
  color: #9146FF;
}

.links .links:hover {
  background-color: #fff;
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.links .links_instagram {
  border-bottom: 3px solid #E4405F;
  box-shadow: inset 0 -4px 0 #E4405F;
  border: 2px solid #E4405F;
  background-color: #E4405F;
  color: white;
}

.links .links_pinterest {
  border-bottom: 3px solid #E60023;
  box-shadow: inset 0 -4px 0 #E60023;
  border: 2px solid #E60023;
  background-color: #E60023;
  color: white;
}

.links .links_youtube {
  border-bottom: 3px solid #FF0000;
  box-shadow: inset 0 -4px 0 #FF0000;
  border: 2px solid #FF0000;
  background-color: #FF0000;
  color: white;
}

.links .links_tiktok {
  border-bottom: 3px solid #000000;
  box-shadow: inset 0 -4px 0 #000000;
  border: 2px solid #000000;
  background-color: #000000;
  color: white;
}

.links .links_cara {
  border-bottom: 3px solid #4B4B4B;
  box-shadow: inset 0 -4px 0 #4B4B4B;
  border: 2px solid #4B4B4B;
  background-color: #4B4B4B;
  color: white;
}

.links .links_bluesky {
  border-bottom: 3px solid #0085FF;
  box-shadow: inset 0 -4px 0 #0085FF;
  border: 2px solid #0085FF;
  background-color: #0085FF;
  color: white;
}

.links .links_twitch {
  border-bottom: 3px solid #9146FF;
  box-shadow: inset 0 -4px 0 #9146FF;
  border: 2px solid #9146FF;
  background-color: #9146FF;
  color: white;
}

.links .links_instagram:hover {
  color: #E4405F;
}

.links .links_pinterest:hover {
  color: #E60023;
}

.links .links_youtube:hover {
  color: #FF0000;
}

.links .links_tiktok:hover {
  color: #000000;
}

.links .links_cara:hover {
  color: #4B4B4B;
}

.links .links_bluesky:hover {
  color: #0085FF;
}

.links .links_twitch:hover {
  color: #9146FF;
}

.channels {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}

.channels .channels_item {
  flex: 5;
  margin-right: 5px;
  transition: transform 0.2s;
  color: var(--icon-color);
}

.channels_item:hover {
  transform: scale(1.25) rotate(1turn);
  transition: transform 1.5s;
}

/**********ID SELECTORS**********/
/*ID Selectors can only be ussed once per page*/
/*

#heading {
  color: blue
}

*/

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--background-color);
  color: var(--icon-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.theme-toggle-left {
  right: auto;
  left: 20px;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
  font-size: 1.2rem;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 35px auto 8px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  border: none;
  transition: none;
}

.avatar:hover {
  transform: none;
}

.avatar-text {
  text-align: center;
  font-size: 1.2rem; /* Increase font size for better visibility */
  font-weight: bold;
  margin: 16px auto 32px;
  color: var(--text-color); /* Dynamic color based on theme */
  text-decoration: none; /* Remove underline */
  font-family: 'Montserrat', sans-serif; /* Use Montserrat font */
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: var(--background-color);
  color: var(--footer-text-color);
  text-align: center;
  font-size: 0.9rem;
  border-top: none;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Dancing Script', cursive;
}

