/******************* VARIABLES ***********************/

@font-face { font-family: caslon; src: url('../webtoon/fonts/caslon.ttf'); } 

:root {
  --ff-serif: caslon, Garamond, Palatino, Cambria, Georgia, Baskerville, Cochin,'Times New Roman', Times, serif;
}


/********************** NORMALIZATION START *************************/

* {
    box-sizing: border-box;
  }
  
body, div, section, nav, h1, h2, h3, h4, p, img, ::before, ::after {
margin: 0;
padding: 0;
border: 0;
}

body {
background-image: url('../imgs/bg.jpg');
background-repeat: no-repeat;
background-size: 100% 100%;
}

img,
iframe {
max-width: 100%; /* never scale up to be larger than its original size */
height: auto;
}

iframe {
display: block;
}

ul {
display: inline-block;
}

nav li {
list-style-type: none; /* no bullet points */
}

/******** NORMALIZATION END **************/



html {
font-size: 18px;
font-family: var(--ff-serif, serif);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* see -> STICKY FOOTER */
    line-height: 1.3rem;
    overflow-anchor: none;
    max-width: 768px;
    margin: 0 auto;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* see -> STICKY FOOTER */
}

header, footer {
    padding: 2rem 1rem;
}

section {
    width: 100%;
    max-width: 760px;
    padding: 1rem;
    margin: 1rem;
    background-color: rgba(206, 224, 244, 0.8);
}

img, #lastsection {
 	border-radius: 50px;
}
section {
 	border-radius: 60px;
}

#lastsection {
background-color: rgba(246, 229, 203, 0.9);
  padding: 21px;}

#chisono {
    padding-bottom: 3rem;
}

a, a:visited, a:hover, a:active {
    color: rgb(126, 0, 59);
    font-size: 1.6em;
    cursor: pointer;
    display: inline-block;
    background-color: #f2e5ed;
    border-radius: 8px;
}

h1 {
    font-weight: 400;
    padding-top: 1em;
    font-size: 4em;
}

h1, h2, h3, p {
    color: #2c2c2f;
}

h2 {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    font-size: 1.5rem;
    font-weight:200;
    font-weight:lighter;
}

h3 {
    padding-top: 2.3rem;
    padding-bottom: 1.2rem;
    font-size: 2rem;
    font-weight:200;
    font-weight:lighter;
    line-height: 2.3rem;
}

p {
    padding: .3rem 0 0 0;
    text-align: justify;
    font-size: 1.4em;
    line-height: 2rem;
}

footer p {
    text-align: center;
    font-size: .8rem;
    color: rgb(255, 248, 220);
}

.pdf, .amazon {
    padding: .2rem 0;
    cursor: pointer;
}

.sub {
    font-size: 1.2rem;
    color: grey;
}

.only-mobile {
    display: none;
}

.only-mobile {
    display: block;
}

/*
**
***
****
*****
******
*******
********
*********
**********
***********
************
/*********************** 2. MEDIA TO 780 START *************************/
@media (max-width: 780px) {

 h1 {
        font-size: 3em;
  }

h2 {
    padding-top: 1.5rem;
    font-size: 1.3em;
  }

 a {
    font-size: 1.3em;
  }

  p {
    text-align: left;
    padding: 0;
  }

  .only-mobile {
    display:block;
  }

  .no-mobile {
    display:none;
  }
  
}
/************ 780 END **************/

@media (max-width: 480px) {

 h1 {
    font-size: 2.4em;
    text-align: center;
  }
 h2 {
    padding-top: 1.3rem;
    font-size: 1.1em;
    text-align: center;
  }
  
}