body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#app-container {
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 1000px;
  margin-top: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
#tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.tab-button {
  padding: 10px 20px;
  margin: 0 5px;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}
.tab-button.active {
  background-color: #4CAF50;
  color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
  display: block;
}
#options-menu {
  margin-bottom: 20px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
}
#options-menu-toggle {
  cursor: pointer;
  font-weight: bold;
}
.option-group {
  margin-top: 10px;
}
.question-component {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  background-color: #fff;
  position: relative;
  transition: background-color 0.5s ease;
}
/* Style for drag and drop */
.drag-drop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.drag-zone, .drop-zone {
    border: 2px dashed #0056b3;
    min-height: 50px;
    min-width: 150px;
    padding: 10px;
    margin: 5px;
    background-color: #eee;
    border-radius: 5px;
}
.draggable {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: grab;
    user-select: none;
}
/* Style for multiple choice */
.mc-option {
    margin: 5px 0;
    display: block;
}
/* Style for hearts */
.heart-bar {
    font-size: 24px;
    color: red;
    margin-top: 10px;
}
.hidden {
    display: none;
}
.hint-area {
    border: 1px dashed #ccc;
    padding: 10px;
    margin-top: 10px;
    background-color: #ffe;
    color: #555;
    border-radius: 5px;
}

/* New styles for no-distraction mode */
body.no-distractions {
    background-color: #1a1a1a;
    color: white;
}
body.no-distractions #app-container {
    box-shadow: none;
    background-color: #1a1a1a;
}
body.no-distractions #tabs,
body.no-distractions #options-menu,
body.no-distractions #share-tab,
body.no-distractions #edit-tab,
body.no-distractions h1 {
    display: none;
}
body.no-distractions #test-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
body.no-distractions .question-component {
    background-color: #333;
    border-color: #555;
    color: white;
    width: 100%;
    max-width: 700px;
}
body.no-distractions .mc-option {
    background-color: #555;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}
body.no-distractions .mc-option input[type="radio"] {
    margin-right: 10px;
}
body.no-distractions input[type="text"] {
    background-color: #444;
    border: 1px solid #666;
    color: white;
    padding: 8px;
    border-radius: 4px;
}
body.no-distractions button {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
body.no-distractions .hint-area {
    background-color: #444;
    border-color: #777;
}

/* Feedback animation */
.correct-answer {
    background-color: #d4edda !important;
}
.incorrect-answer {
    background-color: #f8d7da !important;
}
.check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color: green;
    opacity: 0;
    animation: floatAndFade 1.5s ease-out forwards;
}
@keyframes floatAndFade {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -100%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150%) scale(1.5);
        opacity: 0;
    }
}
.share-url-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.share-url-container input {
    flex-grow: 1;
    margin-right: 10px;
}