@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

html {
    background-color: rgb(0, 17, 126);
    background: linear-gradient(45deg, rgb(30, 52, 194) 10%, rgb(52, 159, 255) 90%);
}

p {
    color: white;
    font-family: Comic Sans MS, Comic Sans, Arial;
    font-size: 20px;
    text-shadow: 2px 2px 2px black;
}

h2 {
    font-family: Luckiest Guy;
    font-size: 60px;
    text-shadow: 5px 5px 5px black;

}

h3 {
    font-family: Comic Sans MS, Comic Sans, Arial;
    font-size: 25px;
    text-shadow: 2px 2px 2px black;
}

h2, h3 {
    transition-duration: 0.2s;
    width: fit-content;
    color: white;
    text-align: center;
    margin: 0 auto 0 auto;
    cursor: default;
}

h2:hover, h3:hover {
    color: yellow;
    transform: scale(1.04);
}

button {
    font-family: Comic Sans MS, Comic Sans, Arial;
    font-size: 25px;
    width: 300px;
    height: 50px;
    margin: 0 auto 0 auto;
    border: 2px solid black;
    border-radius: 7px;
    cursor: pointer;
    background: rgb(255, 100, 200);
    background: linear-gradient(50deg, rgba(255, 30, 230) 10%,  rgba(255, 100, 200) 90%);
    transition-duration: 0.2s;
}

button:hover {
    color: cyan;
    border-color: cyan;
    transform: scale(1.1);
}

button:focus {
    outline: none;
}

.redButton {
    background: rgb(255, 100, 100);
    background: linear-gradient(50deg, rgb(255, 30, 30) 10%,  rgb(255, 100, 100) 90%);
}

.cyanButton {
    background: rgb(100, 255, 255);
    background: linear-gradient(50deg, rgb(30, 255, 255) 10%,  rgb(100, 255, 255) 90%);
}

.redButton:hover {
    color: yellow;
    border-color: yellow;
}

.cyanbutton:hover {
    color: blue;
    border-color: blue;
}

hr {
    width: 60%;
    height: 2px;
    border: none;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

canvas, video {
    text-align: center;
    margin: auto;
    width: 854px;
    height: 480px;
    border: 3px solid black;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

canvas:focus, video:focus {
    outline: none;
}

.green {
    color: lime
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 27px;
    vertical-align: middle;
}

.switch input {
    display: none
}
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255, 220, 220);
    transition-duration: 0.2s;
    border-radius: 100px;
    border: 2px solid black;
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.3);
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    left: 2px;
    bottom: 1px;
    background-color: rgb(150, 100, 100);
    transition-duration: 0.2s;
    border-radius: 100px;
}
  
input:checked + .slider {
    background-color: lime;
    transform: translateX(-16px);
}
  
input:focus + .slider {
    box-shadow: 0 0 1px lime;
}
  
input:checked + .slider:before {
    background-color: rgb(180, 0, 0);
    transform: translateX(16px);
}

.switch input:disabled + .slider {
    cursor: not-allowed;
    filter: grayscale();
}
  
.switch input:disabled + .slider:before {
    filter: opacity(0.5);
    pointer-events: none;
}