@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400@1&display=swap');

/* Variables 
TODO: modify variables to make website more spiffy*/
:root {
    --font-family: "Playfair Display", sans-serf;
    --secondary-font-family: "Montserrat", sans-serf;
    --normal-font: 500;
    --bold-font: 700;
    --bolder-font: 900;
    --bg-color: #fff0ea;
    --secondary-bg-color: #f4cccc;
    --primary-color: #cc0000;
    --secondary-color: #e21f87;
    --primary-shadow: #8b8eaf;
    --secondary-shadow: #a17a69;
    --bottom-margin: 0.5rem;
    --bottom-margin-2: 2rem;
    --line-height: 1.7rem;
    --transition: 0.3s;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* CSS Resets/Defaults */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

main {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-family);
    height: 100%;
    width: 100%;
    margin: auto;
}

nav {
    position: fixed;
    width: 100%;
    align-self: flex-start;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3.5rem;
    background-color: var(--secondary-bg-color);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 1);
}

.hero-image-holder.mm-logo-hero {
    transform: translateX(105px);


  }

@media screen and (max-width: 950px) {
    .hero-image-holder.mm-logo-hero {
        transform: translateX(80px);
    }
    
}

nav h1 {
    color: var(--primary-color);
}

nav a {
    color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 1.9rem;
    font-family: var(--secondary-font-family);
}

nav ul li {
    font-weight: var(--bold-font);
}

.burger-menu {
    color: var(--primary-color);
    font-size: 2rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    display: none;
}

.title {
    font-size: 7em;
    margin-bottom: var(--bottom-margin-2);
    color: var(--primary-color);
}

.button {
    appearance: none;
    background:transparent;
    border: 1px solid;
    border-radius: 5px;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    padding: 20px 80px;
    font-size: 16px;
    font-family: var(--secondary-font-family);
}

.button:hover {
    background: var(--secondary-color);
    color: #fff;
}

/*Hero menu CSS*/
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    height: 100vh;
    background: var(--bg-color);
    background-size: contain;
    margin-top: 4rem;
}

.hero img {
    height: auto;
    width: 100%;
  }

.hero-image-holder
{
    width: 30%;
}

.hero-text {
    width: 30%;
    text-align: center;
    padding: 0.625rem;
    border-radius: 6px;
    /*box-shadow: 0px 2px 15px 2px var(--primary-shadow);*/
}

.hero-title {
    font-size: 5em;
    margin-bottom: var(--bottom-margin);
    color: var(--primary-color);
}

.hero-subtitle {
    font-family: var(--secondary-font-family);
    line-height: var(--line-height);
    padding: 0.3rem 0;
}

/*About section CSS*/
.about {
    display: flex;
    padding: 1rem 6rem;
    margin: 3rem;
    gap: 2rem;
}

.about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-header img {
    height: 17rem;
    width: 17rem;
    border-radius: 50%;
  }

.about-header h2 {
    text-align: center;
    font-family: var(--secondary-font-family);
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: -3rem;
}

.about-header h1{
    text-align: center;
    font-family: var(--font-family);
    font-weight: var(--bold-font);
    color: var(--secondary-color);
    font-size: 8em;
}

.about .funni {
    color: black;
}

/*Resume section CSS*/
.resume {
    text-align: center;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    background-size: cover;
    justify-content: center;
}

