/* **************************************
    BASE
************************************* */

:root {
    --black: #000;
    --white: #fff;
    --greyLighter: #efefef; 
    --greyLight: #e1e3e5;
    --greyMedium: #8a959e;
    --greyDark: #323a45;
    --darkBlue: #325684;
    --blue: #63A5F5;
    --lightBlue: #d6e9ff;

    /* case study 1 */
    --orange: #F76902;
    --lightOrange: #ffc092;
    --darkOrange: #cf5600;

    /* case study 2 */
    --red: #c12530;
    --lightRed: #ffd6d6;
    --darkRed: #871a22;

    /* case study 3 */
    --green: #8FD027;
    --lightGreen: #E1FFB0;
    --darkGreen: #6A9B1C;

    --defaultTransition: all 500ms ease-in-out;
}

html * {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* apply a natural box layout model to all elements, but allowing components to change */
html {
    font-family: "Roboto", serif;
	box-sizing: border-box;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}
*,
*:before,
*:after {
	box-sizing: inherit;
}

/* set rem text size and styling */
html {
	font-size: 62.5%;
}
body {
	font-size: 18px;
	font-size: 1.8rem;
    height: 100%;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    height: 100vh;
}

.homepage h2 {
    font-size: 16rem;
    font-weight: 900;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    color: var(--blue);
    margin-left: 33px;
    margin-top: 50px;
}

footer {
    display: flex;
    background-color: var(--blue);
    height: 15vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--white);
    padding: 20px;
}
@media (max-width: 900px) {
    footer {
        font-size: 1.75rem;
    }
}

.homepage h1 {
    display: none;
}

p {
    line-height: 2;
}

/* ******************************************************************************************************************
  HEADER/INITIAL PAGE
***************************************************************************************************************** */


.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
} 

.top {
    background-color: var(--white);
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.top h2 {
    position: relative;
    bottom: -40px;
    color: var(--blue);
    margin-left: -2.5px;
}

.bottom {
    background-color: var(--blue);
    flex: 1;
    margin-bottom: 10px;
    transition: margin-bottom 0.5s ease;
}

.bottom h2 {
    position: relative;
    top: -85.5px;
    color: var(--white);
    margin-left: -2.5px;
}

.img-container {
    display: flex;
    justify-content: center; 
    align-items: flex-end;
    flex: 1;
    width: 100%;
}

.bottom img {
    position: relative;
    top: 40px;
    /* maybe 60px, around that */
    transition: transform .5s;
}

.bottom img:hover {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .homepage h2 {
        font-size: 10rem;
    }

    .top h2 {
        bottom: -24.5px;
    }

    .bottom a {
        text-align: center;
    }

    .bottom h2 {
        top: -71.75px;
    }

    .bottom img {
        width: 70%;
        height: auto;
        position: relative;
        top: 130px;
    }
}
@media (max-width: 500px) {
    .homepage h2 {
        font-size: 7rem;
    }

    .top h2 {
        bottom: -18px;
    }

    .bottom h2 {
        top: -65.5px;
    }

    .bottom img {
        width: 70%;
        height: auto;
        position: relative;
        top: 165px;
    }
}

/* to-top button */
#buttonUp {
    position: fixed;
    bottom: 20px;
    right: 30px;
    transition: all 0.6s;
    z-index: 100;
    opacity: 0;
    border: none;
    outline: none;
    background-color: black;
    color: var(--white);
    cursor: pointer;
    padding: 15px;
    border-radius: 200px;
}

#buttonUp:hover {
    background-color: var(--blue);
}

