/* Joshua McBrantie
ITWP-1050 
assignment description:
*/

/* --------------------------------------------------- */
:root {/* setting up vars inside the root */
    
    --primary-color: #c00000;
    --secondary-color: #007af3;
    background: #F2F2F2;
    margin: 0;
}
/* setting up fonts to use within the page */
@font-face {
    font-family: roboto-black;
    src: url(/itwp1050/homework4/fonts/Roboto/Roboto-Black.ttf)format('ttf');
    font-weight: 600;
}
@font-face {
    font-family: roboto-reg;
    src: url(/itwp1050/homework4/fonts/Roboto/Roboto-Regular.ttf)format('ttf');
    font-weight: 400;
}
body {
    display: flex;
    flex-direction: column;
    background-color: rgb(49, 53, 58);
    height: 100vh;
    margin: 0;
    padding: 0;
}
.top-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.left-header{
    font-size: 6em;
    font-weight: bolder;
    font-family: roboto-black, Arial, sans-serif;
    text-decoration: underline;
    letter-spacing: 1rem;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    margin: 0;
    color: white;
    
    opacity: 0;
    animation: 2s linear 2s 1 forwards left-header-movement;
}
.middle-header {
    width: 110px;
    height: 110px;
    position: relative;
    justify-content: center;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: 2.5s ease-in 0.5s 1 forwards icon-movement;
    
    
}
.right-header{
    font-size: 6em;
    font-weight: bolder;
    font-family: roboto-black, Arial, sans-serif;
    text-decoration: underline;
    letter-spacing: 1rem;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    margin: 0;
    color: white;
    
    opacity: 0;
    animation: 2s linear 2s 1 forwards right-header-movement;
    
}
.bottom-header {
    font-size: 2em;
    font-weight: bolder;
    font-family: roboto-black, Arial, sans-serif;
    letter-spacing: normal;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    margin: 0;
    color: white;
    text-align: center;
    opacity: 0;
    
    
    animation: 2s linear 2s 1 forwards bottom-header-movement;
    
}
.content-selection {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}
.card {
    opacity: 0;
    background-color: #542ead;
    width: max-content;
    height: max-content;
    padding: 25px;
    margin: 25px;
    border-radius: 3px; 
    animation: 2s linear 4s 1 forwards cards-reveal;
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition for box-shadow and transform */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    
    
}
.card img {
    justify-content: space-around;
}
.card h1 {
    color: white;
    text-align: left;
    font-size: 2.5rem;
    font-weight: bolder;
    font-family: roboto-black, Arial, sans-serif;
    text-decoration: underline;
    letter-spacing: normal;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    margin: 0;
}
.card h2 {
    color: white;
    text-align: left;
    font-size: 1rem;
    font-weight: bolder;
    font-family: roboto-black, Arial, sans-serif;
    text-decoration: none;
    letter-spacing: normal;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    margin: 0 0 10px 0;
}
.card p {
    color: white;
    text-align: left;
    font-size: 1rem;
    font-weight: lighter;
    font-family: roboto-reg, Arial, sans-serif;
    text-decoration: none;
    letter-spacing: normal;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    text-wrap: wrap;
    max-width: 500px;
    margin: 20px 0;
    
}
 .card:hover {
    cursor: pointer;
    transform: translateY(10px) scale(1.05); /* use of scale to enlarge hovered card*/
    transform: translateY(-5px); /* Slight lift */
    box-shadow: 0px 8px 15px rgba(2, 120, 255, 0.5);
}
footer {
    text-align: center;
    text-decoration: none;
    color: white;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0 0 10px 0;
    
}
footer a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: lighter;
    font-family: roboto-reg, Arial, sans-serif;
    letter-spacing: normal;
    font-variant: small-caps; /* was a requirement but i actually like how this changed the look by making only the first character of each word large capitals while the rest of the characters are small capitols */
    white-space: nowrap;
    
}
footer a:link {
    color: white;

}
.external-link::after {
    content: "(External)";
    color: lightblue;
}


@keyframes icon-movement { /*rotate and move icon up to header location to make room for cards */
    0% {
        opacity: 0;
        transform: translateY(50vh) rotate(180deg) scale(2) skew(30deg, 65deg) ; /*transform rotate scale skew req 1-3*/
    }
    

    50%{opacity: 1;
        transform: translateY(50vh) rotate(0deg) scale(2) skew(0,0);
        

    }
    100%{opacity: 1;
        transform: translateY(0) scale(1);

    }
}

@keyframes left-header-movement { /*move in from left side */
    0% {opacity: 0;
        transform: translateX(-25vw);

    }
    50% {opacity: .2;
        transform: translateX(-15vw);

    }
    100% {opacity: 1;
        transform: translateX(0);

    }
}
@keyframes right-header-movement { /* move in from right side */
    0% {opacity: 0;
        transform: translateX(25vw);

    }
    50% {opacity: .2;
        transform: translateX(15vw);

    }
    100% {opacity: 1;
        transform: translateX(0);
        
    }
}
@keyframes bottom-header-movement {/* move up below IAE logo */
    0% {opacity: 0;
        transform: translateY(25vh);

    }
    50% {opacity: .2;
        transform: translateY(15vh);

    }
    100% {opacity: 1;
        transform: translateY(0);
        
    }
}


@keyframes cards-reveal {
    0% {
        opacity: 0;
    }
    50% {
        opacity: .5;
    }
    100% {
        opacity: 1;
    }
}


