/*This sets the background color for our comic page*/

html body {
    background-color: #4a200b;
  	background-image: linear-gradient(#111, transparent 10em), linear-gradient(transparent  70em, #111), linear-gradient(90deg, #111, transparent 3%), linear-gradient(-90deg, #111, transparent 3%);
}

/*These IDs are for the invisible divs that will hold our comic together*/

#page {
    height: 100%; 
    width: 800px;
    margin-right: auto;
    margin-left: auto;
}

#titleblock {
    height: 160px; 
    width: 800px;
    padding-left: 10px;
}

/*These are the text styles for the headline and byline*/

h1 {
    font-family: "Comic Sans MS";
    font-style: italic;
    font-weight: 900;
    font-size: 45px;
    color: white;
}

h2 {
    font-family: "Comic Sans MS";
    font-style: italic;
    font-weight: 900;
    font-size: 16px;
    color: white;
}

/*These IDs are for the panels that will make up our comic.*/

#panel1 {
    position: relative;
    height: 280px;
    width: 780px;
    border: 10px solid #222;
		border-image: linear-gradient(#191919, #222) 10;
    float: left;
    background-color: #28d8eb;
    overflow: hidden;
}

#panel2 {
    position: relative;
    height: 280px;
    width: 280px;
    border: 10px solid #222;
  	border-image: linear-gradient(#222, #252525, #222) 10;
    float: left;
    background-color: #77da62;
    overflow: hidden;
}

#panel3 {
    position: relative;
    height: 280px;
    width: 480px;
    border: 10px solid #222;
  	border-image: linear-gradient(#222, #252525, #222) 10;
    float: left;
    background-color: #00d26d;
    overflow: hidden;
}

#panel4 {
    position: relative;
    height: 280px;
    width: 480px;
    border: 10px solid #222;
  	border-image: linear-gradient(#222, #191919) 10;
    float: left;
    background-color: #ffc100;
    overflow: hidden;
}

#panel5 {
    position: relative;
    height: 280px;
    width: 280px;
    border: 10px solid #222;
  	border-image: linear-gradient(#222, #191919) 10;
    float: left;
    background-color: #ff9100;
    overflow: hidden;
}

/*These classes are for the different text styles we will be using in the comic*/

.narration {
    font-family: "Comic Sans MS";
    font-style: italic;
    font-weight: 900;
    font-size: 15px;
    padding: 15px;
    color: white;
    margin: 10px;
    background-color: #222;
  	transition: font-size 1s;
}

.narration:hover {
  	font-size: 20px;
}

.bigtext {
    font-family: "Comic Sans MS";
    color: white;
    font-style: italic;
    font-weight: 900;
    font-size: 30px;
    line-height: 100%;
    margin: 20px;
    text-shadow: 2px 2px #333;
  	background-color: rgb(0 0 0 / 30%);
    border-radius: 5em;
  	padding: 0 .2em .1em;
  	transition: font-size 1s;
}

.bigtext:hover {
  	font-size: 40px;
}

/* These classes can position text and images within the panel.*/

.left {
    position: absolute;
    left: 0;
}

.right {
    position: absolute;
    right: 0;
  	text-align: end;
}

.top {
    position: absolute;
    top: 0;
}

.bottom {
    position: absolute;
    bottom: 0;
}
  
/*These ids can be used fit specific images into our panels based on the dimensions of the image*/

#image1 {
  position: absolute;
  transform: scale(.4) translate(-80%, -95%);
}

#image2 {
  position: absolute;
  transform: scale(.57) translate(-39%, -38%);
}

#image3 {
  position: absolute;
  transform: scale(.5) translate(-60%, -60%);
}

#image4 {
  position: absolute;
  transform: scale(.3) translate(-130%, -120%);
}

#image5 {
  position: absolute;
  transform: scale(.6) translate(-40%, -70%);
}

/*These classes are for stacking or ordering elements on top of eachother.*/

.inback {
    z-index: 1;
}

.inmiddle {
    z-index: 2;
}

.infront{
    z-index: 3;
}

/*Class for image active effects.*/

.image {
  transition: filter 10s;
}

.image:active {
  z-index: 4;
  filter: contrast(200%)
}

/*ID for the space below the comic.*/

#end {
  float: left;
  clear: both;
  margin: 2%;
  padding: 2%;
}