/* circle following cursor */
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: var(--white);
    border: 2px solid var(--blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ----------------------------------------------------------- */
/* NAVBAR STUFF */
nav {
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Hidden state */
.hidden {
  opacity: 0;
  pointer-events: none;
}

nav a,
nav ul {
    margin: 20px 40px;
}

nav a {
    transition: all 300ms ease-in-out;
}

nav a:hover {
    color: var(--blue);
}

nav > a {
    text-decoration: none;
    color: var(--black);
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul a {
    padding: 0;
    margin: 0 20px;
    text-decoration: none;
    color: var(--black);
}

nav ul li:nth-of-type(2) a{
    margin-right: 0;
}

@media (max-width: 750px) {
    nav ul li {
        display: flex;
        justify-content: center;
    }

    nav ul a {
        margin: 0 10px;
    }

    nav a,
    nav ul {
        margin: 20px 10px;
    }
}

/* ----------------------------------------------------------- */
/* PROFILE STUFF (HOMEPAGE)*/
.bio {
    margin: 150px 100px 100px 100px;
}

@media (max-width: 650px) {
    .bio {
        margin: 150px 25px 100px 25px;
    }
}

.flex-wrapper-bio {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.profile-img {
    max-width: 40%;
    height: auto;
    position: relative;
    bottom: 100px;
    padding: 0px 0px 50px 20px;
    flex: 40%;
}


.flex-wrapper-bio div {
    flex: 60%;
    display: flex;
    flex-direction: column;
    padding: 0px 20px 20px 40px;
    font-size: 2.4rem;
}

#synopsis {
    margin-right: 60px;
    font-weight: 200;
    font-size: 2rem;
}

#synopsis p {
    padding-bottom: 30px;
}

#flex-icons {
    display: flex; 
    flex-direction: row;
    justify-content: space-evenly;
    margin-right: 60px;
}

#email svg,
#linkedin svg,
#insta svg {
  transition: var(--defaultTransition);
}

#email:hover svg,
#linkedin:hover svg,
#insta:hover svg {
  fill: var(--black);       
  transform: scale(1.1); 
}

#resumeB-wrapper {
    display: flex; 
    flex-direction: row;
    justify-content: space-evenly;
    margin-right: 40px;
}

.resume-button {
    display: block;
    text-decoration: none;
    border: 2px solid transparent;
    color: var(--white);
    background-color: var(--blue);
    padding: 20px 50px;
    margin: 20px auto 0 auto;
    text-align: center;
    border-radius: 50px;
    transition: var(--defaultTransition);
}

.resume-button:hover {
    background-color: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
}

@media (max-width: 1250px) {
    .flex-wrapper-bio {
        flex-direction: column;
    }

    #synopsis{
        max-width: 800px;
    }

    .flex-wrapper-bio div {
        text-align: center;
        font-size: 1.75rem;
        padding: 0px 20px 20px 20px;
    }

    .profile-img {
        bottom: 40px;
        width: 60%;
        height: auto;
        padding: 0px 0px 50px 0px;
    }

    #synopsis {
        margin-right: auto;
    }

    #flex-icons {
        margin-right: 0px;
    }

    #resumeB-wrapper {
        margin-right: 0px;
    }
}

@media (max-width: 900px) {
    .profile-img {
        max-width: 80%;
    }

    #synopsis {
        padding-right: 0;
        padding-left: 0;
    }

    .flex-wrapper-bio div {
        padding: 0;
    }
}

/* ----------------------------------------------------------- */
/* CARD STUFF (HOMEPAGE)*/
.cards {
	font-weight: 300;
	background: var(--white);
    padding: 20px;
    max-width: 100%;
}

@media (min-width: 900px) {
    .cards {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
    }
}

/* default is first card styling */
.cards-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--black);
    min-height: 100%;
    text-align: left;
    text-decoration: none;
    padding: 30px;
    margin: 20px;
    transition: var(--defaultTransition);
    width: auto;
    background-color: rgba(255, 255, 255, 0.85); 
}

@media (min-width: 900px) {
    .cards-item {
        width: calc(100% / 3);
    }
}

@media (max-width: 900px) {
    .cards-item {
        height: 30%;
    }
}

.cards-item img {
    width: 100%;
    margin-bottom: 20px;
}

/* 1st CARD HOVER COLORS */
.cards-item {
    border-top: 15px solid var(--darkOrange);
}

.cards-item:hover,
.cards-item:focus {
    background: var(--darkOrange);
    border-color: var(--darkOrange);
    color: var(--white);
    outline: 0;
}

.cards-item:hover .cards-date,
.cards-item:focus .cards-date {
    color: var(--white);
}

.cards-item:hover .cards-title,
.cards-item:focus .cards-title {
    color: var(--white);
}

.cards-item:hover .cards-more,
.cards-item:focus .cards-more {
    color: var(--white);
    border-bottom: none;
}

/* 2nd CARD COLORS + HOVER*/
.cards-item:nth-of-type(2) {
    border-top: 15px solid var(--darkRed);
}

.cards-item:nth-of-type(2):hover,
.cards-item:nth-of-type(2):focus {
    background: var(--darkRed);
    border-color: var(--darkRed);
}

