body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 5px solid #333;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 50px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.like-btn, .dislike-btn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    color: blue;
}

.like-btn {
    background-color: #4CAF50;
}

.dislike-btn {
    background-color: #f44336;
}

.like-btn:hover {
    background-color: #45a049;
}

.dislike-btn:hover {
    background-color: #e53935;
}

.rounded {
    border-radius: 50%;
    border-style: solid;
    border-width: 10px;
    border-color: black; /* BLAK را به black تغییر دادم */
}

.container { /* این قسمت تکراری بود و حذف شد */
    /* ... */
}

img {
    display: block;
    border-radius: 10px;
}

.image-container {
    display: inline-block;
    padding: 3px;
    background: linear-gradient(45deg, red, yellow, green, blue, rgb(255, 0, 221), purple);
    background-size: 400% 400%;
    animation: borderAnimation 4s linear infinite;
    border-radius: 10px;
}

.image-container img {
    display: block;
    border-radius: 7px;
}

@keyframes borderAnimation {
    100% {
        background-position: 300px 0;
    }
}


.image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.image-container img {
    position: relative;
    transition: top 0.3s ease;
    top: 0;
}

.image-container:hover img {
    top: -5px;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.3s ease;
}

.settings-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

.arrow-button {
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 5px;
}

.settings-menu {
    display: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    width: 320px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    text-align: right;
}

.settings-menu.active {
    display: block;
}

.menu-section {
    display: none;
}

.menu-section.active {
    display: block;
}

.color-section,
.font-size-section,
.font-family-section,
.background-section {
    margin-bottom: 10px;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20px, 1fr));
    gap: 2px;
    margin-top: 5px;
}

.color-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ccc;
    position: relative;
}

.color-option.selected {
    border: 2px solid #000;
}

.font-size-options {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.font-size-option {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #eee;
    cursor: pointer;
    font-size: 0.8em;
    transition: background-color 0.3s ease;
}

.font-size-option:hover {
    background-color: #ccc;
}

.font-family-options,
.background-options {
    margin-top: 5px;
}

.font-family-options select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.editable-text {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.menu-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.menu-buttons button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.menu-buttons button:hover {
    background-color: #ddd;
}

#background-options {
    display: none;
}

#background-options.active {
    display: block;
}

.background-color {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    margin: 4px;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: border 0.2s;
}

.background-color:hover {
    border: 2px solid #000;
}

.background-color.selected {
    border: 2px solid #000;
}

.bg-buttons {
    margin-top: 8px;
}

.bg-color-options {
    display: flex;
    flex-wrap: wrap;
}

/* new style */
#show-color-menu {
    background-color: #800080;
    color: white;
}

#show-color-menu:hover {
    background-color: #008000;
    color: white;
}

#show-font-menu {
    background-color: #000080;
    color: white;
}

#show-font-menu:hover {
    background-color: #008000;
    color: white;
}

#show-font-family-menu {
    background-color: #808000;
    color: white;
}

#show-font-family-menu:hover {
    background-color: #008000;
    color: white;
}

#show-background-menu {
    background-color: #800000;
    color: white;
}

#show-background-menu:hover {
    background-color: #008000;
    color: white;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.back-bar {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-bar:hover {
    background-color: #45a049;
}
