@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@100');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --font1: "Alegreya Sans", sans-serif;
  --font2: "DM Sans", sans-serif;
  --bgcolor: #232323;
  --textcolor: #231f20;
  --red: #e40;
  --blue: cyan;
  --white: #eee;
  --yellow: #B8DD16;
  --gray: #232323;
  --silver: #7b7979;
  --lightgray: #dedede;
  --black: #000;
  --blackt: rgb(0,0,0,0.5);
}

body { background-color: var(--bgcolor);
 color: var(--yellow);
 text-align: center;
 padding-top: 4em;
 font-family: var(--font1);
 user-select: none;
 animation: fadeInAnimation ease 1s forwards;
 animation-iteration-count: 1;
 height: 100%;
 margin: 0;
 will-change: opacity;
}

.bg {
 height: 100vh;
 width: 100vw;
 z-index: -1;
 position: fixed;
 top: 0; left: 0;
 background-position: center;
 background-repeat: no-repeat;
 background-size: cover;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.note {
	position: fixed;
	top: 0; left: 0;
	color: var(--black);
	font-family: var(--font2);
	font-size: calc(0.4em + 0.4vw);
	padding: 0 0.4vw 0 0.4vw;
	border-radius: 0 1vw 1vw 0;
	background-color: var(--white);
	opacity: 0.5;
}

hr { height: 1px; width: 100%; border: 0; color: #fff; background: #fff; }
a.silver.fa-solid { color: var(--yellow); }
a.blue.fa-solid { color: var(--blue); }

span { display: block; }
a { text-decoration: none; color: var(--blue); }
a:hover { color: #eee; }
a.fa-solid, a.fa-brands, span.fa-brands { color: var(--white); }

@media (orientation: portrait) {
  .grow {
    writing-mode: vertical-rl;
    height: fit-content;
  }
  .tooltip span.fa-solid { transform: rotate(0deg); }
}

a.fa-solid:hover, a.fa-brands:hover, span.fa-brands:hover { color: deepskyblue;}

.container {
/*  position: fixed; */
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0; left: 0;
  margin: 0; padding: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.flip-content a {
	position: relative;
	top: -5em;
	display: block;
	background-color: #000;
	opacity: .7;
	width: 5em;
	margin: auto;
}

/* Our business card */
.flip-card {
  position: relative;
  display: flex;
  margin: 0 auto;
	perspective: clamp(20rem, 60vw, 130rem);
  aspect-ratio: 16/6;
  z-index: 50;
  width: clamp(16rem, 60vw, 130rem);
  max-width: 2880px;
  max-height:1080px;
  margin-bottom: 160px;
}

@media (orientation: portrait) {
 .flip-card {
   transform: scale(1.4);
 }
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(-180deg);
  cursor: help;
}

.flip-card-inner { position: relative;
  width: 100%; height: 100%;
  transition: transform 1s; transform-style: preserve-3d;
  box-shadow: 0 0.5em 1.5em #232323;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--gray);
}

/* Setup both sides */
.flip-card-front, .flip-card-back {
 position: absolute;
 width: 100%;
 height: 100%;
 backface-visibility: hidden;
 transform: rotateX(0deg);
 z-index: 50;
}

.line { height: 1px; background-color: var(--silver); width: 100%; }
#footer.line { background-color: var(--yellow); height: 1px; width: calc(100% + 2em); right: -2em; }

@media (orientation: portrait) {
#footer.line { height: 100%; width: 1px; }
}

/* Front side */
.flip-card-front { background-color: var(--textcolor); color: var(--white); z-index:2; }

#me { 
/*  font-size: 7vw; */
  font-size: clamp(2rem, 7vw, 15rem);
  line-height: 200%; color: var(--yellow);
  }

#job {
/*  font-size: 5vw; */
  font-size: clamp(1rem, 5vw, 10rem);
  color: var(--lightgray); padding-top: 2%;
  text-wrap: nowrap;
  }

.cursor {
	padding: 0;
	position: relative;
	float: right;
	right: 25%;
	width: fit-content;
	text-wrap: nowrap;
	animation: blink-cursor 1s steps(1,start) infinite;
	color: var(--yellow);
}

.note span.cursor { 
	left: 0;
	position: relative;
	color: #000;
}
@keyframes blink-cursor {
	50% {
		visibility: hidden;
		}
}

/* Back side */
.flip-card-back {
  background-color: var(--yellow);
  color: var(--black);
  transform: rotateY(-180deg);
  }

#logo img { border-radius: 50%; width: 18%; padding: 1%; }
#no, #em {
    font-size: clamp(1rem, 4vw, 4rem);
    color: var(--textcolor);
    }
#no {
    position: relative;
    text-align: center;
    }
p { padding-right: 1em; }

.grow {
  border-radius: 0 2em 0 0;
  width: fit-content;
  position: fixed;
  bottom: 0; left: 0;
  text-align: center;
  transition: 1s linear;
  user-select: none;
  background-color: rgba(35,35,35,0.5);
  z-index: 20;
  padding: 0.5em 0.5em 0 0;
}

