:root {
    --lightergrey: #1C1C1C;
    --white: #ffffff;
    --black: #000000;
    --darkgrey: #171717;
    --hover: #e7e7e7;
    --heading: "Cormorant Garamond", serif;;
    --text: "IBM Plex Serif", serif;
}
body, html {
    color: var(--white);
    scroll-behavior: smooth;
}
header {
    background-color:var(--black);
    padding: 0.5vw 01vw;
}
header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Menu Styles */
.menu, .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu {
    display: flex;
}
.menu a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--text);
    font-weight: 800;
    padding: 0.8em;
    display: inline-block;
}
.menu a:hover {
    background-color: var(--white);
    color: var(--black);
}
.menu-parent {
    position: relative;
}
.menu-parent:hover .sub-menu {
    display: block;
    position: absolute;
    left: 0;
    top:100%;
}
.menu-toggle{
    font-size: 2.5rem;
    display: none;
}
/* sidenav */
.sidenav {
    position: fixed;
    top: 50%;
    right: 3vw;
    transform: translateY(-50%);
    z-index: 5;
}
.sidenav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sidenav a {
    height: 20px;
    width: 20px;
    border-radius: 100%;
    display: inline-block;
    background-color: var(--white);
    margin-bottom: 1em;
    opacity: 0.6;
}
.sidenav a.active {
    opacity: 1;
}
/* sections */
.section {
    height: 120vh;
    padding: 5vw;
    position: relative;
    align-items: center;
}
.section > h2 {
    font-size: 3rem;
    font-weight: normal;
}
/* section 1 */
.section-1 {
    height: 70vh;
}
div#section-1{
    background: url('../img/chess2.jpg') no-repeat;
    background-size: cover;
}
div#section-1 h1{
    text-align: center;
    font-family: var(--heading);
    font-size: 17rem;
    font-weight: 500;
    -webkit-text-stroke: 1px black;
}
/* section 2 */
.section-2 {
    background-color: var(--darkgrey);
    height: 80vh;
}
.image.one{
  margin-left: 8vw;
    width: 90%;
}
.content {
    display: flex;
    flex-direction: row;
    align-items: center;  
}
.section-2 ul {
    font-size: 1.6rem;
    line-height: 2.5;
    padding: 1vw 1vw;
    margin-left: 10vw;
    font-family: var(--text);
    font-weight: 200;
}
/* section 3 */
.section-3 {
    background-color: var(--lightergrey);
    height: 87vh;
}

/* accordion */
.accordion{
    border-bottom: 1px solid #bbb;
}
.accordion-top h2 {
    align-self: center;
    padding-top: 1.5vw;
}
.accordion-top h2::after {
    content: '\221F';
    transform: rotate(-45deg);
    float: right;
    font-size: 1.7rem;
    line-height: 50%;
    transition: all 150ms;
}
.accordion-body {
    height: 0;
    padding: 0 2vw;
    overflow: hidden;
    transition: all 150ms;
    border-top: 1px solid var(--white);
}
.accordion.open .accordion-body {
    height: auto;
    padding: 2vw;
}
.accordion.open .accordion-top h2::after {
    transform: rotate(135deg);
}
.accordion-body p {
    font-size: 1.2rem;
    font-family: var(--text); 
}
.accordion-body h3 {
    font-size: 1.7rem;
}

/* section 4 */
.section-4 {
    background-color: var(--darkgrey);
    height: 100vh;
}
.section-4 h2 {
    font-family: var(--heading);
}
.row {
    display: flex;
}
.card {
    margin: 2vw;
    height: 100%;
    width: 30%;
}
.row.card:last-of-type {
    margin-right: 0;
}
.card-image img {
    width: 100%;
    display: block;
}
.card-text {
    background-color: white;
    padding:2vw;
    color: var(--black);
}
.card-text h2 {
    margin-top: 0;
}
.card-text p {
    font-family: var(--text);
}
.button {
    border: 2px solid var(--black);
    background-color: var(--white);
    color: var(--black);
    padding: 5px 15px;
    font-family: var(--heading);
    font-size: 16px;
    cursor: pointer;
    border-radius: 16px;
    text-decoration: none;
    margin-left: -0.4vw;
}
.button:hover {
    background: var(--hover);
    transition: 0.3s;
}
.card:hover {
    box-shadow: 0 4px 8px 0 var(--white), 0 6px 20px 0 var(--black);
    transition: 0.3s;
}
/*  */
.fade-in {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 200ms;
}
.fade-in.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Media querie */
@media screen and (max-width: 768px){

    .content{
        flex-direction: column;
    }
    .section-2 ul {
        font-size: 1.2rem;
    }
    h2 {
        text-align: center;
    }
    .image.one{
        margin-left: 7vw;
        width: 45%;
    }
    div#section-1 h1{ 
        font-size: 9rem;
        text-align: center;
    }

}