:root {
  font-family: 'WDXL Lubrifont SC', sans-serif;
  color: white;
  color-scheme: light dark;
  --steel-blue: #4682b4;
  --prussian-blue: #003153;
  --alice-blue: #f0f8ff;
  --yinmn-blue: #2e5090;
  --oxford-blue: #002147;
  --dallas-blue: #041e42;
  --section-backround: light-dark(var(--alice-blue), var(--dallas-blue));
  --body-background: light-dark(var(--steel-blue), var(--prussian-blue));
}

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

html {
  font-size: 1rem;
  background-color: var(--body-background);
}

h1 {
  font-size: 4rem;
  margin-left: auto;
  margin-right: auto;
  color: transparent;
  text-align: center;
  letter-spacing: 0.05em;
  background-image: linear-gradient(to bottom, #fff, #aaa);
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 5px;
}

.test-div {
  max-width: 400px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: 200px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
  background-color: var(--section-backround);
}
.twitch-live-h2 {
  margin-top: 20px;
}

.live-stream {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 10px; 
  text-decoration: none;
  color: #ddd;
  position: relative;
  max-width: 500px;
  width: 97%;
  height: fit-content;
  background-color: #121212;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: solid 1px #aaa;
  transition: all 0.2s ease;
}

.stream-announcement {
  margin-top: 0px;
  display: block;
  font-size: 2rem;
}

.stream-title {
  display: block;
  margin-top: 30px;
}

@keyframes opacity-animation {
	0% {
		opacity: 0
	}
}

@keyframes pulse-animation {
	0% {
		transform: translate(-50%, -50%) scale(0);
		opacity: .8
	}
	70% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(2.2)
	}
	to {
		transform: translate(-50%, -50%) scale(0);
		opacity: 0
	}
}

.twitch-live-pulse-wrap {
  position: absolute;
  top: 10px;
  right: 5px;
}

.pulse:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #ff6461;
    border-radius: 100%;
    opacity: .5;
    transform: translate(-50%,-50%) scale(2.2);
    animation: pulse-animation 3s infinite;
}

.pulse {
    position: relative;
    display: inline-block;
    vertical-align: 1px;
    width: 15px;
    height: 15px;
    margin: 0 6px;
    background: #eb0400;
    color: transparent;
    border-radius: 100%;
    flex: 0 0 auto;
    animation: opacity-animation 1s linear;
  &.red {
    background: #eb0400;
  }
}

.twitch-live-game {
  font-size: 0.9rem;
  color: #ddddddaa;
  display: block;
  margin-top: 20px;
}

.twitch-live-game-img {
  height: 15px;
  vertical-align: auto;
  transform: translateY(2px);
  margin-right: 5px;
}

.twitch-live-game-link {
  color: #ddddddaa;
  transition: all 0.2s ease;
}

.twitch-live-game-link:hover {
  color: #ffffff;
}

.twitch-live-viewers {
  font-size: 0.9rem;
  color: #ddddddaa;
  display: block;
}

.twitch-live-viewer-img {
  height: 15px;
  vertical-align: auto;
  transform: translateY(2px);
  margin-right: 5px;
}

.twitch-live-duration {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

.bold {
  font-weight: bold;
}

.uppercase {
  text-transform: uppercase;
}

.twitch-live-cta {
  display: block;
  margin-top: 20px;
  text-decoration: none;
  color: #ffffff;
  background-color: #9146ff;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease;
}

@media (hover: hover) { 
  .twitch-live-cta:hover {
    background-color: #7a3ed1;
  }
}

.twitch-live-cta-arrow {
  margin-left: 10px;
}

.twitch-live-thumbnail {
  border-radius: 3px;
  transform: translateY(18px);
  margin-top: -18px;
  margin-left: 10px;
}

.twitch-live-logo {
  position: absolute;
  bottom: 68px;
  right: 10px;
  height: 20px;
}