/* Reset and box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Core styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI Bold', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  text-align: justify;
}

a {
  color: #0000EE;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Main container */
.container {
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.75rem;
}

/* Headings */
h2 {
  font-family: 'Linux Biolinum Bold', 'Linux Biolinum', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h3 {
  font-family: 'Segoe UI Bold', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

/* Authors */
.authors {
  margin-bottom: 1.5rem;
  font-family: 'Segoe UI Bold', 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  color: #333;
  line-height: 0.8;
}

/* Figures */
figure {
  margin: 1.5rem 0;
}
figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
}

/* Lists */
ul {
  margin: 0 0 1.5rem 1.25rem;
}

/* Code container */
.code-container {
  position: relative;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
}
pre {
  background: #f7f7f7;
  padding: 0.75rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}
.copy-btn {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  background-color: transparent;
  color: #555;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 62.4375rem;
  font-family: 'Segoe UI Bold', 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* Mobile */
@media (max-width: 48rem) {
  .container {
    padding: 1rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }
  h3 {
    font-size: 1.125rem !important;
    margin-top: 1rem !important;
  }
  .authors {
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
  }
  figcaption {
    font-size: 0.875rem !important;
  }
  .code-container {
    font-size: 0.75rem !important;
  }
  iframe {
    width: 100% !important;
    height: auto !important;
  }
}

/* Landscape scaling */
@media (max-width: 56.25rem) {
  html {
    font-size: 85%;
  }
  .container {
    max-width: 45rem;
    margin: 0 auto;
    padding: 0 0.625rem;
  }
}

/* Disable auto adjustment */
html {
  -webkit-text-size-adjust: 100%;
}

/* This is supposed to fix all my problems */
.conference {
  font-size: 1.5rem;
}

/* Landscape adjustment */
@media (max-width: 56.25rem) and (orientation: landscape) {
  .conference {
    font-size: 1.25rem !important;
  }
}
