* {

  --layoutBackgroundColor:rgb(44, 44, 44);
  --layoutColor:rgb(255, 166, 0);
  --layoutPadding: 4px 12px;
  --layoutFontFamily: monospace;
  
  --contentBackgroundColor: rgb(138, 255, 239);
  --contentColor: rgb(0, 0, 0);
  --contentPadding: 12px;
  --contentFontFamily: verdana; 

  --exampleBackgroundColor: rgb(82, 45, 0);
  --exampleBorderColor:rgb(255, 166, 0);
  --examplePadding: 24px;
  --exampleWidth: 64px;
  --exampleHeight: 64px;
  --exampleBorder: 2px solid var(--exampleBorderColor);

  --borderRadius1: 0;
  --borderRadius2: 8px;
  --borderRadius3: 25%;
  --borderRadius4: 100%;

  --codeBackgroundColor: rgb(0, 63, 0);
  --codeColor: white;
  --codePadding: 2px 6px;
  --codeFontFamily: monospace;
  --codeBorderRaidius: 4px;
}

.theme1 {
  color:var(--layoutColor);
  background-color: var(--layoutBackgroundColor);
  padding: var(--layoutPadding);
  font-family: var(--layoutFontFamily);
}

.theme2 {
  color: var(--contentColor);
  background-color: var(--contentBackgroundColor);
  Padding: var(--contentPadding);
  font-family: var(--contentFontFamily);
}
html,
body{
  margin: 0;
  padding: 0;
}

body{
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: var(--contentBackgroundColor);
}

header{
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-around;
  cursor: move;
  transition-duration: 500ms;
}

header:hover {
  background-color: transparent;
}

main{
  flex: 1;
  cursor: crosshair;
}

summary{
  padding:  var(--codePadding);
  background-color: var(--exampleBackgroundColor);
  border-radius: var(--codeBorderRaidius);
  transition-duration: 500ms;
}

summary:hover {
  cursor: wait;
  background-color: transparent;
}

.examples {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding-left: 12px;
  border-left: 4px solid var(--contentColor);
}

.example {
display: inline-flex;
gap: var(--examplePadding);
padding: var(--examplePadding);
}

.example * {
  width: var(--exampleHeight);
  height: var(--exampleWidth);
  background-color: var(--exampleBackgroundColor);
  border: var(--exampleBorder);

  font-size: 2rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

.example div:hover {
  cursor: wait;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.ex1 * {
  background-color: aliceblue;
  animation-name: spin;
  border: 30px inset rgb(202, 214, 29);
  border-radius: var(--borderRadius1);

}

.ex2 * {
  background-color:aliceblue;  
  animation-name: zoom;
  border: 30px outset blueviolet;
  border-radius: var(--borderRadius2);
}

.ex3 * {
  animation-name: bounce;
  background-image:aliceblue;
  border: 30px groove palevioletred;
  border-radius: var(--borderRadius3);
  
}
#rugbyball {
  
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-around;
   
}

.ex4 * {
  animation-name: pulse;
  background-color: aliceblue;
  border: 30px ridge rgb(155, 205, 61);
  border-radius: var(--borderRadius4);
}

code {
  color: var(--codeColor);
  background-color: var(--codeBackgroundColor);
  padding: var(--codePadding);
  font-family: var(--codeFontFamily);
  border-radius: var(--codeBorderRadius);
}

footer {
position: sticky;
bottom: 0;
display: flex;
justify-content: space-between;
cursor: move;
transition-duration: 500ms;
}

footer:hover{
  background-color: transparent;
}

@keyframes spin {
  0% {
    transform: rotate(-45deg);
  }

  100% {
    transform: rotate(1000deg);
  }
}

@keyframes zoom {
  0% {
    scale: 150%;
  }

  10% {
    scale: 2%;
  }
}

@keyframes bounce {

  0%,
  30%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-100px)
  }

  60% {
    transform: translateY(-100px);
  }
}

@keyframes pulse {
  0% {
    opacity: 100%;
  }

  50% {
    opacity: 2%;
  }
}