/* Contents
    1 - Mobile Styling:
        1a - Universal Styling.
        1b - Header and Navigation.
        1c - Hero Image.
        1d - Banners.
        1e - Main Content.
        1f - About.
        1g - Publications.
        1h - Carousel.
        1i - Contact.
        1j - Footer.
        1k - Back to Top Button.
    2 - Tablet Styling:
        2a - Universal Styling.
        2b - Header and Navigation.
        2c - Hero Image.
        2d - Banners.
        2e - Main Content.
        2f - About.
        2g - Publications.
        2h - Carousel.
        2i - Contact.
        2j - Footer.
        2k - Back to Top Button.
    3 - Desktop Styling:
        3a - Universal Styling.
        3b - Header & Navigation.
        3c - Hero Image.
        3d - Main Content.
        3e - Publications.
        3f - Footer.
*/

/* 1 - Mobile Styling */
/* 1a - Universal Styling */
@font-face {
    font-family: 'Roboto';
    src: url(./fonts/Roboto-Regular.ttf);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    border: 0;
    font-size: 28px;
    font-family: 'Roboto', sans-serif;
}

p {
    text-align: left;
}

h1, h2, h3, h5 {
    font-family: 'Roboto-Bold', sans-serif;
    color: rgb(141, 173, 167);
}

h6 {
    color: rgb(150, 150, 150);
    text-align: center;
    margin-bottom: 0;
}

h2 {
    margin: 10% 0 5% 0;
    font-size: 2.7em;
    text-align: center;
}

h2::before { 
    display: block; 
    content: " "; 
    margin-top: -360px; 
    height: 360px; 
}

h3 {
    text-align: center;
}

img {
    max-width: 100%;
    width: auto;
    height: auto;
}

hr {
    background-color: rgb(99, 99, 99);
    height: 1px;
    border: none;
}

/* 1b - Header & Navigation */
.tab-header,
.desktop-header {
    display: none;
}

.mob-header {
    display: flex;
}

header {
    background-color: rgba(141, 173, 167, 0.95);
    width: 100%;
    height: auto;
    display: flex;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

header .header-logo {
    width: 100%;
}

header .header-logo img {
    display: block;
    margin: auto;
    padding: 18px 0;
    height: 100%;
    max-width: 100%;
}

header nav {
    width: 100%;
}

header nav ul {
    padding: 0;
    margin: 0;
}

header nav ul li {
    padding: 18px 0;
    list-style: none;
    text-align: center;
}

header nav ul li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 2em;
}

/* 1c - Hero Image */
.hero {
    background-image: url(./images/mob-hero-image.webp);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    width: 100%;
    height: 1376px;
    display: flex;
}

.hero div {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

/* 1d - Banners */
#banner-1 {
    background-image: url(./images/banners/mob-banner1.webp);
}

#banner-2 {
    background-image: url(./images/banners/mob-banner2.webp);
}

#banner-3 {
    background-image: url(./images/banners/mob-banner3.webp);
}

#banner { 
    width: 100%;
    height: 41vw;
}

#banner .slide div {
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    height: 41vw;
}

[data-component="banner"] .slide {
    display: none;
}

[data-component="banner"] .slide.active {
    display: block;
    height: 0;
}

#banner .fading {
    animation: fading 8s infinite;
}

@keyframes fading {
    0% {opacity:0;}
    15% {opacity:1;}
    85% {opacity:1;}
    100% {opacity:0;}
}

/* 1e - Main Content */
main {
    margin: 10%;
}

/* 1f - About */
.about .about-content img {
    display: none;
}

/* 1g - Publications */
.publications .book {
    margin: 5% 0;
}

.publications .book-covers {
    width: 80%;
    margin: auto;
}

.publications .book-covers img {
    border: 2px solid rgb(99, 99, 99);
}

.publications h5 {
    margin-bottom: 0;
    text-align: center;
}

.publications .book-discription .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.publications .book-discription a {
    width: 100%;
    height: 14vw;
    padding: 25px;
    margin-top: 15px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 3em;
}

.publications .book-discription .links .kindle-btn {
    background-color: rgb(252, 152, 39);
    background-image: linear-gradient(to bottom right, rgb(252, 152, 39), rgb(251, 188, 115));
    color: rgb(255, 255, 255);
}

.publications .book-discription .links .apple-btn {
    background-color: rgb(49, 49, 50);
    background-image: linear-gradient(to bottom right, rgb(49, 49, 50), rgb(119, 119, 122));
    color: rgb(242, 242, 242);
}

.publications #pop-up-btn {
    border: 2px solid rgb(99, 99, 99);
    color: rgb(0, 0, 0);
    font-size: 2em;
    text-align: center;
    margin-left: -3.5%;
}
  
.publications .pop-up {
    display: none;
    position: fixed;
    z-index: 1;
    padding: 10% 10% 0 10%;
    left: 0;
    top: 0;
    width: 80%;
    height: 100%;
    overflow: auto;
    background-color: rgb( 255, 255, 255);
    animation-name: zoom;
    animation-duration: .3s;
}

@keyframes zoom {
    from {transform: scale(0.8)} 
    to {transform: scale(1)}
}