.resume hr {
    width: 12%;
    border: 1px solid var(--primary-color);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.about-text {
    line-height: var(--line-height);
    padding: 0.4rem;
    width: 50%;
}

.buttonrow {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-evenly;
    padding: 2rem;
}

.spaced {
    margin-left: 2rem;
    margin-right: 2rem;
}

/*Gallery section CSS*/
.gallery {
    max-width: 68.75rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
}

.gallery-header {
    margin-bottom: 1rem;
}

.gallery-wrapper img {
    padding: 1.25rem;
    cursor: pointer;
  }

.icon {
    width: 22rem;
    height: 22rem;
}

.icon-card {
    background-color: #fff;
    border-radius: 1px;
    box-shadow: 0 3px 10px var(--secondary-shadow);
    padding: 20px;
    margin: 1px;
}

/*Contact section CSS*/
.contact {
    background-size: cover;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    gap: 3rem;
    padding: 40px;
}

.contact-img {
    max-width: 50%;
    height: auto;
    padding: 40px;
}

.contact hr {
    width: 50%;
    border: 1px solid var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.contact h1 {
    font-family: var(--font-family);
}

.contact h2 {
    font-family: var(--secondary-font-family);
    font-weight: var(--bold-font);
    color: var(--secondary-color);
}

.contact-form-container {
    width: fit-content;
}

.contact-form {
    margin-bottom: 2rem;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--secondary-color);
    font-family: var(--font-family);
    opacity: 1; /* Firefox */
  }

.input-field {
    background: transparent;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.875rem;
    outline: none;
  }

  .field-wrapper {
    display: flex;
    flex-direction: row;
  }

  .form-control {
    display: flex;
    width: 100%;
  }

/* Footer section CSS*/
footer {
    background-color: var(--primary-color);
    margin: 0 0 -50px 0;
}

.footer-text {
    display: flex;
    justify-content: space-between;
    padding: 3%;
    font-size: 1.2rem;
    font-family: var(--secondary-font-family);
    color: white;
    margin-right: 0;
    float: right;
    vertical-align: middle;
}

.footer-text a {
    color: white;
}

.website-name {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 2.5rem;
}

.about-img {
    height: 17rem;
    width: 17rem;
    border-radius: 50%;
}

.socials {
    display: inline-block;
    padding: 2%;
}

.smicon {
    width: 4rem;
    height: 4rem;
}

.copy {
    text-align: right;
}

/* Style for modal */
.modal {
    display: none;
    justify-content: center;
    position: fixed;
    z-index: 2;
    width: 100%;
    top: 50vh;
    left: 50vw;
    overflow: auto;
    transform: translate(-50%, -50%);
}

.modalBackground {
    display: none;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    background-color: rgba(0,0,0,0.9);
}

/* Style for modal content */
.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Style for slides */
.mySlides {
    display: none;
    text-align: center;
    margin: auto;
}

/* Style for caption text */
.caption {
    color: white;
    padding: 10px;
    background: rgba(0,0,0,0.5);
}

/* Style for navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

@media screen and (max-width: 425px) {
    .hero {
        flex-direction: row;
    }

    .hero-image-holder.mm-logo-hero {
        display: none;
    }

    .hero-img {
        display: none;
    }
    
    .about {
        padding: 0;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1.5rem 1rem;
        flex-direction: column;
        position: sticky;
    }

    section {
        height: fit-content;
        flex-wrap: wrap;
    }

    .logo-img {
        display: none;
    }

    .hero {
        flex-direction: column;
        gap: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 30px;
        height: fit-content;
        margin-top: 0;
      }

    .hero-title {
        font-size: 4em;
    }

    .hero-image-holder.mm-logo-hero {
    display: none;
    }

    .hero-text {
        width: 100%;
    }

    .hero-image-holder {
        width: 100%;
        display: contents;
    }

    .mySlides {
        flex-direction: column;
    }
    
    .hero img {
        height: auto;
        width: 50%;
    }
    
    .bio {
    margin-top: -7rem;
    width: 20.5rem;
    }

    .about {
        flex-direction: column-reverse;
        align-content: center;
        padding: 0;
    }

    .about .about-header {
        text-align: center;
    }
    
    .about .about-text {
        width: 100%;
    }

    .resume {
        text-align: center;
        flex-direction: column;
        justify-content: center;
    }
    .buttonrow {
        padding: 0;
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .contact-img {
        max-width: 100%;
    }

    .footer-gallery {
        display: flex;
        justify-content: space-between;
    }

    .smicon {
        width: 3rem;
        height: 3rem;
    }
}



/* Game page CSS!!*/
.flip-container {
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -o-perspective: 1000;
    perspective: 1000;
    min-height: 120px;
    cursor: pointer;
}

.front,
.back {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: 0.6s;
    -webkit-transform-style: preserve-3d;
    -moz-transition: 0.6s;
    -moz-transform-style: preserve-3d;
    -o-transition: 0.6s;
    -o-transform-style: preserve-3d;
    -ms-transition: 0.6s;
    -ms-transform-style: preserve-3d;
    transition: 0.6s;
    transform-style: preserve-3d;
    top: 0;
    left: 0;
    width: 100%;
}

.back {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    position: absolute;
}

.matched{
    opacity: 0.3;
}
.game {
    font-family: "Comic Neue", sans-serif;
}

.game p {
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 5px;
}

.game .title {
    display: flex;
    justify-content: center;
}

/* Animations CSS */
.flip-container.flipped .back {
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
}
.flip-container.flipped .front {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
}