/* FOOTER */
#copy {
  position: fixed;
  right: 0; bottom: 0;
  background-color: rgb(0, 0, 0, 0.6);
  border-radius: 1em 0 0 1em;
  font-family: var(--font2);
  font-size: calc(0.7vw + 0.7vh);
  font-weight: 400;
  color: var(--lightgray); line-height: 1.5em;
  text-align: right;
  text-shadow:
  1px 1px 0 #000,
  -1px 1px 0 #000,
  1px -1px 0 #000,
  -1px -1px 0 #000,
  1px 1px 2px #232323,
  -1px 1px 2px #232323,
  1px -1px 2px #232323,
  -1px -1px 2px #232323;
  z-index:10;
  opacity: 0.5;
}

#copy:hover {
  opacity: 1;
}

#copycontent { padding: 0.5em; z-index: 10; }

@media (orientation: portrait) {
  #copy {
    writing-mode: vertical-rl; bottom: 0;
    border-radius: 1em 0 0 0;
  }
  #copycontent { padding: 1em 0.5em 0.5em 0.5em; }
}

#myloc { display: inline-block; z-index:50; color: var(--red); }
.flag { color: var(--red); z-index:50; }

.description {
  display: inline;
  font-size: smaller;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px var(--black), -1px -1px 1px var(--silver), 1px -1px 1px var(--black), -1px 1px 1px var(--black), 1px 0 1px var(--black), -1px 0 1px var(--black);
  color: var(--yellow);
}

#links { padding: 0.5em; position: relative; }
#links a { font-size: clamp(1.5em, 1.5vw, 5rem); }

.privacy
{
  font-size: 0.7vmax;
  padding: 0.2vmax;
  bottom: 0;
  position: fixed;
}

.mini { font-size: smaller; }

.ribbon {
  position: absolute;
  right: -5px; top: -5px;
  z-index: 1;
  overflow: hidden;
  width: 75px; height: 75px;
  text-align: right;
  animation: fadeIn 1s linear;
}

@keyframes fadeIn {
  0% { right: -20px; top: -20px; }
}

.ribbon span {
  font-size: 0.6em;
  font-weight: bold;
  color: var(--black);
  text-transform: uppercase;
  text-align: center;
  line-height: 2.1em;
  transform: rotate(45deg);
  width: 100px;
  display: block;
  background: linear-gradient(var(--white) 0%, var(--yellow) 80%);
  box-shadow: 0 3px 10px -5px var(--white);
  position: absolute;
  top: 19px; right: -21px;
}
.ribbon span::before {
  content: "";
  position: absolute; left: 0px; top: 100%;
  z-index: -1;
  border-left: 3px solid var(--black);
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: 3px solid var(--black);
}
.ribbon span::after {
  content: "";
  position: absolute; right: 0px; top: 100%;
  z-index: -1;
  border-left: 3px solid transparent;
  border-right: 3px solid var(--black);
  border-bottom: 3px solid transparent;
  border-top: 3px solid var(--black);
}

/* SLIDES */

#expandable {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2vmax; height: 3vmin;
    background-color: rgb(0, 0, 0, 0.9);
    border-radius: 0 0 2em 2em;
    text-align: center;
    transition: all 1.5s ease-in;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    z-index: 100;
}

#expandable.active {
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    transform: none;
    z-index: 100;
}

button {
    display: flex;
    flex-wrap: nowrap;
    width: fit-content;
    height: fit-content;
    font-size: clamp(1rem, 3vw, 6rem);
}

#expandable.active .buttons {
    display: flex;
    width: fit-content;
    text-align: center;
    left: 50%;
}

#content {
    margin-top: 40px;
    padding: 20px;
    color: #fff;
    z-index: 100;
}

#closeButton {
    bottom: 10px;
    left: 50%;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    cursor: pointer;
    aspect-ratio: 1/1;
    border-radius: 50%;
}

.tooltip {
  text-align: justify;
  padding: 0 2em;
  top: -300px;
  width: inherit;
  height: fit-content;
  font-family: var(--font2);
  font-size: calc(1.1vw + 1.1vh);
  font-weight: 200;
  color: var(--white);
  opacity: 1;
  display: block;
  transition: linear 1.2s;
  text-shadow: 1px 1px 1px #000;
  box-sizing: border-box;
}

.tooltip p {
  line-height: 120%;
  text-wrap: wrap;
  display: block;
}

.buttons {
  position: fixed;
  bottom: 1em;
  gap: 1em;
  transform: translateX(-50%);
  transition: linear 1.5s;
  z-index: 100;
  display: none;
}

#prev, #next, #rev, #fwd {
 display: flex;
 justify-content: space-evenly;
 flex-wrap: nowrap;
 position: relative;
 background-color: rgb(184, 221, 22);
 border-radius: 0.2em;
 border: 0;
 cursor: pointer;
}

#closeButton:hover, #prev:hover, #next:hover, #rev:hover, #fwd:hover {
	filter: saturate(0%);
}
