/*====================================*/
/*     BOKTHEGAME MAIN STYLESHEET     */
/*           KG, 2021-12-14           */
/*====================================*/

:root{
    --red: #550000;
    --orange: #ad6500;
    --tan: #b6ae9d;
    --cream: #dedbd3;
    --blue: #243850;
}

@font-face {
    font-family: "Essays 1743";
    src: url("../fonts/Essays1743-BoldItalic.ttf");
    font-weight: bold;
    font-style: italic, oblique;
}
@font-face {
    font-family: "Essays 1743";
    src: url("../fonts/Essays1743-Italic.ttf");
    font-style: italic, oblique;
}
@font-face {
    font-family: "Essays 1743";
    src: url("../fonts/Essays1743-Bold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: "Essays 1743";
    src: url("../fonts/Essays1743.ttf");
}

body{
    background-color: var(--cream);
    font-family: "Roboto Serif", sans-serif;
    /*display: flex;*/
}

main{
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 64px;
}

h1, h2, h3, h4, h5{font-family: "Essays 1743", sans-serif;}

p{
    margin-bottom: 18px;
    font-size: 1.1rem;
    line-height: 1.4rem;
}

p.small-text{
    font-size: 1rem;
    line-height: 1.2rem;
}

ul{margin: 0; }
li{
    margin: 12px 0; 
    font-size: 1.1rem;
    line-height: 1.4rem;
}

.caption{font-size: 0.9rem;}


h2{
    font-size: 2.5rem;
    color: var(--red);
    margin: 18px 0 6px 0;
    border-bottom: 1px solid var(--red);
}

h3{
    font-size: 2rem;
    font-weight: normal;
    margin: 12px 0 4px 0;
    color: var(--blue);
}

h4{
    font-size: 1.5rem;
    margin: 6px 0;
    font-weight: normal;
    text-decoration: underline;
}

h5{
    font-size: 1.6rem;
    line-height: 1.6rem;
    margin: 0 0 8px 0;
}

hr{
    border: none;
    border-bottom: 1px solid var(--red);
}

.fdc{
    flex-direction: column;
}

blue{color: var(--blue);font-weight: bold;}
red{color: var(--red);font-weight: bold;}
orange{color: var(--orange);font-weight: bold;}

.clio button.brand{background-color:var(--red); height: 48px}
.clio button.brand:hover{background-color:#3f0000; }
.clio button.brand.hollow{background-color: transparent; color:var(--red); border:1px solid var(--red);}
.clio button.brand.hollow:hover{background-color: rgba(85,0,0,0.2); }

/*------------ JUMBOTRON -------------*/
#jumbotron{
    display: flex;
    width: 100%;
    height: 70vh;
    background-image: url("../graphics/burningofNY.jpg");
    /*background-attachment: fixed;*/
    background-position: center;
    background-size: cover;

    border-bottom: 12px solid var(--red);
}

.header-footer-cont{
    margin: auto;
    width: 800px;
}

#jumbotron .logo{
    height: 300px;
    width: auto;
    margin: auto 0 auto auto;
}

#jumbotron .buy-now{
    max-width: 200px;
    background-color: var(--blue);
    margin-top: 24px;
    margin-left: auto;
}
#jumbotron .buy-now: hover{background-color: #0e253b;}

#jumbotron .story{
    background-color: rgba(255, 255, 255, 0.75);
    padding: 24px;
}

#orange-bar{
    height: 4px;
    width: 100%;
    background-color: var(--orange);
}

#buy-btn-mobile{
    padding: 4px 12px;
    color: white;
    background: var(--orange);
    font-family: 'Roboto Serif', serif;
    font-size: 1.5rem;
    height: 48px;
    font-weight: normal;
    border-radius: 2rem;
    border: 4px solid var(--red);
}

/*------------ NAVIGATION ------------*/
nav{
    padding: 24px 0;
}

