/*
Banner Video DMs: (1200, 420) px
*/

:root{
  --bg:rgb(255, 255, 255);
  --text:rgb(0, 0, 0);
  --muted:rgb(102, 102, 102);
  --accent: rgb(0, 0, 128);
}

@media (prefers-color-scheme: dark) {
    :root{
      --bg: rgb(30, 30, 30);
      --text: rgb(255, 255, 255);
      --muted:rgb(153, 153, 153);
      --accent: rgb(70, 122, 218);
    }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}

.site{
  max-width:var(--max-width);
  margin:0 auto;
  padding:18px;
}

.name{
  margin:0;
  font-size:34px;
  font-weight:700;
  letter-spacing: -0.5px;

  text-align: center;
}

.subtitle{
  margin-top:6px;
  color:var(--muted);
  font-weight:600;

  text-align: center;
}

.subtitle{
  text-decoration:none;
  margin:0 6px;
}

.logo {
  text-align: center;
}

.logo img {
  width: 100%;        /* allows shrinking on small screens */
  height: auto;       /* keeps aspect ratio */
  max-height: 256px;  /* never exceed 256px tall */
  max-width: 256px;   /* optional: prevents it from getting too wide */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.date{
  text-align: center;
}

.back{
  text-align: center;
}

.topics{
  text-align: center;
}

.links{
  text-align: center;
}

.awards{
  text-align: center;
}

.details{
  text-align: left;
}

.performance{
  text-align: left;
}

.graph {
  /* Make sure the container can shrink/grow */
  max-width: 100%;
  display: flex;
  justify-content: center; /* horizontal centering */
}

.graph img {
  display: block;      /* removes inline gap */
  height: auto;        /* keeps aspect ratio */
  border: 2px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  margin-bottom: 40px;
  width: 100%;
  max-width: 800px;
  height: auto;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(800px, max-content));
  gap: 3rem;
  justify-content: center;
}

.image-grid img {
  display: block;      /* removes inline gap */
  height: auto;        /* keeps aspect ratio */
  border: 2px solid var(--accent);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 800px;
  height: auto;
}

.skills{
  margin: 0 auto;
  font-weight:300;

  width: fit-content;
  text-align: center;

  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  border:2px solid var(--accent);
  border-radius:12px;
  padding: 6px;
  background-color: var(--bg);
}

.skill-icon {
  width: 2em;
  height: auto;
  vertical-align: text-bottom;
}

.platforms{
  margin: 0 auto;
  font-weight:300;

  width: fit-content;
  text-align: center;

  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  border:2px solid var(--accent);
  border-radius:12px;
  padding: 6px;
  background-color: var(--bg);
}

.platform-icon {
  width: 2em;
  height: auto;
  vertical-align: text-bottom;
}

@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

.points{
  text-align: left;
}

.section-title{
  margin:8px 0 14px;
  font-size:28px;
  text-decoration:underline;
  text-underline-offset:6px;
  text-align:center;
}

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}