.cardBox {
    perspective: 1000px;
    width: 300px;
    height: 200px;
    padding: 15px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.viewed, .content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.8s ease;
    border-radius: 15px;
}

.viewed {
    background: #fff;
    transform: translateY(0%);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.viewed h2 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 10px;
    position: absolute;
    bottom: 0;
    right: 10px;
}

.viewed span {
    color: #666;
    font-size: 16px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewed span:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content {
    background: #353535;
    color: white;
    transform: translateY(100%);
    opacity: 0;
}

.content h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
}

.card:hover .viewed {
    transform: translateY(-100%);
    opacity: 0;
}

.card:hover .content {
    transform: translateY(0);
    opacity: 1;
}

#prevBtn, #nextBtn{
    padding: 0px 15px;
    font-size: 16px;
    background-color: #6e8efb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-container {
    width: 100%;
}
        
.slider {
    position: relative;
    height: 70%;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}
        
.info {

    position: absolute;
    width: 100%;
    height: 100%;
}
        
.button_slider {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.place-card {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    max-width: 300px;
    transition: transform 0.2s ease;
}

.place-image {
    margin-right: 16px;
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    background: black;
    border-radius: 10px;
    background-size: contain;
}

.place-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.place-info {
    flex-grow: 1;
    min-width: 0;
}

.place-name {
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-name a{
    
    font-weight: 600;
    font-size: 16px;
    color: #212529;
    text-decoration: none;
}

.place-creator {
    font-size: 13px;
    color: #adadad;
    margin-bottom: 8px;
}

.place-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-count, .favorite-count {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #a0a0a0;
}

.stat-icon {
    margin-right: 4px;
    font-size: 14px;
}

.favorite-count {
    color: #a0a0a0;
}

.favorite-count_img{
    background-image: url(https://images.rbxcdn.com/17a51ef142236cc7.svg);
    background-repeat: no-repeat;
    background-size: auto;
    width: 28px;
    height: 28px;
    display: inline-block;
    background-position: 0 -84px;
}
.telegram-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.telegram-card__icon {
    width: 50px;
    height: 50px;
    background-image: url("images/telegram.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.telegram-card__content {
    display: flex;
    flex-direction: column;
}

.telegram-card__title {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.telegram-card__link {
    font-size: 16px;
    color: #0088cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.telegram-card__link:hover {
    color: #005580;
    text-decoration: underline;
}