/*!
Theme Name: AM
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: AM
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

AM is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
- Normalize
- Box sizing
# Base
- Typography
- Elements
- Links
- Forms
## Layouts
# Components
- Navigation
- Posts and pages
- Comments
- Widgets
- Media
- Captions
- Galleries
# plugins
- Jetpack infinite scroll
# Utilities
- Accessibility
- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/


/*--------------------------------------------------------------
#Fonts
--------------------------------------------------------------*/

.home {
     -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;
}

body {
margin: 0;
padding: 0;
height: 100%;
color: #6f6f6f;
background: white;
font-family: "DM Mono", monospace;
font-weight: 400;
font-style: normal;
}

.overlay {
    background: white;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}

.overlay-video{
position: absolute;
right: 0;
bottom: 0;
top:0;
right:0;
width: 100%;
height: 100%;
background-size: 100% 100%;
background-color: black; /* in case the video doesn't fit the whole page*/
background-position: center center;
background-size: cover;
object-fit: cover; /*cover video background */
z-index: -100;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}

.tippy-box[data-theme~="custom"] {
text-align: center;
font-size: 9pt;
border-radius: 0;
padding: 10px;
}
.hex {
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
background: red;
width: 120px;
height: 139px;
position: absolute;
top: 213px;
left: 420px;
z-index: 9999999;
opacity: 0.5;
}

#introVid {
position: absolute;
right: 0;
bottom: 0;
top:0;
width: 100%;
height: 100%;
background-size: 100% 100%;
background-position: center center;
background-size: contain;
background-color: white;
display: none;
object-fit: cover; /*cover video background */
z-index:0;
opacity: 1;
}

#profileVid {
opacity: 0.15;
}

.home h1, .contact {
font-size: 3.6em;
margin: 0;
padding: 0;
font-family: "DM Mono", monospace;
font-weight: 500;
font-style: normal;
}
h1 {
font-size: 2.6em;
margin: 0 0 20px 0;
padding: 0;
}
h2 {
font-size: 1.6em;
margin: 10px 0;
font-weight: 400;
color: #676767;
font-family: "DM Mono", monospace;
font-weight: 300;
font-style: normal;
} 
h3 {
font-size: 1.4em;
font-weight: 300;
font-style: normal;
margin: 20px 0 0 0;   
} 

h2.skills {
text-align: center;
}

p {
line-height: 1.4em;
font-size: 0.8em;
}

.dark-theme,.dark-theme h2,.dark-theme a {
color: white;
}



/*
.downMove {
animation: downMove 2s ease 0s 1 normal forwards;
opacity: 1;
}
*/



.skills-container {
flex-grow: 1;
flex-direction: row;
flex-wrap: nowrap;
display: flex;
justify-content: space-around;
}
.skills p {
text-align: center;
}
.skills-section {
width: 30%;
padding: 0 20px;
}

@keyframes downMove {
0% {
animation-timing-function: ease-in;
transform: translateY(-250px);
}

38% {
animation-timing-function: ease-out;
transform: translateY(0);
}

55% {
animation-timing-function: ease-in;
transform: translateY(-65px);
}

72% {
animation-timing-function: ease-out;
transform: translateY(0);
}

81% {
animation-timing-function: ease-in;
transform: translateY(-28px);
}

90% {
animation-timing-function: ease-out;
transform: translateY(0);
}

95% {
animation-timing-function: ease-in;
transform: translateY(-8px);
}

100% {
animation-timing-function: ease-out;
transform: translateY(0);
}
}


.sans {
font-family: Arial, Helvetica, sans-serif;
text-indent: -999999px;
padding: 5px;
margin: 0 20px;
display: block;
}

a {
font-weight: bold;
color: #000000;
}
a:hover {
text-decoration: none;
}

#fp-nav ul li a span, .fp-slidesNav ul li a span {
background: silver;
}
#fp-nav.right {
right: 26px;
}

.nav-container {
padding: 0;
margin: 0;
}

.navbar .menu-items {
display: flex;
}

.navbar .nav-container li {
list-style: none;
}

.navbar .nav-container a {
text-decoration: none;
color: #6f6f6f;
font-weight: 500;
font-size: 1.2rem;
padding: 0.7rem;
}

.navbar .nav-container a:hover{
font-weight: bolder;
}

