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

* {
    margin: 0;
}

html,
body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: #1ba11a url(./images/tile.png) top left repeat;
    font-family: Comic Sans, Comic Sans MS, cursive;
    padding: 3rem;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
    margin: auto;
    font-size: 1.1rem;
}

header {
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border 0.3s ease-in-out;
}

.header-bouncing-active {
    border: 3px solid yellow;
}

h1 {
    font-family: times, helvetic, sans-serif;
    color: white;
    font-size: 5rem;
}

h3 {
    color: yellow;
    font-size: 1.5rem;
}

#header_img_top {
    display: block;
    margin: auto;
    width: 50%;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

#header_img_top:hover {
    transform: scale(1.1) rotate(-3deg);
    filter: brightness(1.1) contrast(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.flex_img_container {
    padding: 5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#flex_img_2 {
    height: 40%;
}

.flex_img_container img {
    width: 45%;
}

#header_img_bottom {
    display: block;
    margin: auto;
    width: 50%;
}

.text_section {
    padding: 1rem;
}

#text_img_container {
    justify-content: space-between;
}

.yellow {
    color: yellow;
}

.dark_yellow {
    color: rgb(219, 219, 0);
}

.white {
    color: white;
}

.bold {
    font-weight: bold;
}

.middle {
    text-align: center;
}

p {
    padding: .5rem;
}

#last_text_section {
    font-size: 1.6rem;
}

#ribbons {
    background: url(./images/bow_left.png) no-repeat 500px;
    margin: auto;
}

#ribbons p {
    background: url(./images/bow_right.png) no-repeat;

}

#visitors_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: black;
    text-align: center;
}

#visitors_container>* {
    padding: .2rem;
}

#visitors_container:nth-child(1) {
    font-size: 4rem;
}

#visitors_counter {
    align-self: center;
    width: 5rem;
    padding-bottom: 3rem;
}

.flex_container {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

ul a {
    padding: 20px;
    color: white;
    font-size: .8rem;
}

li {
    list-style: none;
}

#copyright {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 15px #e0e0e0, 0 0 5px #ffffff;
    }

    50% {
        box-shadow: 0 0 20px #cccccc, 0 0 10px #f0f0f0, 0 0 3px #ffffff;
    }
}

@keyframes text-rainbow-cycle {
    0%,
    100% {
        color: #333333;
    }
    14% {
        color: #666666;
    }
    28% {
        color: #999999;
    }
    42% {
        color: #cccccc;
    }
    57% {
        color: #999999;
    }
    71% {
        color: #666666;
    }
    85% {
        color: #444444;
    }
}

@keyframes button-shiver {

    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }

    25% {
        transform: translate(1px, 1px) rotate(0.5deg);
    }

    50% {
        transform: translate(-1px, -1px) rotate(-0.5deg);
    }

    75% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkle-mania {

    0%,
    100% {
        box-shadow: 0 0 5px #f0f0f0, 0 0 10px #cccccc, 0 0 15px #999999, 5px 5px 2px #777777, -5px -5px 2px #aaaaaa;
    }

    25% {
        box-shadow: 0 0 8px #dddddd, 0 0 12px #bbbbbb, 0 0 18px #888888, 8px -3px 3px #cccccc, -3px 8px 3px #999999;
    }

    50% {
        box-shadow: 0 0 6px #eeeeee, 0 0 14px #aaaaaa, 0 0 20px #777777, -5px 5px 4px #bbbbbb, 5px -5px 4px #dddddd;
    }

    75% {
        box-shadow: 0 0 10px #cccccc, 0 0 8px #dddddd, 0 0 16px #888888, 3px 8px 2px #aaaaaa, -8px -3px 2px #bbbbbb;
    }
}

