﻿:root {
  --bg: #141414;
  --text: #ffffff;
  --primary: #e50914;
  --secondary: #333333;
  --hover: #ffffff;
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #000000;
  --primary: #e50914;
  --secondary: #f0f0f0;
  --hover: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 20px;
  text-align: center;
}

.logo img {
  height: 40px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.theme-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
}

.profiles-section {
  text-align: center;
}

.profiles-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  max-width: 800px;
  margin-bottom: 40px;
}

.profile {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
  flex: 0 0 auto;
}

.profile:hover {
  transform: scale(1.05);
}

.profile figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile img {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid transparent;
  transition: border-color 0.2s;
}

.profile:hover img {
  border-color: var(--primary);
}

.profile figcaption {
  margin-top: 10px;
  font-size: 1.2rem;
}

.manage-profiles {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  border: 1px solid #666;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.manage-profiles:hover {
  background-color: var(--primary);
  color: var(--text);
}
