/* Common styles extracted from qlab, emspin, and bloch index.html files */

/* CSS Variables */
:root {
  --primary-color: #0A74DA;
  --bg-color: #f9f9fb;
  --card-color: white;
  --text-color: #222;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --secondary-btn-color: #6c757d;
  --secondary-btn-hover-color: #5a6268;
}

/* Universal styles */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body styles */
body {
  background-color: var(--bg-color);
  margin: 0;
  padding: 0rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Heading styles */
h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

/* Button styles */
button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.2rem 1rem;
  margin: 0.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button::selection {
  background-color: transparent;
}

button:hover {
  background-color: #0056b3;
}

/* Checkbox styles */
input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* Label styles */
label {
  font-size: 1rem;
  vertical-align: middle;
}

.navbar {
  text-align: center;
  margin-top: 1rem;
  padding-bottom: 0rem;
}


.up-btn {
  padding: 0rem 2rem;
  background-color: lightgray;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}


.up-btn:hover {
  background-color: #0056b3;
}

.help-btn {
  padding: 0.4rem 2rem;
  margin-top: 1rem;
  margin-bottom: -1rem;
  background-color: lightgray;
  color: white;
  text-decoration: none;     
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.help-btn:hover {
  background-color: #0056b3;
}



/* Content card styles */
.content-card {
  background-color: var(--card-color);
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: 100%;
}

/* Media Query for responsiveness */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  button {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}


header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  align-self: stretch;
}

h1 {
  font-size: 2.5rem;
  margin-top: 1rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 600;
}