#nav-icon {
width: 40px;
height: 44px;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
cursor: pointer;
border: 0;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
background: rgba(255, 255, 255, 0.7);
position: fixed;
z-index: 999;
top: 20px;
right: 20px;
box-sizing: border-box;
}


#nav-icon span {
display: block;
position: absolute;
height: 3px;
width: 25px;
background: #000;
opacity: 1;
left: 0;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in-out;
-moz-transition: .25s ease-in-out;
-o-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}


/* Icon 3 */

#nav-icon span:nth-child(1) {
top: 14px;
left: 8px;
}

#nav-icon span:nth-child(2),#nav-icon span:nth-child(3) {
top: 21px;
left: 8px
}

#nav-icon span:nth-child(4) {
top: 28px;
left: 8px;
}

#nav-icon.open span:nth-child(1) {
top: 21px;
width: 0%;
left: 50%;
}

#nav-icon.open span:nth-child(2) {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
top: 18px;
width: 0%;
left: 50%;
}




.menu-items {
height: 100vh;
width: 100%;
transform: translateX(-100%); 
transition: transform 0.3s ease-in-out; 
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(5px);
position: fixed;
top: 0;
z-index: 998;
}

.menu-items ul {
padding: 0;
margin: 0;
}

.menu-items li {
font-size: 1.5rem;
font-weight: 500;
padding: 0;
margin: 0;
}


.menu-items.open {
transform: translateX(0); 
}


.padder {
max-width: 800px;
width: 100%;
margin: 0 auto;
padding: 5%;
}
.padder-portfolio {
width: 100%;
margin: 0 auto;
}

/* weird button fix */
.description {
  position: relative;
}


.padder p, ul li {
font-size: 0.8em;
padding: 0 0 0.5em 0;
line-height: 1.6em;
}
.intro-logo,.menu-logo {
max-width: 120px;
margin: 10px auto;
}

.logo-container {
display: flex;
justify-content: center;
height: 120px;
align-items: center;
}
.portfolio-logo {
max-width: 150px;
margin: 20px 0;
}
.portfolio-img {
max-width: 200px;
width: 100%;
}

.down {
background-image: url(img/down-arrow.png);
background-position: center;
background-repeat: no-repeat;
background-size: 30px 30px;
width: 40px;
height: 40px;
border: none;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 9999px;
display: block;
margin: 20px auto 0 auto;
}
.down:active {
transform: translateY(4px);
}
.down-dark {
background-color: #ededed;
}

.fp-controlArrow.fp-prev {
top: 120px;
left: 20px;
background-image: url(img/left-arrow.png);
background-position: center;
background-repeat: no-repeat;
background-size: 30px 30px;
width: 40px;
height: 40px;
border: none;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 9999px;
}
.fp-controlArrow.fp-prev:active {
transform: translateX(-4px);
}
.fp-controlArrow.fp-next {
top: 120px;
left: 265px;
background-image: url(img/right-arrow.png);
background-position: center;
background-repeat: no-repeat;
background-size: 30px 30px;
width: 40px;
height: 40px;
border: none;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 9999px;
}
.fp-controlArrow.fp-next:active {
transform: translateX(4px);
}

.flex-c {
display: flex;
justify-content: center;
align-items: center;
}
.baseline {
    align-items: baseline;
}
.profile-pic {
width: 250px;
height: 250px;
border-radius: 9999px;
background-color: silver;
background-image: url('img/profile-pic.jpg');
background-size: 250px 250px;
margin: 0 20px 0 0;
-webkit-filter: grayscale(100%);
}
.profile-pic:hover {
-webkit-filter: none;
}
.profile {
text-align: left;
flex: 2;
}

/* Steam */

.steam svg {
filter: blur(25px);
overflow: visible;
pointer-events: none;
}



.steam {
pointer-events: none;
align-items: center;
display: flex;
flex-direction: column;
height: 200px;
justify-content: center;
width: 200px;
margin: auto;
}


.coffee {
margin: 0 20px 0 30px;
max-width: 200px;
-webkit-filter: grayscale(100%);
}
.coffee:hover {
-webkit-filter: none; 
}

.brew svg {
display: flex;
flex-direction: column;
justify-content: center;
}


.steam-cloud {
fill: none;
stroke:#fff;
stroke-width: 60;
stroke-linecap: round;
}

.cloud-1 {
stroke: white;
opacity: 0%;
stroke-dasharray: 284;
stroke-dashoffset: 0;
animation: steamCloud 6s ease-out infinite;
}

