/* Reset headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

:root {
  --text: white;
  --gray-200: #b4b8bb;
  --gray-300: #80868b;
  --gray-500: #5f6368;
  --gray-600: #444444;
  --gray-700: #202020;
  --gray-800: #171717;
  --gray-900: #111111;
  --gray-1000: #0a0a0a;
  --border-stroke: #444444;
  --accent-blue: rgb(161, 228, 242);
  --accent-blue-active-bg: #001233;
  --accent-blue-active: #98beff;
  --accent-blue-headers: #448dff;
  --accent-green: rgb(168, 218, 181);

  --midnight-blue: rgb(0, 18, 51);
  --blue-30: #99beff;

  --accent-red: #ff4600;

  --background: var(--gray-900);
  --color: var(--text);

  scrollbar-color: var(--gray-600) var(--gray-900);
  scrollbar-width: thin;

  --font-family: "Space Mono", monospace;

  /* Neutral colors */
  --Neutral-00: #000;
  --Neutral-5: #181a1b;
  --Neutral-10: #1c1f21;
  --Neutral-15: #232729;
  --Neutral-20: #2a2f31;
  --Neutral-30: #404547;
  --Neutral-50: #707577;
  --Neutral-60: #888d8f;
  --Neutral-80: #c3c6c7;
  --Neutral-90: #e1e2e3;

  --Green-500: #0d9c53;
  --Green-700: #025022;

  --Blue-500: #1f94ff;
  --Blue-800: #0f3557;

  --Red-400: #ff9c7a;
  --Red-500: #ff4600;
  --Red-600: #e03c00;
  --Red-700: #bd3000;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Space Mono", monospace;
  background: var(--Neutral-5);
}

* {
  margin: 0 !important;
}

.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.space-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.space-mono-regular-italic {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.space-mono-bold-italic {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.h-screen-full {
  height: 100vh;
}

.w-screen-full {
  width: 100vw;
}

.flex-col {
  flex-direction: column;
}

.streaming-console {
  background: var(--Neutral-5);
  color: var(--gray-300);
  display: flex;
  height: 100vh;
  width: 100vw;
}

.streaming-console a,
.streaming-console a:visited,
.streaming-console a:active {
  color: var(--gray-300);
}

.streaming-console .disabled {
  pointer-events: none;
}

.streaming-console .disabled > * {
  pointer-events: none;
}

.streaming-console main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.streaming-console .main-app-area {
  display: flex;
  flex: 1;
  justify-content: center;
}

.streaming-console .function-call {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50%;
  overflow-y: auto;
}

/* video player */
.stream {
  width: 640px;
  height: 420px;
  object-fit: contain;
  border-radius: 8px;
  background-color: var(--Neutral-10);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--Neutral-5);
  color: var(--text);
  font-family: var(--font-family);
}

.control-button {
  padding: 10px 20px;
  margin: 10px;
  background: var(--Neutral-20);
  color: var(--Neutral-90);
  border: 1px solid var(--Neutral-30);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s ease-in-out;
}

.control-button:hover {
  background: var(--Neutral-30);
  border-color: var(--Neutral-50);
}

.control-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--Blue-500);
}

.stream.hidden {
  display: none;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Google Sans", sans-serif;
}

.header-container a {
  color: var(--Blue-500);
  text-decoration: none;
}

.app-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.app-title {
  color: var(--text);
  text-align: center;
  font-family: "Google Sans", sans-serif;
  font-size: 2rem;
  margin: 1rem 0;
}

.api-key-form-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-bottom: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.api-key-form {
  width: 100%;
  padding: 1rem;
}

.api-key-form form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.api-key-form form > div {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.api-key-form label {
  color: var(--gray-300);
  display: block;
  margin-bottom: 0.25rem;
}

.api-key-form input {
  flex: 1;
  padding: 0.5rem;
  background: var(--Neutral-10);
  border: 1px solid var(--Neutral-30);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-family);
}

.api-key-form input:focus {
  outline: none;
  border-color: var(--Blue-500);
}

.api-key-form button {
  padding: 0.5rem 1rem;
  background: var(--Blue-500);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-family);
  white-space: nowrap;
}

.api-key-form button:hover {
  background: var(--Blue-800);
}

.gemini-logo {
  width: 32px;
  height: 32px;
}
