/*This sets the background color for our comic page*/
html body {
    background-color: antiquewhite;
}

/* root category for variables*/

root{
  --scaleby : 1;
}

/*fonts*/
.permanent-marker-regular {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-style: normal;
}

/*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: "Permanent Marker";
    font-style: italic;
    font-weight: 900;
    font-size: 45px;
    color: black;
    text-align: center;
    text-shadow: -20px 5px #66999940;
    letter-spacing: 10px;
}

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

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

#panel1 {
    position: relative;
    height: 280px;
    width: 480px;
    border:10px solid #2b2b2b;
    float: left;
    background-color: snow;
    overflow: hidden;
}

#panel2 {
    position: relative;
    height: 280px;
    width: 280px;
    border:10px solid #2b2b2b;
    float: left;
    background-color: white;
    overflow: hidden;
}

#panel3 {
    position: relative;
    height: 280px;
    width: 780px;
    border:10px solid #2b2b2b;
    float: left;
    background-color: white;
    overflow: hidden;
}

#panel4 {
    position: relative;
    height: 280px;
    width: 380px;
    border:10px solid #2b2b2b;
    float: left;
    background-color: white;
    overflow: hidden;
}

#panel5 {
    position: relative;
    height: 280px;
    width: 380px;
    border:10px solid #2b2b2b;
    float: left;
    background-color: white;
    overflow: hidden;
}

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

/*This one's just for the textbox itself*/
.textbox{
  min-width: 20px;        /* Keeps textbox from compressing */
  max-width: 250px;
  margin: 1%;
  padding: 25px 25px;
  border: 1px solid;
  box-sizing: border-box; 
}

.narration {
    font-family: "Comic Sans MS";
    font-style: italic;
    font-weight: 900;
    font-size: 15px;
    padding: 10px;
    color: white;
    margin: 5px;
    background-color: #2b2b2b;
}

.bigtext {
    font-family: "Comic Sans MS";
    color: black;
    font-style: italic;
    font-weight: 900;
    font-size: 28px;
    line-height: 100%;
    margin: 30px;
    border-radius: 30% 30% 30% 30%;
    background-color: #d0dbeb;
}

.exposition{
  font-family: "Comic Sans MS";
    color: black;
    font-style: italic;
    font-weight: 900;
    font-size: 30px;
    line-height: 100%;
    margin: 0px;
    background-color: #e6e6e680;
    border-radius: 10% 10% 10% 10%;
}

.dialogue{
    font-family: "Comic Sans MS";
    color: black;
    background-color: #d0dbeb;
    font-weight: 900;
    font-size: 17px;
    line-height: 100%;
    margin: -1px;
    border-radius: 40% 40% 40% 40%;
}

.dialoguealt{
    font-family: "Comic Sans MS";
    color: black;
    background-color: #ebd0dd;
    font-weight: 900;
    font-size: 17px;
    line-height: 100%;
    border-radius:30%
}

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

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

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

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

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

.high{
  position: absolute;
  top: 20%;
}

.low{
    position: absolute;
    bottom: 20%;
}

.leftbound{
  position: absolute;
  left: 20%;
}

.rightbound{
  position:  absolute;
  right: 20%;
}
.center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); 
  
}

.middleHoriz{
  position: absolute;
  left:50%;
  transform: translateX(-50%);
  
}

.middleVert{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Shapes as characters*/
.triangle{
  position: absolute;
  width: 0;
	height: 0;
	border-left: 40px solid transparent;
	border-right: 40px solid transparent;
	border-bottom: 80px solid black;
}

.triangle::after{ /*//triangle outline (They made it so cumbersome i dont know why)*/
  position: absolute;
  content: '';
  top: 3px; 
  left: -38px; 
  width: 0;
	height: 0;
	border-left: 38px solid transparent;
	border-right: 38px solid transparent;
	border-bottom: 76px solid blue;
}

.circle{
  width: 70px;
  height: 70px;
  position: absolute;
  border: 3px solid;
  border-radius: 50%;
  background-color: red;
}

.large{
  transform: scale(var(--scaleby));
}
  
/*These ids can be used to fit specific images into our panels*/

#image1 {
    position: absolute;
    width:100%;
    
}

#image2 {
    position: absolute;
    height:100%;
}

#image3 {
    position: absolute;
    width:100%;
}

#image4 {
    position: absolute;
    width:120%;
    top: -90px;
}

#image5 {
    position: absolute;
    height:100%;
    left:-30px;    
}

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

.inback {
    z-index: 1;
}

.inmiddle {
    z-index: 2;
}

.infront{
    z-index: 3;
}

