/* site-style */

body {
	background-color: black;
}

a {
	color: rgb(255,160,0);
}

a:hover {
	color: rgb(191, 87,0);
}

a:visited {
	color: rgb(220,125,0);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span {
	color: white !important;
}

/* header-style */

#top {
	margin-bottom:-30px;
}

#appoint {
	padding-top:20px;
}

.nav-tabs {
	border-bottom: none;
}

.nav li {
	display: inline;
	font-size: 28px;
}

#top h1 {
    font-family: 'EB Garamond', Garamond, 'Baskerville', 'Times New Roman', serif;
    font-size: 60px;
    font-weight: 900;
}

@media (max-width: 991px) {
  #top h1 { text-align: left; }
  .nav-tabs { display: flex; flex-wrap: wrap; justify-content: right; }
  .nav-tabs > li { float: none; display: inline-block; }
  .nav li { font-size: 24px; }
  .jumbotron { font-size: 16px; }
  .jumbotron p { font-size: 22px; }
}

@media (max-width: 767px) {
  .profile-thumbnail { margin: 0 auto 2rem; max-width: 260px; }
  #top h1 { text-align: left; } 
  .nav li { font-size: 22px; }
  .jumbotron { font-size: 16px; }
  .jumbotron p { font-size: 22px; }
  .profile-thumbnail + h3 { text-align: center; }
  .online-presence { max-width: 22rem; margin-left: auto; margin-right: auto; }
  .presence-link { justify-content: center; }
}

@media (max-width: 647px) { 
  #top h1 { font-size: 50px; text-align: left; } 
}

@media (max-width: 561px), (min-resolution: 2dppx) { 
  #top h1 { font-size: 42px; font-weight: 700; text-align: left; } 
  .nav li { font-size: 20px; }
  .jumbotron { font-size: 17px; }
  .jumbotron p { font-size: 25px; }
  body { font-size: 16px; }
}

/* dropdown-menu */

.dropdown-menu .sub-menu {
    left: 100%;
    position: absolute;
    top: 0;
    visibility: hidden;
    margin-top: -1px;
}

.dropdown-menu li:hover .sub-menu {
    visibility: visible;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-tabs .dropdown-menu,
.nav-pills .dropdown-menu,
.navbar .dropdown-menu {
    margin-top: 0;
}

/* main */

#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
	font-weight: bold;
	text-shadow: 0px 0px 3px #000;
}

#main h4 {
	font-size:20px;
}

#main p,ol {
	text-shadow: 1px 1px 3px #000;
	margin-top: .2em;
	margin-bottom: .5em;
}

#main a {
	font-weight: bold;
	text-shadow: 0px 0px 3px #000;
}

#main span {
	text-shadow: 0px 0px 3px #000;
}

.jumbotron {
	background-image:url(../fotos/duoduo.jpg);
	background-repeat: no-repeat;
	background-size: cover;
}

.jumbotron #txtbg {
	background-color: rgba(50,50,50,.85);
}

#main .IN-widget a,
#main .IN-widget span {
	color: white !important;
	text-shadow: 0px 0px 3px #000;
}

/* footer-style */

footer img {
	filter: invert(100%);
	-webkit-filter: invert(100%);
}

/* YouTube creators grid */
#yt-creators.yt-grid,
#yt-creators .yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 14px;
  align-items: start;
}

/* toolbar sits above grid */
.yt-toolbar {
  margin: 8px 0 12px;
  display: flex;
  gap: 8px;
}
.yt-toolbar button {
  background: #333;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.yt-toolbar button:hover { background: #3c3c3c; }

.yt-block {
  background: rgba(30,30,30,0.9);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
}

/* details/summary styling */
.yt-block summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  margin: -4px -6px 6px -6px;
  padding: 6px 6px 6px 6px;
}
.yt-block summary::-webkit-details-marker { display: none; }
.yt-block summary:before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  transform: rotate(0deg);
  transition: transform 0.1s ease-in;
}
.yt-block[open] summary:before { transform: rotate(90deg); }
.yt-block .yt-count { opacity: 0.8; font-weight: 400; }