/* 3rd CARD COLORS + HOVER*/
.cards-item:nth-of-type(3) {
    border-top: 15px solid var(--darkGreen);
}

.cards-item:nth-of-type(3):hover,
.cards-item:nth-of-type(3):focus {
    background: var(--darkGreen);
    border-color: var(--darkGreen);
}

/* Design CARD COLORS + HOVER*/
#design .cards-item {
    border-top: 15px solid var(--darkBlue);
}

#design .cards-item:hover,
#design .cards-item:focus {
    background: var(--darkBlue);
    border-color: var(--darkBlue);
}

/* Design 2nd CARD COLORS + HOVER*/
#design .cards-item:nth-of-type(2) {
    border-top: 15px solid var(--greyMedium);
}

#design .cards-item:nth-of-type(2):hover,
#design .cards-item:nth-of-type(2):focus {
    background: var(--greyMedium);
    border-color: var(--greyMedium);
}

/* Design 3rd CARD COLORS + HOVER*/
#design .cards-item:nth-of-type(3) {
    border-top: 15px solid var(--greyDark);
}

#design .cards-item:nth-of-type(3):hover,
#design .cards-item:nth-of-type(3):focus {
    background: var(--greyDark);
    border-color: var(--greyDark);
}




.cards-date {
    display: block;
    color: var(--greyDark);
    text-transform: uppercase;
    font-size: 1.2rem;
    line-height: 2.4rem;
    font-weight: 700;
    transition: var(--defaultTransition);
}

.cards-title {
    color: var(--black);
    font-weight: 300;
    margin: 0 0 30px 0;
    transition: var(--defaultTransition);
    font-size: 2rem;
    line-height: 3rem;
}

@media (min-width: 1200px) {
    .cards-title {
        font-size: 2.4rem !important;
        line-height: 3.5rem;
    }
}

.cards-more {
    margin-top: auto;
    color: var(--greyDark);
    display: inline-block;
    border-bottom: 1px solid var(--greyMedium);
    font-size: 1.8rem;
    line-height: 1.6rem;
    font-weight: 400;
    transition: var(--defaultTransition);
}

/* ----------------------------------------------------------- */
/* LAYOUT (HOMEPAGE) */

#bio { grid-area: bio; }
#cases { grid-area: cases; }
#design { grid-area: design; }


.grid-container {
    display: grid;
    grid-template-areas:
    "bio"
    "cases" 
    "design"
}





/* ******************************************************************************************************************
 HEADER/HERO IMAGE (CONTENT/CASE STUDY PAGES)
***************************************************************************************************************** */

/* ----------------------------------------------------------- */
/* navbar/hero-image (contentpage)*/
.contentpage nav > a {
    margin-left: 15vw;
}
@media (max-width: 450px) {
    .contentpage nav > a {
        margin-left: 5vw;
    }
}

.contentpage nav ul {
    margin-right: 15vw;
}
@media (max-width: 450px) {
    .contentpage nav ul {
        margin-right: 5vw;
    }
}

.casepage header {
    background-color: var(--blue);
    background-image: url("../img/1case_study/ROARlink_main.webp");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 600px;
}
@media (max-width: 750px) {
  .casepage header {
    background-size: auto 400px; 
    height: 450px;
  }
}

@media (max-width: 450px) {
  .casepage header {
    background-size: auto 350px;
    height: 400px;
  }
}

/* ----------------------------------------------------------- */
/* Overview section (contentpage)*/
.casepage section {
    padding: 80px 15vw;
}
@media (max-width: 450px) {
    .casepage section {
        padding: 50px 5vw;
    }
}

.contentpage h1 {
    font-size: 9rem;
    font-weight: 900;
    font-style: normal;
}
@media (max-width: 600px) {
    .contentpage h1 {
        font-size: 5rem;
    }
}

.casepage h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 80px;
}
@media (max-width: 600px) {
    .casepage h2 {
        font-size: 2rem;
    }
}

.casepage h3 {
    font-size: 5.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}
@media (max-width: 600px) {
    .casepage h3 {
        font-size: 3rem;
    }
}

.overview-flex {
    display: flex;
}

.specifications {
    margin-left: 100px;
    flex: 1;
}

@media (max-width: 750px) {
    .overview-flex {
        flex-direction: column;
    }

    .specifications {
        margin-left: 0px;
        margin-top: 50px;
    }

}

