@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap');

/* Color variables */
:root {
    --black: #001011;
    --dark-blue: #380099;
    --light-blue: #0041f4;
    --white: #FFFFFF;
    --orange: #FF6700;
}


/*========= General =======*/
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgb(255, 255, 255);
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
}

/* ========== Custom scroll bar ===== */
/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--dark-blue);
}

/*========= typography =======*/

a {
    text-decoration: none;
    color: var(--black);
}

h1 {
    font-size: 24pt;
}

h2,
.section-info a {
    font-size: 16pt;
    font-weight: 500;
    color: var(--light-blue);
}

h3 {
    text-transform: uppercase;
    font-size: 14pt;
    font-weight: 700;
    color: var(--dark-blue);
}

p {
    text-align: justify;
}

.home h1 {
    color: white;
}

.fig {
    color: var(--orange);
    text-decoration: underline;
    transition-duration: 250ms;
}

.fig:hover {
    color: var(--light-blue);
    cursor: pointer;
    transition-duration: 250ms;
}

.source,
source li {
    font-size: 0.8rem;
    text-align: justify;
    color: gray;
    margin-bottom: 1rem;
    margin-top: 1em;
    margin-left: 20px;
}

/* LOGO */
.logo {
    font-weight: bold;
    float: left;
    font-size: 1.2rem;
    color: #161616;
    padding-left: 0;
    margin-left: 0;
}

.logo span {
    color: var(--light-blue);
}

/*========= NAVIGATION =======*/

header {
    background-color: rgb(255, 255, 255);
    position: fixed;
    top: 0px;
    width: 100%;
    padding: .8em 0;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

nav {
    padding: 0 7vw;
}

nav ul {
    list-style-type: none;
    float: right;
    display: flex;
}

nav a {
    display: inline-block;
    text-align: center;
    padding: .4rem 1rem;
    margin-left: .5rem;
    transition-duration: 250ms;
}

nav li a:hover {
    border-bottom: 3px solid var(--black);
    transition-duration: 250ms;
}

.selected {
    color: var(--light-blue);
    border-bottom: 3px solid var(--light-blue);
}

/* ========= containers ============= */

/* Main content container */
.container, .home {
    height: 100vh;
    min-height: 500px;
    padding-top: 14vh;
    margin: 0 6%;
    overflow: hidden;
}

/* Text container */
.text-container {
    display: inline-block;
    width: 40vw;
}

.section-info {
    position: absolute;
    width: 38vw;
    height: 90px;
    z-index: 50;
    background-color: var(--white);
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.1);
}

.text-container section {
    height: 65vh;
    margin-top: 105px;
    padding-top: 20px;
    padding-bottom: 140px;
    overflow-x: hidden;
}

.text-container .gradient {
    position: relative;
    height: 80px;
    bottom: 80px;
    width: 39vw;
    z-index: 5;
    overflow: hidden;

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#ffffff', GradientType=0);
    /* IE6-9 */
    background: -moz-linear-gradient(bottom, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(bottom, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

}


.text-container article {
    padding-right: 24px;
}

/* Image container */
.image-container {
    position: absolute;
    overflow: scroll;
    overflow-x: hidden;
    width: 42vw;
    /* height: 65vh; */
    height: 80vh;
    /* top: 215px; */
    top: 15vh;
    right: 7vw;
    padding-right: 24px;
    padding-bottom: 140px;
    scroll-behavior: smooth;
}

.image-container img,
.image-container audio {
    border-radius: 5px;
    margin: 15px 0;
    width: 100%;
}

/* 
.image-container img {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.122);
} */

.caption {
    position: relative;
    border: 2px solid var(--orange);
    display: inline-block;
    border-radius: 3px;
    top: -15px;
    padding: 10px;
    width: 100%;
    color: var(--orange);
    font-weight: 700;
    text-align: center;
}

/* Home page Cards */
#about-card {
    background: linear-gradient(to top, #3204fd5f, #00000077), url("../images/fig\ about.jpeg") right;
    background-size: cover;
}

#past-card {
    background: linear-gradient(to top, #3204fd5f, #00000077), url("../images/fig\ past.jpg") center;
    background-size: cover;
}

#present-card {
    background: linear-gradient(to top, #3204fd5f, #00000077), url("../images/fig32.jpg") center;
    background-size: cover;
}

#future-card {
    background: linear-gradient(to top, #3204fd5f, #0000004c), url("../images/fig\ future.jpeg") center;
    background-size: cover;
}

.card {
    display: inline-block;
    height: 75vh;
    width: 22%;
    min-width: 160px;
    margin: 1%;
    box-shadow: 1px 2px 5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition-duration: 0.3s;
}

.card h1 {
    padding-top: 24px;
    text-align: center;
    color: var(--white);
}

.card:hover {
    transition-duration: 0.2s;
    box-shadow: 1px 2px 8px 0px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    cursor: pointer;
}

/* ======= buttons ======== */
.btn {
    display: inline-block;
    color: var(--light-blue);
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid var(--light-blue);
    border-radius: 2px;
    transition-duration: 0.3s;
}

.btn:hover {
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    transition-duration: 0.3s;
}

.download {
    text-decoration: underline;
    color: var(--dark-blue);
    font-weight: 700;
    transition-duration: 0.3s;
}

.download:hover {
    color: var(--light-blue);
    transition-duration: 0.3s;
    cursor: pointer;
}

/* ====== footer ========== */

footer {
    position: absolute;
    width: 100%;
    background-color: #3d3d3d;
    padding: 1rem;
    text-align: center;
    color: #e4e4e4c5;
    z-index: 2;
}

footer p {
    text-align: center;
}

/* ======= media queries ======== */
@media only screen and (max-width: 864px) {

    .card {
        width: 46%;
        min-width: 0;
        height: 44%;
        overflow: auto;
    }

    .card h1 {
        font-size: 16pt;
    }

    nav a {
        font-size: 10pt;
        padding: 4px;
    }

    .container {
        height: auto;
        width: auto;
        overflow: auto;
        padding: 0;
    }

    .text-container,
    .image-container, .text-container article {
        width: 100%;
        height: auto;
        position: relative;
        overflow: auto;
        display: block;
        padding: 0;
        margin: auto;
        top: auto;
        right: auto;
        bottom: auto;
        overflow-x: hidden;
    }

    .text-container section{
        height: auto;
        width: auto;
        padding: 0;
        margin-top: 165px;
        padding-top: 20px;
    }

    .text-container .section-info {
        width: auto;
        margin-top: 80px;
    }

    .gradient {
        display: none;
    }

}