.publications .pop-up h2 {
    margin-bottom: 10%;
}

.publications .pop-up .close {
    position: absolute;
    top: 40px;
    right: 40px;
    line-height: 60px;
    color: rgb(255, 0, 0);
    font-size: 4em;
}

.publications .pop-up div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10%;
}

.publications .pop-up #pop-up-bottom {
    margin-bottom: 25%;
}

.publications .pop-up div img {
    margin: 5% 0 5% 0;
}

.publications .pop-up div p {
    color: rgb(0, 0, 0);
    font-size: 1.4em;
}

/* 1h- Carousel */
#carousel { 
    width: 100%;
    height: auto;
    margin-top: 15px;
    display: inline-flex;
    justify-content: center;
}

#carousel .slide img {
    width: 80vw;
    border: 2px solid rgb(99, 99, 99);
}

#carousel .slide #img-5 {
    width: 44.8vw;
}

[data-component="carousel"] .slide {
    display: none;
}

[data-component="carousel"] .slide.active {
    display: block;
    height: 0;
}

#carousel .fading {
    animation: fading 10s infinite;
}

@keyframes fading {
    0% {opacity:0;}
    15% {opacity:1;}
    85% {opacity:1;}
    100% {opacity:0;}
}

/* 1i - Contact */
.contact {
    background-color: rgb(141, 173, 167);
    width: 80%;
    padding: 10%;
}

.contact h2 {
    color: rgba(255, 255, 255, 1);
    margin-top: 0;
}

.contact .contact-box .contact-links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

/* 1j - Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    background-color: rgba(75, 71, 62);
    color: rgb(255, 255, 255);
}

footer span {
    font-size: 1.5em;
}

footer div {
    display: none;
}

/* 1k - Back to Top Button */
.top-btn {
    display: none;
    justify-content: flex-end;
}

.top-btn a {
    background-color: rgba(99, 99, 99, 0.5);
    border-radius: 50%;
    color: rgb(255, 255, 255);
    text-decoration: none;
    position: fixed;
    bottom: 0;
    font-size: 100px;
    line-height: 100px;
    text-align: center;
    width: 100px;
    padding: 25px;
    margin: 0 5% 5% 0;
    right: 0;
	animation-name: btnFadeIn;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: .4s;
    transition: .2s;
}

@keyframes btnFadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

/* 2 - Tablet Styling */
@media only screen and (min-device-width: 768px) and (min-width: 768px) {
    /* 2a - Universal Styling */
    h2::before { 
        display: block; 
        content: " "; 
        margin-top: -135px; 
        height: 135px; 
    }

    h3 {
        text-align: left;
    }

    /* 2b - Header & Navigation */
    .mob-header,
    .desktop-header {
        display: none;
    }

    .tab-header {
        display: flex;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        height: 100px;
        top: 0;
    }
    
    header .header-logo {
        width: auto;
        margin-left: 2.5%;
        height: 80%;
    }

    header .header-logo img {
        padding: 0;
    }

    header nav {
        width: 75%;
        margin-right: 2.5%;
    }

    header nav ul {
        display: flex;
        justify-content: flex-end;
    }

    header nav ul li {
        padding: 0 2.5%;
    }

    header nav ul li a {
        font-size: 1em;
    }
    
    /* 2c - Hero Image */
    .hero {
        background-image: url(./images/hero-image.webp);
        height: 450px;
    }

    /* 2d - Banners */
    #banner-1 {
        background-image: url(./images/banners/banner1.webp);
    }
    
    #banner-2 {
        background-image: url(./images/banners/banner2.webp);
    }
    
    #banner-3 {
        background-image: url(./images/banners/banner3.webp);
    }

    #banner .slide div {
        height: 12vw;
        max-width: 100%;
    }
    
    #banner { 
        height: 12vw;
    }

    /* 2e - Main Content */
    main {
        margin: 5% 6% 0 6%;
    }
    
    h2 {
        font-size: 1.5em;
        margin: 5% 0 2.5% 0;
    }
    
    p {
        font-size: 0.8em;
        margin: 0;
        text-align: justify;
    }

    /* 2f - About */
    .about .about-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .about .about-content img {
        display: inline-flex;
        width: 30%;
        box-shadow: 5px 8px 10px rgb(182, 182, 182);
    }

    .about .about-content p {
        width: 65%;
    }

    /* 2g - Publications */
    .publications .book {
        margin: 1em 0;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .publications .book-covers {
        width: 35%;
        margin: auto 0;
    }

    .publications .book-covers img {
        box-shadow: 5px 8px 10px rgb(182, 182, 182);
    }

    .publications .book-discription {
        width: 60%;
    }

    .publications .center {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .publications .book-discription h3 {
        margin-top: 0;
    }

    .publications .book-discription .links {
        flex-direction: row;
        justify-content: space-evenly;
    }

    .publications .book-discription a {
        width: 37%;
        border-radius: 25px;
        font-size: 2.9vw;
        height: 4.1vw;
        padding: 15px 25px;
    }

    .publications #pop-up-btn {
        width: 50%;
        font-size: 0.6em;
        margin: 5% auto 0 auto;
    }
    
    .publications .pop-up {
        padding: 10% 6% 0 6%;
        width: 88%;
    }

    .publications .pop-up .close {
        line-height: 20px;
        font-size: 1.5em;
    }

    .publications .pop-up h2 {
        margin: 0 0 4% 0;
    }

    .publications .pop-up h2::before {
        display: none;
    }

    .publications .pop-up div {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 5%;
    }

    .publications .pop-up #pop-up-bottom {
        margin-bottom: 18%;
    }

    .publications .pop-up div img {
        width: 35%;
    }

    .publications .pop-up div p {
        width: 60%;
        font-size: 0.8em;
    }

    /* 2h- Carousel */
    #carousel .slide img {
        width: 100%;
        box-shadow: 5px 8px 10px rgb(182, 182, 182);
    }
    
    #carousel .slide #img-5 {
        width: 75%;
        margin-left: 12.5%;
    }

    /* 2i - Contact */
    .contact {
        display: none;
    }

    /* 2j - Footer */
    footer {
        justify-content: space-between;
        width: 88%;
        height: 100px;
        padding: 0 6%;
    }

    footer span {
        font-size: 0.6em;
        width: 60%;
    }

    footer div {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 40%;
    }

    footer a {
        margin-left: 5%;
    }

    footer a img {
        display: block;
        height: 40px;
    }

    /* 2k - Back to Top Button */
    .top-btn a {
        font-size: 30px;
        line-height: 30px;
        width: 30px;
        padding: 15px;
        margin: 0 2.5% 2.5% 0;
    }
}

