/*Course: ITWP 1050
Author: Nicole Wozniak 
Assignment: Homework 4 - CSS */

/*web font*/
@font-face{
    font-family: 'Branda';
    src: 
        url(resources/BrandaRegular.woff) format('woff'),
        url(resources/BrandaRegular.woff2) format('woff2');
    font-weight: 200;
}

/*styling background for the entire page*/
html{
    background-image: linear-gradient(120deg,#04bde4, cyan, #0253b9, midnightblue);
    background-repeat: no-repeat;
}

/*style for the Universal selector, making the text color*/
*{
    color: #708090;
}

/*style for the body selector*/
body {
    margin: 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    line-height: 30px;
}

/*adding a background box to the H1/H3 in the header. Adding rotation and background color animation.*/
.titlebox{
    background-color: #F8F8FF;
    border: solid 1px black;
    animation: titleshift 7s infinite alternate;
    padding: 1px;
    margin: 1% 25%;
    width: 50%;
    border-style: outset;
}

/*Transform shorthand with rotate and scale properties*/
@keyframes titleshift{
    from{
        background-color: #F8F8FF;
        transform: rotate(10deg) scale(.5,1);
    }
    to {
        background-color: #6495ED;
        transform: rotate(-10deg);
    }
}

/*styling for H1 tag - added for HW4 a skew transform*/
h1 {
    padding-top: 1px;
    color:#0000cd;
    font-size: 60px;
    font-family: 'Branda', Helvetica, sans-serif;
    text-shadow: 4px 3px 0px #4b0082;
    white-space: nowrap;
    font-variant: small-caps;
    letter-spacing: 5px;
    text-align: center;
    transform: skew(25deg,10deg);
}

/*adding styling for the h3 tag added a skew*/
h3 {
    color: #4b0082;
    text-shadow: 2px 0px 2px #9400D3;
    letter-spacing: 1px;
    font-size: 16px;
    font-variant: small-caps;
    transform: skew(10deg,5deg);
}

/*style for footers Element selector*/
footer{
    margin-top: 50px;
    margin-bottom: 50px;
}
#validation a:visited{
    color: #1E90FF;
}
#validation{
    color: #000000;
    border: outset 1px #483D8B;
    width: 50%;
    margin: 20px 25%;
}
#validation p{
    color: #87ceeb;
}

/*style for the source link, before and after clicking*/
.sourceof{
    color: #000000;
}
.sourceof::after{
    content: '(external)';
    color: #87ceeb;
}

/*styling for the images*/
img{
    border-radius: 20px;
}
.topimage{
    border: solid 1px #0000;
    width: 75%;
    
}
.bottomimage{
    border: solid 2px #87ceeb;
    width: 25%;
    margin: 15px 40%;
}

/*styling to the body of the story*/
.theStory{
    border-style: groove;
    margin: 1px 5%;
    text-align: left;
    padding: 10px;
    background-image: linear-gradient(to right, #302b63, #24243e,  #0f0c29);
}

/*making select text italicized for the story*/
/*Wanted to play around with animations and really liked this one*/
.breath{
    font-style: italic;
    text-align: center;
    animation: pulse 3s linear infinite;
}

@keyframes pulse{
    0%{ 
        transform: scale(1);
        opacity: .5;
    }
    50%{ 
        transform: scale(1.3);
        opacity: 1;
    }
    100%{ 
        transform: scale(1);
        opacity: .5;
    }
}

/*adding some styles to the bottom of the story regarding source and inspiration
adding a transition to this box when you hover over it*/
.crediting{
    line-height: 20px;
    width: 25%;
    margin: 15px 40%;
    border: 1px inset #87ceeb;
    outline: 1px inset #87ceeb;
    outline-offset: -2px;
    background-image: linear-gradient(120deg, #87ceeb 10%, #0253b9, #191970);
    transition: width 2s linear 1s;
}
.crediting:hover, .crediting:focus {
    outline: 2px solid #1174ff;
    width: 250px;
    outline-width: 5px;
    outline-offset: -5px;
}

.crediting p {
    color: #000000;
    font-style: italic;
    font-size: 12px;
}