.cloud-2 {
stroke: white;
opacity: 0%;
stroke-dasharray: 284;
stroke-dashoffset: 0;
animation: steamCloud 6s ease-out 200ms infinite;
}


.cloud-3 {
stroke: white;
opacity: 0%;
stroke-dasharray: 284;
stroke-dashoffset: 0;
animation: steamCloud 6s ease-out 400ms infinite;
}





/* ANIMATION-KEYFRAMES */
@keyframes steamCloud {

0% {
stroke-dashoffset: 60;
opacity: 0%;
}

30% {
stroke-dashoffset: 284;
opacity: 12%;
}

80% {
stroke-dashoffset: 568;
opacity: 12%;
}

100% {
stroke-dashoffset: 568;
opacity: 0;
}
} 

.gal {
width: 100%;
max-width: 800px;
}
.gal-vert {
width: 100%;
max-width: 500px;
}


.section,
.slide{
background-size: cover !important;
position: relative;
}

/* Defining each section background and styles
* --------------------------------------- */
#motionhatch {
background: url('img/portfolio/motion-hatch-creative-coin.jpg') center no-repeat;
padding: 0;
}
#portfolio00 {
background: url('img/portfolio/icreate.jpg') center no-repeat;
padding: 0;
}
#portfolio01 {
background: url('img/portfolio/Eureka-science-and-discovery.jpg') center no-repeat;
padding: 0;
}
#portfolio02 {
background: url('img/portfolio/MUFC Player profiles_Bobby Charlton.jpg') center no-repeat;
padding: 0;
}
#portfolio03 {
background: url('img/portfolio/Royal-and-ancient-totems.jpg') center no-repeat;
padding: 0;
}
#portfolio04 {
background: url('img/portfolio/lawler-and-co.jpg') center no-repeat;
padding: 0;
}
#portfolio05 {
background: url('img/portfolio/W5-fireworks.jpg') center no-repeat;
padding: 0;
}
#portfolio06 {
background: url('img/portfolio/milton-keynes-museum-roman-coins.jpg') center no-repeat;
padding: 0;
}

/* Centered texts in each section
* --------------------------------------- */
.section{
text-align:center;
}

.description {
background-color: rgba(0, 0, 0, 0.7);
padding: 40px;
backdrop-filter: blur(10px);
position: absolute;
top: 0;
left: 0;
width: 240px;
height: 100%;
color: white;
}
.description a {
color: white;
}
.description h2 {
font-size: 1.2em;
color: white;
}

.linkedin {
display: block;
margin: 0 auto;
}
.linkedin img {
max-width: 40px;
}

.not-found {
    text-align: center;
    padding: 10% 5%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}
.nf-container {
  width: 250px;
  height: 250px;
  border-radius: 50%; /* This makes the container a circle */
  overflow: hidden; /* This hides the parts of the image that extend outside the circle */
  margin-bottom: 20px;
}
.nf-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This is the key property! It scales the image to fill the container without stretching, then crops the excess. */
}

/* blog stuff */
.posted-on {
font-size: 0.8em;
    margin-bottom: 40px;
    display: block;
}


/* Responsive */

@media (max-width: 800px) {
.padder {
width: auto;
}
.flex-c {
display: block;
}
.profile-pic, .profile {
text-align: center;
margin: 0 auto;
}
.profile-pic {
width: 200px;
height: 200px;
margin-bottom: 20px;
background-size: 200px 200px;
}
.desktop {
display: inline-block;
}
.mobile {
display: none;
}

.skills-container {
display: block;
}
.skills-section {
width: 100%;
padding: 0;
}
.skills-section ul {
list-style: none;
padding: 0;
margin: 0;
}
}

@media (max-width: 430px) {
h1,.contact {
font-size: 2.6em;
}
h2 {
font-size: 1.2em;
}
.description {
width: 100%;
height: 100%;
box-sizing: border-box;
backdrop-filter: blur(0);
padding: 40px 5% 5% 5%;
}

ul li {
padding: 0;
}
.desktop {
display: none;
}
.mobile {
display: inline-block;
}
.fp-controlArrow.fp-prev {
left: 20px;
top: 120px;
}
.fp-controlArrow.fp-next {
right: 20px;
top: 120px;
}
.profile-pic {
width: 180px;
height: 180px;
background-size: 180px 180px;
}

.baseline {
    align-items: center;
}

}