/* 3 - Desktop Styling */
@media only screen and (min-device-width: 1025px) and (min-width: 1025px) {
    /* 3a - Universal Styling */
    h2::before,
    h3::before { 
        display: block; 
        content: " "; 
        margin-top: -70px; 
        height: 70px; 
    }

    /* 3b - Header & Navigation */
    .mob-header,
    .tab-header {
        display: none;
    }

    .desktop-header {
        display: flex;
    }

    header {
        height: auto;
        flex-direction: column;
    }
    
    header .header-logo {
        height: 105px;
        margin: 0;
    }
    
    header .header-logo img {
        padding: 5px 0 0 0;
        height: 90%;
    }
    
    header nav {
        width: 100%;
        margin: 0;
    }
    
    header nav ul {
        justify-content: center;
    }

    header nav ul li {
        font-size: 0.8em;
        padding: 0;
        margin: 10px 2%;
    }

    header nav ul li a {
        padding: 0;
        transition: .2s;
    }
    
    header nav ul li a:hover {
        opacity: .5;
    }

    header nav .dropdown {
        overflow: hidden;
    }
      
    header nav .dropdown .dropbtn { 
        border: none;
        outline: none;
    }

    header nav .dropdown .dropbtn::after { 
        content: "\25BC";
        font-size: 0.7em;
    }

    header nav .dropdown .dropbtn::after:hover { 
        transform: rotate(90deg);
    }
      
    header nav .dropdown-content {
        display: none;
        position: absolute;
        background-color: rgba(141, 173, 167, 0.95);
        min-width: 200px;
        padding-top: 10px;
        margin-left: -25px;
        z-index: 1;
        transition: .2s;
        box-shadow: 5px 8px 10px rgba(0, 0, 0, 0.3);
    }
      
    header nav .dropdown-content a {
        float: none;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: center;
    }
      
    header nav .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.9);
        opacity: 1;
        color: rgb(99, 99, 99);
    }
      
    header nav .dropdown:hover .dropdown-content {
        display: block;
    }

    /* 3c - Hero Image */
    .hero {
        height: 80vh;
    }

    /* 3d - Main Content */
    main {
        margin: 5% 10% 0 10%;
    }
    
    p {
        font-size: 0.7em;
    }

    /* 3e - Publications */
    .publications .book-discription .links {
        justify-content: center;
    }
    
    .publications .book-discription a {
        transition: .2s;
        font-size: 1em;
        height: 1.64em;
        width: 7.1em;
    }

    .publications .book-discription a:hover {
        box-shadow: 5px 8px 10px rgb(182, 182, 182);
    }

    .publications .book-discription .links .kindle-btn {
        margin-right: 2.5%;
    }

    .publications #pop-up-btn {
        width: 15em;
    }
    
    .publications .pop-up {
        padding: 10% 10% 0 10%;
        width: 80%;
    }

    .publications .pop-up .close {
        line-height: 40px;
        font-size: 2em;
        transition: 0.3s;
    }
    
    .publications .pop-up .close:hover {
        opacity: .5;
        cursor: pointer;
    }

    /* 3f - Footer */
    footer {
        width: 80%;
        height: 70px;
        padding: 0 10%;
    }

    footer span {
        font-size: 0.5em;
    }

    footer a {
        transition: .2s;
    }

    footer a:hover {
        opacity: .5;
    }

    /* 3j - Back to Top Button */
    .top-btn a {
        margin: 0 1.5% 1.5% 0;
    }

    .top-btn a:hover {
        background-color: rgba(99, 99, 99, 1);
    }
}

/* Created by Sam King, 2021 */