/* Font Declarations */
@font-face {
  font-family: 'Mark Pro';
  src: url('mark-pro-font/MarkPro.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Mark Pro';
  src: url('mark-pro-font/MarkPro-Medium.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Mark Pro';
  src: url('mark-pro-font/MarkPro-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Mark Pro';
  src: url('mark-pro-font/MarkPro-MediumItalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
}

/* Global Styles */
body {
  font-family: 'Mark Pro', sans-serif;
  text-align: center;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Logo Styles */
#logo {
  margin: 15px auto 0;
  display: block;
  width: 250px;
  height: auto;
}

/* Wheel Container */
.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

#wheelCanvas {
  max-width: 100%;
  height: auto;
  margin: 15px auto;
}

/* Spin Button */
#spin {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #2f3194;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Mark Pro', sans-serif;
  font-weight: bold;
  margin-top: 20px;
}

#spin:hover:not(:disabled) {
  background-color: #1a1c5c;
  transform: scale(1.05);
}

#spin:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Editor Menu */
#menu-btn {
  display:none !important;
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #000;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
}

.menu-bar {
  width: 28px;
  height: 4px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
}

/* Editor Panel */
#editor {
  display: none;
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  z-index: 200;
}

#editor.show {
  display: block;
}

#editor-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}

/* Segment Editor */
.segment-input {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.segment-input input {
  margin: 0 5px;
  font-family: 'Mark Pro', sans-serif;
}

input.color-input {
  background: transparent;
  border: none;
  height: 35px;
}

button.button-remove {
  background: black;
  color: #ffffff;
  border: none;
  font-size: 20px;
  padding: 6px 12px;
  cursor: pointer;
}

button#add-segment {
  font-family: 'Mark Pro', sans-serif;
  margin-top: 25px;
  font-size: 15px;
  padding: 8px 16px;
  background-color: #2f3194;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Result Container */
#result-container {
  margin-top: 20px;
  font-size: 1.2em;
  font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  #wheelCanvas {
    width: 90vmin;
    height: 90vmin;
  }
  
  #logo {
    width: 200px;
  }
  
  #spin {
    font-size: 16px;
    padding: 12px 25px;
  }
  
  #editor {
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  #wheelCanvas {
    width: 95vmin;
    height: 95vmin;
  }
  
  #logo {
    width: 150px;
  }
  
  #spin {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  #menu-btn {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}
