#randomizeButton {
    padding: 12px;
    font-size: 16px;
    background-color: var(--purple);
    color: white;
    border: none;
    border-radius: 100px;
    transition: background-color 0.3s;
    width: 190px;
    cursor: pointer;
    margin: 0 auto;
}

#randomizeButton:hover {
    background-color: var(--purple-dark);
    cursor: pointer;
}

#randomizeButton:disabled {
    background-color: var(--purple-dark);
    color: #ccc;
    cursor: not-allowed;
}

#saveButton {
    padding: 12px;
    font-size: 16px;
    background-color: var(--purple);
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

#saveButton:hover {
    background-color: var(--purple-dark);
}

.visibility-selector {
    display: flex;
    gap: 8px;
}

.visibility-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 100px;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.2s;
    color: #2e0067;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visibility-option.selected {
    background-color: var(--purple);
    color: white;
    border: none;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: var(--purple);
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    border: none;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: var(--purple-dark);
}

.share-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background-color: var(--purple);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    width: 200px;
    height: 36px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.share-button:hover {
    background-color: var(--purple-dark);
}

.share-button--success {
    background-color: #4CAF50;
    color: white;
}

.share-button--error {
    background-color: #f44336;
    color: white;
}

.share-button__text,
.favorite-icon {
    width: 20px;
    height: 20px;
}

.share-button__text,
.favorite-icon {
    position: absolute;
}

.share-button__text--hidden,
.favorite-icon--hidden {
    opacity: 0;
}

.control-button {
    background-color: var(--purple);
    border-radius: 6px;
    border: none;
    transition: background-color 0.3s;
    height: 30px;
}

.control-button:hover {
    background-color: var(--purple-dark);
}

.top-actions-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.top-actions-row:has(> :nth-child(2)) {
    justify-content: space-between;
}

.top-actions-row .share-container {
    flex: 1;
}

.favorite-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.favorite-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.favorite-button .heart {
    color: gray;
    transition: color 0.3s ease;
}

.favorite-button .heart.favorited {
    color: red;
}

#shareButton {
    position: relative;
    background: none;
    outline: none;
    width: 30px;
    height: 30px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 3px;
}

#shareButton:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.edit-button-fixed {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    height: 30px;
    width: 200px;
    transition: background-color 0.3s;
}

.edit-button-fixed:hover {
    background-color: var(--purple-dark);
}

#resetWeightsButton {
    width: 100%;
}

.wheel-buttons {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    position: relative;
    width: 190px;
    margin-left: auto;
    margin-right: auto;
}

.icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    outline: none;
    border: none;
    border-radius: 100px;
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.icon-button img {
    max-width: 50%;
    max-height: 50%;
}

.icon-button:hover {
    background-color: var(--purple-dark);
}

.visibility-eye-button {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eye-icon {
    max-width: 100%;
    max-height: 100%;
}

@media  (max-width: 768px) {
    .visibility-option {
        font-size: 15px;
    }

    .copy-button {
        top: -10px;
    }

    #fullscreenButton {
        display: none;
    }
}

@media (max-width: 400px) {
    .visibility-selector {
        display: flex;
        flex-direction: column;
        width: 80%;
    }
}
