/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  font-family: sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 15px;
  margin-top: 100px;
}


.page {
  width: 100%;
  max-width: 10000px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

/* Header Navigation */
header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.nav-links a {
  color: #5f6368;
  margin-left: 20px;
  text-decoration: none;
  font-size: 14px;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Logo */
.logo {
  display: block;
  margin: 0 auto 40px auto; 
  max-width: 320px;
  height: auto;
  
}

/* Search Box */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.search-box form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  border: 1px solid #dfe1e5;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-radius: 24px;
  padding: 5px 15px;
}

.search-box input[type="text"] {
  flex: 1;
  font-size: 16px;
  padding: 10px;
  border: none;
  outline: none;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
}

.search-box img {
  height: 20px;
  width: 20px;
}

/* Shortcuts (like new tab icons) */
.shortcuts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #202124;
  width: 80px;
  transition: transform 0.2s ease;
}

.shortcuts a:hover {
  transform: scale(1.1);
}

.shortcuts img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #5f6368;
  border-top: 1px solid #dadce0;
  padding-top: 15px;
}

footer a {
  margin-left: 15px;
  text-decoration: none;
  color: #5f6368;
}

footer a:hover {
  text-decoration: underline;
}

.results-page {
  padding: 30px 50px;
}

.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.search-bar .logo-small {
  height: 36px;
  margin-right: 20px;
}

.search-bar form {
  display: flex;
  flex: 1;
  max-width: 600px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 5px 15px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.search-bar input[type="text"] {
  flex: 1;
  font-size: 16px;
  border: none;
  padding: 10px;
  outline: none;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
}
.search-bar-icon img {
  height: 20px;
  width: 20px;
}

.search-results {
  max-width: 800px;
  margin: left auto;
  margin-top: 100px;
}

.result {
  margin-bottom: 25px;
}

.result-title {
  font-size: 18px;
  color: #1a0dab;
  text-decoration: none;
}

.result-title:hover {
  text-decoration: underline;
}

.result-url {
  color: #006621;
  font-size: 14px;
  margin: 2px 0;
}

.result-snippet {
  color: #545454;
  font-size: 14px;
}

/* Subpage Header */
.subpage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  border-bottom: 1px solid #dadce0;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.subpage-header .logo-small {
  height: 32px;
}

.subpage-header nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #5f6368;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
}

.subpage-header nav a.active,
.subpage-header nav a:hover {
  background-color: #f1f3f4;
  color: #202124;
}

/* Page Content */
.content-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 30px;
}

.content-wrapper h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #202124;
}

.content-wrapper h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #202124;
}

.content-wrapper p {
  font-size: 16px;
  color: #3c4043;
  line-height: 1.6;
}

.content-wrapper ul {
  margin-left: 20px;
  padding-left: 15px;
}

.content-wrapper ul li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #3c4043;
}

code {
  background-color: #f1f3f4;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 90%;
}

/* Footer (reuse styles) */
footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  font-size: 14px;
  color: #5f6368;
  border-top: 1px solid #dadce0;
  margin-top: 100px;
}
.diagram {
  width: 100%;
  max-width: 700px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.code-box {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Courier New", monospace;
  white-space: pre-wrap;
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid #e0e0e0;
}

mark {
  background-color: #fff8b5;
  padding: 0 2px;
  border-radius: 2px;
}

/* Google-style horizontal header */
.global-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
  background-color: white;
  border-bottom: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 999;
}

.left-brand .logo-nav {
  font-size: 28px;
  font-weight: 500;
  font-family: 'Product Sans', 'Segoe UI', sans-serif;
  text-decoration: none;
  color: #4285f4;
}

.left-brand .highlight {
  color: #34a853;
}

.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  font-size: 15px;
  color: #5f6368;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #202124;
}
ul, ol {
     margin-left:3em;
}
