@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

body {
    background-color: #06060a;
    margin: 0;
    overflow-x: hidden;
}

main {
    margin: 35px;
}
section {
    margin-bottom: 20px;
    overflow: hidden;
    text-align: center;
}

/* div elements */
div {
    display: inline-block;
    width: 24.5%;
    height: 15em;
    animation: fadeIn ease-in-out 1.25s forwards;
    opacity: 0;
}
div::before {
    content: "";
    height: 100%;
    width: 10px;

    display: block;
    position: relative;
    float: right;
    top: 0px;
    right: 15px;

    background-image: linear-gradient(90deg, rgba(0,0,0,1) 34.99%,rgba(0,0,0,0) 35%, rgba(0,0,0,0) 75%,rgba(255,255,255,1) 75.1% );
}
div h2, p {
    font-family: 'Oswald', sans-serif;
    float: left;
}
div h2 {
    font-size: 5em;
    margin: 0px 0px -20px 10px;
    font-weight: lighter;
}
div p {
    margin: 0px 0px 0px 5%;
    font-size: 3em;
    font-weight: 100;
}
div h2::after, div p::after {
    font-size: 40%;
}
div h2::after {
    content: " HEX";
    font-weight: normal;
}
div p::after {
    content: "  RGB";
}
div small {
    font-size: 40%;
    font-weight: normal;
}
a {
    text-decoration: none;
}


/* header*/
h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    font-size: 4em;
    text-align: center;

    color: white;
    background-color: #06060a;

    width: 100%;
    margin-bottom: 0px;
    margin-top: 0px;
}
hr {
    background-image: linear-gradient(90deg,red,orange,yellow,green,cyan,blue,#8c00ff,#FF00B0,red);

    height: 2.5px;
    width: 100%;
    color: rgba(0,0,0,0);
}
/* footer */
footer p {
    text-align: center;
    color: white;
    width: 100%;
    font-weight: 100;
    font-size: 1.5em;
    margin-top: 5px;

    margin-bottom: 0px;
}

/* color */
.red {
    /* #FF0000*/
    background-color: #FF0000;
    color: rgb(0, 0, 0);

    animation-delay: 0s;
}
.orange {
    /* #FF9600*/
    background-color: #FF9600;
    color: rgb(0, 0, 0);

    animation-delay: 0.15s;
}
.yellow {
    /* #FFFF00*/
    background-color: #FFFF00;
    color: rgb(0, 0, 0);

    animation-delay: 0.25s;
}
.green {
    /* #FF9200*/
    background-color: #00FF00;
    color: rgb(0, 0, 0);

    animation-delay: 0.35s;
}
.blue {
    /* #0000FF*/
    background-color: #0000FF;
    color: rgb(255, 255, 255);

    animation-delay: 0.45s;
}
.purple {
    /* #9600FF*/
    background-color: #9600FF;
    color: rgb(0, 0, 0);

    animation-delay: 0.55s;
}
.pink {
    /* #0000FF*/
    background-color: #FF00FF;
    color: rgb(0, 0, 0);    

    animation-delay: 0.65s;
}
.black {
    /* #000000*/
    background-color: #000000;
    color: rgb(255, 255, 255);    

    animation-delay: 1.75s;
}
.brown {
    /* #231709*/
    background-color: #231709;
    color: rgb(255, 255, 255);    

    animation-delay: 1.85s;
}
.grey {
    /* #969696*/
    background-color: #969696;
    color: rgb(0, 0, 0);    

    animation-delay: 1.95s;
}
.white {
    /* #FFFFFF*/
    background-color: #FFFFFF;
    color: rgb(0, 0, 0);    

    animation-delay: 2.05s;
}
/* animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        margin-right: 5px;
    }
    100% {
        opacity: 1;
        margin-right: 0px;
    }
}

@media screen and (max-width: 1550px) {
    div {
        width: 100%;
    }
    
    h1 {
        font-size: 3.25em;
    }
}

