پرش به محتوا

الگو:گالری وسط/styles.css

از ویکی پاسخ
.crazy-slider-container {
    width: 100%;
    max-width: 800px;
    margin: 5px auto;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #f9f9f9;
    direction: rtl;
    position: relative;
    display: flex;
    flex-direction: column;
	clear: both;
}

.weird-slide {
    display: none;  
    flex-direction: row;
    align-items: flex-start;
}

.weird-slide.active {
    display: flex;  
}

.weird-slide img {
    max-height: 250px;
    height: auto;
    border-radius: 5px;
    margin-left: 15px;
}

.silly-content {
    margin-top: 20px;
    direction: rtl;
    text-align: right;
}

.fancy-title {
    background-color: #701c1c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.random-description {
    font-size: 0.9em;
    color: #080c0a;
    line-height: 1.6;
    margin-top: 8px;
    margin-left: 15px; 
}

.crazy-controls {
    margin-top: 10px;
    text-align: center;
}

.control-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #701c1c;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
}

.control-button.active {
    background-color: #080c0a;  
}

.control-button:hover {
    background-color: #455a64;
}

.left-arrow,
.right-arrow {
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #701c1c;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
}

.left-arrow {
    right: 10px;  
}

.right-arrow {
    left: 10px;  
}
.clickable {
    cursor: pointer;
}
.image-modal {
    display: none;  
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);  
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}