/* Import Beiroot font weights from GitHub */

/* Light */
@font-face {
  font-family: 'Beiroot';
  src: url('https://raw.githubusercontent.com/adelbechara/beiroot-font/main/Beiroot-Light.woff2') format('woff2'),
       url('https://raw.githubusercontent.com/adelbechara/beiroot-font/main/Beiroot-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

/* Regular */
@font-face {
  font-family: 'Beiroot';
  src: url('https://raw.githubusercontent.com/adelbechara/beiroot-font/main/Beiroot-Regular.woff2') format('woff2'),
       url('https://raw.githubusercontent.com/adelbechara/beiroot-font/main/Beiroot-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: 'Beiroot';
  src: url('https://raw.githubusercontent.com/adelbechara/beiroot-font/main/Beiroot-Bold.woff2') format('woff2'),
       url('https://raw.githubusercontent.com/adelbechara/beiroot-font/main/Beiroot-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* General styling */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: #f5f5f5;
}

.type-demo {
  text-align: center;
  width: 90%;
  max-width: 600px;
}

h2 {
  font-family: 'Beiroot', sans-serif;
  margin-bottom: 15px;
}

#user-text {
  width: 100%;
  padding: 12px;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.weight-buttons {
  margin-bottom: 20px;
}

.weight-buttons button {
  font-family: 'Beiroot', sans-serif;
  font-weight: 400;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.weight-buttons button:hover {
  background: #eee;
}

#preview {
  font-family: 'Beiroot', sans-serif;
  font-weight: 400; /* Default Regular */
  font-size: 2rem;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
}