/* right column */

.specifications h4 {
    font-weight: 300;
    margin: 25px 0 10px 0;
}

.specifications h4:nth-of-type(1) {
    margin-top: 0;
}

.specifications p {
    line-height: 1.5;
}

/* left column */
.overview-text {
    flex: 2
}

.overview-text p:nth-of-type(1){
    margin-bottom: 50px;
}

/* ------------------------------------------------------------------------- */
/* GENERAL SECTION STLYING / Problem section (contentpage)*/
/* ------------------------------------------------------------------------- */
.alt-background {
    background-color: var(--lightBlue);
}

.h4-headers {
    padding-bottom: 4%;
    font-weight: 500;
    letter-spacing: 2px;
}

.p1-padding {
    padding-top: 2%;
}

.content-gen-img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 40px auto 0 auto;
}

.figma-button {
    display: block;
    text-decoration: none;
    border: 2px solid transparent;
    color: var(--white);
    background-color: var(--blue);
    padding: 15px;
    margin: 10px auto 0 auto;
    text-align: center;
    border-radius: 50px;
    transition: var(--defaultTransition);
}

.figma-button:hover {
    background-color: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
}

.emphasize {
    font-weight: bold !important;
    color: var(--blue);
    font-size: 1.8rem !important;
    transform: translateY(0) !important;
}

/* ----------------------------------------------------------- */
/* Soultion section (contentpage)*/
.solution img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 40px auto 0 auto;
    margin: 40px auto 40px auto;
}

.sol-outer-flex {
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
}

.sol-outer-flex span {
    line-height: 1;
    transform: translateY(-10%);
    font-size: 18.5rem;
    color: var(--lightBlue);
    font-weight: 900;
}

.sol-outer-flex h4 {
    font-size: 3.5rem;
}

@media (max-width: 400px) {
    .sol-outer-flex {
        flex-direction: column;
    }
}

.sol-outer-flex ul {
    margin-left: 10%;
    margin-top: 2.5%;
}

.sol-outer-flex ul li::marker {
    font-size: 2.5rem;
}

.sol-outer-flex li {
    padding-bottom: 7.5px;
    line-height: 1.5;
}

/* more specific */
#sol-3 {
    padding-right: 2%;
}

.sol2-spec > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sol2-spec div > div{
    display: flex;
    align-items: end;
}

.sol2-spec span {
    transform: translateY(12.5%);
}

.sol2-spec h4 {
    padding-left: 10px;
}

.sol2-spec ul {
    padding-left: 12%;
}

@media (max-width: 850px) {
    .sol2-spec {
        flex-direction: column-reverse;
    }
}

.sol3-spec {
    margin-top: 40px;
}

.sol3-spec-img {
    margin: 40px auto 0 auto;
}

/* ----------------------------------------------------------- */
/* lit-review section (contentpage)*/
.quote-style {
    color: var(--blue); 
    margin: 40px 80px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .quote-style {
        margin: 30px 40px;
    }
}

.quote-style cite {
    display: block;
    color: var(--blue);
    margin-top: 5px;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

/* ----------------------------------------------------------- */
/* comp-analysis section (contentpage)*/


/* ----------------------------------------------------------- */
/* user-interviews section (contentpage)*/
.user-interviews h4:nth-of-type(2) {
    font-size: 2rem;
    margin-top: 4%;
}

.user-interviews ol {
    margin-left: 5%;
}

.user-interviews li {
    margin-top: 1.5%;
}

/* ----------------------------------------------------------- */
/* main-insight section (contentpage)*/


/* ----------------------------------------------------------- */
/* persona section (contentpage)*/
.persona-h4 {
    padding-bottom: 2%;
}

/* ----------------------------------------------------------- */
/* design section (contentpage)*/


/* ----------------------------------------------------------- */
/* testing/changes section (contentpage)*/
.changes img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 80px auto;
}

.changes > div:nth-of-type(1) {
    margin-top: 80px;
}

.changes span {
    color: var(--white);
    font-weight: 900;
}

.num-spacing {
    padding-right: 1%;
}

#changes-img2 {
    margin-top: 3%;
}

#changes-img3 {
    margin-bottom: 0;
    margin-top: 3.5%;
}

.changes p:nth-of-type(2) {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .changes p:nth-of-type(2) {
        font-size: 3.5rem;
        font-weight: 900;
        line-height: 1.5;
    }
}

