@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

h1{
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color:rgb(179, 248, 248);
}

h2 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color:rgb(179, 248, 248);
}

p {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color:white
}

a {
    background-color: #0d0d0d;
}

*{
    background-color: #0d0d0d;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
}

#dynwaresLink {
    text-align: center;
    display:block;
    color:rgb(179, 248, 248);
}

#githubLink {
    text-align: center;
    display: block;
}

#overlay {
        display: inline-block;
        bottom: 0;
        left:0;
        outline: none;
        cursor: pointer;
        position: absolute;
        margin: 10px;
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
        border-radius: 8px;
        padding: 14px 24px;
        border: none;
        transition: box-shadow 0.2s ease 0s, -ms-transform 0.1s ease 0s, -webkit-transform 0.1s ease 0s, transform 0.1s ease 0s;
        background: linear-gradient(to right, rgb(230, 30, 77) 0%, rgb(227, 28, 95) 50%, rgb(215, 4, 102) 100%);
        color: #fff;
}

#overlay:hover {
    animation: colorChange 5s infinite;
}

#iframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#container {
    position: relative;
}

.rainbowButton {
    display: inline-block;
    bottom: 0;
    left:0;
    outline: none;
    cursor: pointer;
    position: absolute;
    margin: 10px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    border-radius: 8px;
    padding: 14px 24px;
    border: none;
    transition: box-shadow 0.2s ease 0s, -ms-transform 0.1s ease 0s, -webkit-transform 0.1s ease 0s, transform 0.1s ease 0s;
    background: linear-gradient(to right, rgb(230, 30, 77) 0%, rgb(227, 28, 95) 50%, rgb(215, 4, 102) 100%);
    color: #fff;
}

.rainbowButton:hover {
        animation: colorChange 5s infinite;
}

@keyframes colorChange {
    0% { background: rgb(236, 10, 63); }
    25% { background: rgb(93, 10, 202); }
    50% { background: rgb(8, 188, 201); }
    75% { background: rgb(113, 204, 8); }
    75% { background: rgb(211, 181, 9); }
    100% { background: rgb(236, 10, 63); }
}

.box{
    border-radius: 61px;
    background: #0d0d0d;
    box-shadow:  41px 41px 43px #0d0d0d,
                -41px -41px 43px #0d0d0d;
}

.box p{
    color: #fff;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

#glow-on-hover-classic {
    align-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    padding-top: 2px;
    width: 400px;
    height: 250px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    backdrop-filter: 60px;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    }

/* The gradient colors of the card's "rainbow effect" are directly from the video's thumbnail */
#glow-on-hover-classic:before {
    content: '';
    background: linear-gradient(45deg, #371013, #100E1B, #590E15, #924537, #0F614A, #7B3228, #C9C09E, #371013);
    position:absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    -webkit-animation: glowing 20s linear infinite;
}


#glow-on-hover-classic:active:after {
    background: url("https://i.ytimg.com/vi/jfKfPfyJRdk/hq720.jpg");
    filter: blur(2px);
    background-size:cover;
    opacity: 1;
}

#glow-on-hover-classic:hover:before {
    opacity: 1;
}

#glow-on-hover-classic:after {
    background: url("https://i.ytimg.com/vi/jfKfPfyJRdk/hq720.jpg");
    filter: blur(2px);
    background-size:cover;
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}


#glow-on-hover-synthwave {
    align-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    padding-top: 2px;
    width: 400px;
    height: 250px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    backdrop-filter: 60px;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    }

#glow-on-hover-synthwave:before {
    content: '';
    background: linear-gradient(45deg, #160C4C, #2E2750, #382369, #8C32AD, #6D447F, #1C2051, #8C32AD, #160C4C);
    position:absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    -webkit-animation: glowing 20s linear infinite;
}


#glow-on-hover-synthwave:active:after{
    background: url("https://i.ytimg.com/vi/4xDzrJKXOOY/hq720.jpg");
    filter: blur(2px);
    background-size:cover;
    opacity: 1;
}

#glow-on-hover-synthwave:hover:before {
    opacity: 1;
}

#glow-on-hover-synthwave:after{
    background: url("https://i.ytimg.com/vi/4xDzrJKXOOY/hq720.jpg");
    filter: blur(2px);
    background-size:cover;
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.cardTitle{
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 30px;
    color: #fff;
    background-color: transparent;
    text-align: center;
}

#cards{
    justify-self: center;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10%;

}


@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}