.yt-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yt-block li { margin: 0.1rem 0; }

.yt-block a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* review index page */

#review-list li,
#review-list li,
#review-list a {
	font-family: monospace;
	font-size: 16px;
}

#review-content h1 {
	font-size: 30px;
}
 
.thumbnail {
    position:relative;
    overflow:hidden;
    background-color: #222;;
}
 
.caption {
    position:absolute;
    top:0;
    right:0;
    background:rgba(90, 90, 90, 0.75);
    width:100%;
    height:100%;
    padding:2%;
    display: none;
    text-align: left;
    color:#fff !important;
    z-index:2;
}

/* profile link styles handled above (no legacy #facelogo swap) */

/* minimal support for mobile-friendly thumbnail hover swap */
.profile-thumbnail { max-width: 220px; }
.profile-link { display: block; position: relative; overflow: hidden; border-radius: 50%; aspect-ratio: 1 / 1; }
.profile-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-link .image-hover { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; border-radius: 50%; }
.profile-link:hover .image-hover, .profile-link:focus .image-hover { opacity: 1; }
.profile-link:hover .image-default, .profile-link:focus .image-default { opacity: 0; }

@media (hover: none) {
  .profile-link .image-hover { opacity: 1; }
  .profile-link .image-default { opacity: 0; }
}

@media (orientation: portrait) and (max-width: 991px) {
  .profile-thumbnail { max-width: 70vw; }
}

/* right-justify email in footer */
#email { text-align: right; }

/* basic list spacing for online presence */
.online-presence { list-style: none; margin: 1rem 0 0; padding: 0; }
.online-presence li + li { margin-top: 0.5rem; }

/* publications footnote */
.publication-footnote { font-size: 80%; opacity: 0.9; }

/* small logo sprites for presence links */
.presence-link { display: flex; align-items: center; gap: 0.5rem; }
.presence-link .presence-text { flex: 1; }
.presence-icon { width: 1.6rem; height: 1.6rem; border-radius: 0.4rem; color: #fff; font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; }
.presence-link-linkedin .presence-icon { background: #0a66c2; }
.presence-link-google-scholar .presence-icon { background: #673ab7; }
.presence-link-slides .presence-icon { background: #f8245c; color: #ffffff; font-weight: 600; }
.presence-link-youtube .presence-icon { background: #ff0000; }
.presence-link-instructables .presence-icon { background: #fbd32d; color: #111; }
.presence-link-thingiverse .presence-icon { background: #0094ff; }
.presence-link-movie .presence-icon { background: #1a1f36; font-size: 0.8rem; }
.presence-link-newgrounds .presence-icon { background: #ff6b00; }
.presence-link-github .presence-icon { background: #171515; }

/* bring back masked Octocat sprite */
.presence-link-github .presence-icon::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23fff" d="M8 0C3.58 0 0 3.58 0 8a8 8 0 005.47 7.59c.4.08.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.5 7.5 0 012-.27 7.5 7.5 0 012 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.19 0 .21.15.46.55.38A8 8 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23fff" d="M8 0C3.58 0 0 3.58 0 8a8 8 0 005.47 7.59c.4.08.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.5 7.5 0 012-.27 7.5 7.5 0 012 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.19 0 .21.15.46.55.38A8 8 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>') center/contain no-repeat;
  background-color: #fff;
}

.presence-link-youtube .presence-icon {
  background: transparent;
  background-image: url('https://www.youtube.com/s/desktop/ba50859b/img/favicon_32x32.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.presence-link-google-scholar .presence-icon {
  background: transparent;
  background-image: url('https://scholar.google.com/favicon.ico');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.presence-link-movie .presence-icon {
  background: transparent;
  background-image: url('https://www.themoviedb.org/favicon.ico');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

/* use Slides.com favicon as icon (fallback to letters) */
.presence-link-slides .presence-icon {
  background: transparent;
  background-image: url('https://slides.com/favicon.ico');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}
