body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 350px;
}

.title {
    font-size: 2.5em;
}

.subtitle {
    opacity: 0.8;
}

.input-section {
    margin: 20px 0;
}

input {
    padding: 10px;
    border: none;
    border-radius: 10px;
    width: 60%;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #ff7eb3;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.1);
    background: #ff4f91;
}

#optionsList {
    margin: 10px 0;
}

.option {
    margin: 5px;
    padding: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    animation: fadeIn 0.5s;
}

.decide-btn {
    margin-top: 20px;
    font-size: 1.2em;
}

.result {
   
    margin-top: 20px;
   
    font-weight: bold;
    text-align: center;
    
    font-size: 80px !important;
    color: red !important;
}


/* Animace */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

.show {
    animation: resultAnim 1s forwards;
}

@keyframes resultAnim {
    from {opacity: 0; transform: scale(0.5);}
    to {opacity: 1; transform: scale(1);}
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.reset-btn {
    margin-top: 20px;
    font-size: 1.2em;
}

.reset-btn:hover {
    background: #2a2929;
}
.option span {
    cursor: pointer;
}

.option span:hover {
    text-decoration: underline;
}
.modes-container {
    position: relative;
    margin: 15px 0;
}

.modes-btn {
    width: 100%;
}

.modes-menu {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.3s;
}

.modes-menu div {
    padding: 10px;
    cursor: pointer;
}

.modes-menu div:hover {
    background: rgba(255,255,255,0.2);
}

.hidden {
    display: none;
}
.option {
    cursor: grab;
}

.option:active {
    cursor: grabbing;
    opacity: 0.6;
}
.option {
    position: relative;
    cursor: grab;
}

.option:active {
    cursor: grabbing;
    opacity: 0.6;
}

.option.drop-top::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #4da6ff;
    border-radius: 2px;
}

.option.drop-bottom::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: #4da6ff;
    border-radius: 2px;
}
.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #2a2a2a;
    border-radius: 10px;

    padding: 10px;
    margin: 8px auto;
    width: 300px;
}

.option-input {
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
    width: 100%;
    outline: none;
}

.delete-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #1e1e1e;
    margin: 5px auto;
    padding: 8px;
    border-radius: 8px;
    width: 250px;
}

.history-item button {
    background: red;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}
#historyMenu {
    position: absolute;
    background: #2a2a2a;
    padding: 10px;
    border-radius: 10px;
    width: 250px;
    margin-top: 10px;
     position: absolute;
    z-index: 1000; 
}

.hidden {
    display: none;
}

.history-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 10px;
    background: #ff7eb3;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}
#feedbackBox {
  margin-top: 20px;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: #f9f9f9;
}

#feedbackInput {
  width: 100%;
  height: 80px;
  margin-bottom: 10px;
}

.feedback-item {
  background: white;
  border: 1px solid #ddd;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
}
