@font-face {
  font-family: "Futura";
  src: url("../fonts/futura-medium.otf");
}

/* --- Navbar --- */
:root { --bulma-navbar-height: 4rem; }
.navbar { font-family: Futura; }
.navbar .logo { font-size: 1.5rem; }

/* --- Layout --- */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  font-family: Futura;
}

#wrapper {
  flex: 1;
}

/* --- Logo --- */
.logo *    { 
  display: inline-block; 
  letter-spacing: 0.2em;
}
.logo .fwd { transform: scale(1, 1); }
.logo .rev { transform: scale(-1, 1); }
.logo .div { transform: scale(1, 1.5); }
.logo .div {
  margin-left: -0.1em;
  margin-right: -0.2em;
}
.spin {
  animation: rotate-y 3s linear;
  transform-style: preserve-3d;
}

@keyframes rotate-y {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* --- Business card --- */
.business-card {
  margin: 0 auto;
  text-align: center ;
  padding: 4em;
  max-width: 800px;
  min-width: 30em;
}

.business-card > .logo { 
  font-size: 5em;
  height: 2em;
}

.business-card > .spacer { 
  height: 8em; 
}

.business-card > .small {
  margin: 0 auto;
  width: 14em;   /* This mirrors exactly the width of the logo */
  display: flex;
  justify-content: space-between;
  font-size: 1.75em;
  height: 1.75em;
}

@media only screen and (max-width: 1024px) {
  .business-card { font-size: 10pt; }
}

@media only screen and (max-width: 800px) {
  .business-card { font-size: 8pt; }
}

@media only screen and (max-width: 600px) {
  .business-card { font-size: 6pt; }
}

@media only screen and (max-width: 500px) {
  .business-card { font-size: 5pt; }
}

/* --- Modals --- */
.cryptedmail:after {
  content: attr(data-name) "@" attr(data-domain) "." attr(data-tld); 
  color: #000;
}

.footer a {
  color: #000;
  text-decoration: underline;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: opacity 200ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.modal-card {
  width: 80%;
}

.modal-background {
  cursor: default;
}