/* ----------------------------------------------------------- */
/* final screens section (contentpage)*/


/* ----------------------------------------------------------- */
/* conclusion section (contentpage)*/
.conclusion h4:not(:first-of-type) {
    font-size: 3.5rem;
    margin-top: 7.5%;
}

.conclusion span {
    font-weight: bold;
    color: var(--blue);
    font-size: 2.5rem;
}

.conclusion ol, .conclusion ul {
    margin-top: 2.5%;
    margin-left: 7.5%;
}

.conclusion ul li::marker, .conclusion ol li::marker {
  font-size: 2.5rem;
  font-weight: 900;
}

.conclusion li {
    margin-bottom: 2%;
    line-height: 1.5;
}

/* ----------------------------------------------------------- */
/* final section (contentpage)*/

.final h4 {
    font-size: 3.5rem;
    margin-bottom: 2.5%;
}

.final a {
    text-decoration: none;
    color: var(--blue);
}

.final a:hover {
    text-decoration: underline;
}

.final hr, .final h3 {
    margin-top: 5%;
}

/* outer container size for the card elements*/
.final .cards {
  padding: 0;
  /* max-width: 50%; */
}

.final .cards-item {
    margin: 0;
}

.final .cards-title {
    font-size: 2rem;
    font-weight: 300;
}


/* ******************************************************************************************************************
 HEADER (DESIGN PAGES)
***************************************************************************************************************** */

.designpage h1 {
    margin: 50px 14vw -50px 14vw;
    font-size: 15rem;
}

@media (max-width: 900px) {
    .designpage h1 {
        font-size: 10rem;
    }
}

@media (max-width: 600px) {
    .designpage h1 {
        font-size: 5rem;
    }
}

@media (max-width: 450px) {
    .designpage h1 {
        margin: 50px 4vw -50px 4vw;
    }
}

.designpage header {
    height: auto;
    margin-bottom: 100px;
}

/* ----------------------------------------------------------- */
/* Overview section (designpages)*/
.designpage section {
    margin: 0 15vw 100px 15vw;
}

@media (max-width: 450px) {
    .designpage section {
        margin: 0 5vw 100px 5vw;
    }
}

/* ----------------------------------------------------------- */
/* Art sections (designpages)*/
.dSection {
    padding: 50px 15vw;
    display: flex;
    gap: 100px;
}
@media (max-width: 1100px) {
    .dSection {
        flex-wrap: wrap;
    }
}
@media (max-width: 450px) {
    .dSection {
        padding: 50px 5vw;
    }
}

.dSection h2 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.dSection p:nth-of-type(1) {
    font-size: 1.5rem;
}

.dSection img {
    max-width: 400px;
    height: auto;
    object-fit: contain;
    align-self: center;
    margin: 0 auto 0 auto;
}
@media (max-width: 600px) {
    .dSection img {
        max-width: 100%;
    }
}

.left {
    flex-direction: row;
    background-color: var(--lightBlue);
}

.right {
    flex-direction: row-reverse;
}

.dSection > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 1100px) {
    .dSection > div {
        margin-bottom: -50px;
    }
}

/* === Slideshow styling === */
.slideshow {
  position: relative;
  max-width: 400px;
  margin: auto;
}

.slides img {
  display: none;
}

.slides img.active {
  display: block;
}

/* Arrow styling */
.slideshow .prev,
.slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--black);
  background-color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  user-select: none;
}

.slideshow .prev:hover,
.slideshow .next:hover {
  background-color: rgba(255,255,255,1);
}

.slideshow .prev {
  left: 10px;
}

.slideshow .next {
  right: 10px;
}

/* Show arrows on hover */
.slideshow:hover .prev,
.slideshow:hover .next {
  opacity: 1;
}

/* Dot navigation */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 4px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dots .dot.active {
  background-color: var(--darkBlue, #333);
}



/* .histoCard {
    padding: 50px 15vw;
    display: flex;
    gap: 100px;
    height: 100vh;
    width: auto; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--greyLight);
}
@media (max-width: 750px) {
    .histoCard {
        height: 75vh;
    }
}
@media (max-width: 500px) {
    .histoCard {
        height: 50vh;
    }
}

.histoCardAlt {
    background-color: var(--greyLighter);
}

.histoCard img {
  width: auto;
  max-height: 100%;
  object-fit: contain;
} */