nav .nav-link{
    color: white;
    font-family: 'Essays1743', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: var(--red);
    height: 36px;
    border: none;
    font-weight: normal;
}
nav.desktop .nav-link:hover{
    background-color: #3f0000;
}
nav.mobile .nav-link{
    height: 48px;
}

/*-------------- STORY ---------------*/
#story{
    padding: 32px;
    background-color: var(--tan);
}

/*------------- OVERVIEW -------------*/


/*-------- SETTING + HISTORY ---------*/
#setting img.bldg{
    width: 100%;
    height: auto;
    cursor: pointer;
}
#building-grid span.bldg-spacer{display: none;}

#building-info{
    margin: 18px;
    padding: 18px;
    background-color: var(--tan);
    border: 1px solid black;
}

/*----------- HOW TO PLAY ------------*/

#video-example{
    margin: 12px auto 0 auto;
}

.card-example{
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

#gameplay-example{
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 4px solid var(--tan);
    margin: 12px auto;
}

#how-to .note{
    padding: 24px;
    background-color: var(--tan);
    margin: 12px auto;
    max-width: 600px;
}

/*------------- BUY NOW --------------*/
#go-to-shop{
    margin: 0 auto 18px auto;
    max-width: 400px;
}

/*------------- CREDITS --------------*/
#credits{
    width: 100%;
    height: auto;
    
    background-image: url("../graphics/burningofNY.jpg");
    /*background-attachment: fixed;*/
    background-position: center;
    background-size: cover;

    border-top: 12px solid var(--red);

    padding: 24px 0;
}

#credits .scrim{
    background-color: rgba(255,255,255,0.6);
    padding: 12px 24px;
}

#credits h2{
    font-family: "Bebas Neue", sans-serif;
    border: none;
    color: black;
}

#credit-grid{
    display: grid;
    grid-template-columns: 250px 1fr;
}

#credits p{margin: 0; }
#credits p.title{
    font-style: italic;
}
#credits p.name{
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    line-height: 2.5rem;
}

#image-credit{
    font-size: 0.8rem;
    font-family: "Roboto Serif", sans-serif;
    margin-top: 6px;
    line-height: 0.9rem;
}
#image-credit a{
    font-size: 0.8rem;
}

.copyright p{
    font-family: "Essays 1743", sans-serif;
    text-align: right;
    padding: 8px 24px 0 0;
}

/*====================================*/
/*             UNDER 800              */
/*====================================*/
.mobile{display: none}
.tablet{display: none}


/*Small screens and tablets*/
@media only screen and (max-width: 1024px) {
    #jumbotron .logo{
        height: 250px;
    }
    #jumbotron{
        height: 300px;
    }
}

/*Small tablets and landscape phones*/
@media only screen and (max-width: 768px) {
    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    #building-info{
        margin: 18px 0;
    }
}

/*Small tablets and landscape phones*/
@media only screen and (max-width: 480px) {
    #jumbotron .logo{
        width: 100%;
        height: auto;
        margin: auto;
    }

    #building-grid{grid-template-columns: repeat(6, 1fr); }
    #building-grid .bldg{grid-column: span 2;}
    #building-grid span.bldg-spacer{display: block;}

    #credit-grid{
        display: block;
    }

    #credit-grid .column:last-of-type{
        margin-top: 8px;
    }
}

/*Special case for main padding*/
@media only screen and (max-width: 800px) {
    .header-footer-cont{
        width: 100%;
        padding: 0 24px;
    }

    main{
        padding: 0 24px 64px 24px;
    }

    #more-info .link-grid{
        grid-template-columns: 1fr;
    }

    /*------- REDUCE ALL FONT SIZE -------*/
    p{
        font-size: 1rem;
        text-align: justify;
    }
    
    p.small-text{
        font-size: 0.8rem;
        line-height: 1.2rem;
    }
    
    ul{margin: 0; }
    li{font-size: 1rem; }

    /*a{font-size: 0.8rem;}*/
}