.fancy-button {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-image: linear-gradient(to right, #eeeeee 0%, #bbbbbb 51%, #eeeeee 100%);
    margin: 10px 0;
    padding: 15px 30px;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    background-size: 200% auto;
    border-radius: 10px;
    display: block;
    border: none;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    align-self: flex-end;
    animation: subtle-pulse 3s infinite ease-in-out, text-rainbow-cycle 4s infinite linear;
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 14px;
    background: conic-gradient(from 0deg, #333333, #666666, #999999, #cccccc, #f0f0f0, #cccccc, #999999, #666666, #333333);
    animation: spin 2s infinite linear;
    z-index: -1;
}

.fancy-button::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 18px;
    animation: sparkle-mania 1.5s infinite alternate ease-in-out;
    z-index: -2;
    opacity: 0.6;
}

@keyframes smooth-rgb-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.fancy-button:hover {
    background-image: linear-gradient(to right,
            #333333, #555555, #777777, #999999, #bbbbbb, #dddddd, #ffffff,
            #dddddd, #bbbbbb, #999999, #777777, #555555, #333333,
            #333333
        );
    background-size: 400% auto;
    text-decoration: none;
    animation:
        smooth-rgb-flow 3s infinite linear,
        subtle-pulse 1.5s infinite ease-in-out,
        text-rainbow-cycle 4s infinite linear,
        button-shiver 0.3s infinite linear;
    transform: scale(1.12);
    box-shadow: 0 0 25px #ffffff, 0 0 35px #e0e0e0, 0 0 45px #cccccc;
}

.fancy-button:active {
    transform: scale(1.08);
    box-shadow: 0 0 15px #ffffff, 0 0 25px #dddddd, 0 0 30px #bbbbbb;
    transition: all 1.00s ease-in-out;
}

.parody {
    color: white;
    text-align: center;
    font-size: 0.8rem;
    padding-top: 10px;
}

.parody a {
    color: yellow;
}

#header_img_bottom,
.flex_img_container img[src="images/walter_2.png"],
#flex_img_2,
.flex_img_container img[src="images/walter_4.png"] {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    will-change: transform, box-shadow;
    transform: scale(1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

header:hover #header_img_bottom,
header:hover .flex_img_container img[src="images/walter_2.png"],
header:hover #flex_img_2,
header:hover .flex_img_container img[src="images/walter_4.png"] {
    transform: scale(0.85);
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header:hover #header_img_bottom:hover,
header:hover .flex_img_container img[src="images/walter_2.png"]:hover,
header:hover #flex_img_2:hover,
header:hover .flex_img_container img[src="images/walter_4.png"]:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    z-index: 10;
}

header:hover #flex_img_2:hover {
    transform: scale(1.15);
}

#fib-spiral-canvas {
    display: block; 
    margin: 20px auto; 
    border: 1px solid #444444; 
    background-color: #1a1a1a; 
}

.simple-button {
    background-color: #555555; 
    color: white;
    border: 1px solid #777777;
    padding: 10px 15px;
    margin: 10px auto; 
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Arial', sans-serif; 
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.simple-button:hover {
    background-color: #777777; 
    transform: translateY(-1px);
}

.simple-button:active {
    background-color: #444444;
    transform: translateY(0px);
}

.impostor {
    position: relative;
}

.impostor .body {
    position: relative;
    width: 300px;
    height: 420px;
    overflow: hidden;
    border-radius: 35% 45% 0 0;
    border: 30px solid #000;
}

.impostor .body .fill {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #7B0236;
}

.impostor .body .shadow {
    position: absolute;
    width: 100%;
    height: 90%;
    background: #C70A01;
    border-radius: 0% 10% 25% 48% / 20% 0% 100% 100%;
}

.impostor .glass-bowl {
    position: absolute;
    width: 220px;
    height: 130px;
    background: #4A646D;
    top: 90px;
    right: -20px;
    border: 30px solid black;
    border-radius: 25% 45% 40% 40% / 50%;
    transform: rotate(-4deg);
    overflow: hidden;
}

.impostor .glass-bowl .shadow-blue {
    position: absolute;
    right: 0;
    width: 90%;
    height: 70px;
    background: #94C9DB;
    border-radius: 10% 10% 100% 100% / 100% 100% 50% 100%;
}

.impostor .glass-bowl .shadow-white {
    position: absolute;
    top: 10px;
    right: 40px;
    width: 100px;
    height: 40px;
    background: white;
    border-radius: 30% 70% 30% 30% / 30% 70% 30% 60%;
}

.impostor .legs {
    display: flex;
    justify-content: space-between;
    transform: translatey(-30px);
}

.impostor .legs .leg-left {
    width: 110px;
    height: 130px;
    background: #7B0236;
    border-left: 30px solid #000; 
    border-bottom: 30px solid #000;
    border-right: 30px solid #000;
    border-radius: 0 0 40% 40%;
}

.impostor .legs .leg-right {
    position: relative;
    width: 90px;
    height: 105px;
    background: #7B0236;
    border-left: 30px solid #000; 
    border-bottom: 30px solid #000;
    border-right: 30px solid #000;
    border-radius: 0 0 40% 40%;
}

.impostor .legs .leg-right:before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 100px;
    height: 30px;
    background: black;
    border-radius: 0 0 100% 0;
}

.impostor .backpack {
    position: absolute;
    height: 280px;
    width: 110px;
    background: red;
    border: 30px solid #000;
    border-radius: 40% 0 0 40% / 15%;
    left: -75px;
    top: 130px;
    overflow: hidden;
}

.impostor .backpack .shadow {
    position: absolute;
    width: 100%;
    height: 85%;
    background: #7B0236;
    bottom: 0;
    border-radius: 40% 0 0 0 / 10% 0 0 0;
}

.impostor .floor-shadow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translatex(-50%);
    width: 450px;
    height: 80px;
    background: #525858;
    border-radius: 50%;
}

#bottom_img_section a {
    cursor: default;
}

#click_here_img {
    margin: auto;
    width: 35%;
    padding: 20px;
    cursor: pointer;
}

.bouncing-walter {
    position: absolute !important;
    z-index: 100;
    margin: 0 !important;
}

.tennis-ball {
  position: absolute; 
  overflow: hidden;
  height: 354px; 
  width: 354px;  
  top: 0; 
  left: 0; 
  border-radius: 50%;
  background-color: #cccc00; 
  background: radial-gradient(ellipse at center, #cccc00 0%, #adad00 100%); 
  box-sizing: border-box;
  transform: rotate(30deg); 
  box-shadow: 20px 40px 50px rgba(0, 0, 0, 0.3); 
  z-index: 101; 
}

.tennis-ball::before,
.tennis-ball::after {
  content: '';
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  border: solid 30px #fff; 
  border-radius: 50%;
  box-sizing: border-box;
}

.tennis-ball::before {
  right: 70%;
}

.tennis-ball::after {
  left: 70%;
}