html, body {
    overflow-x: hidden;
    width: 100%;
}
  
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.title {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    height: 93px;
    text-align: left;
    align-items: center;
    background-image: url('https://thethemes.co/topbanner.jpg');
    /* Устанавливаем фоновое изображение */
    background-size: cover;
}

.titletxt {
    margin-left: 10px;
    font-size: 35px;
    color: white
}

.goldT {
    margin-left: 20px;
}

.header {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.filter {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    background-color: white;
}

.filter.active {
    background-color: #e52e71;
    color: white;
}

.search-bar {
    display: block;
    width: 90%;
    max-width: 900px;
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

.themes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.theme-card {
    width: 350px;
    height: 100%;
    padding: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Заполняет блок изображением без искажений */
    border-radius: 15px;
}

.theme-title {
    font-weight: bold;
    margin-top: 10px;
}

#themesContainer {
    justify-content: center;
    padding: 10px;
}

.visually-hidden {
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #3a3a3a;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: #ff2020;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 44px;
    background-color: #e52e71;
}

.modal-image {
    bottom: 15px;
    border-radius: 12px;
}

.modal-title {
    padding-top: 12px;
}

.container-theme-pw {
    width: 100%;
    max-width: 700px; 
    margin: 0 auto;   
    padding: 16px;    
    box-sizing: border-box;
}

.container-theme-pw img {
    width: 100%;
    max-width: 700px; 
    margin: 0 auto;   
    border-radius: 25px;
}

.similar-themes {
    padding-top: 25px;
    padding-left: 20px;
}

.footer {
    background-color: #c9c9c9; 
    color: #303030; 
    text-align: center;
	margin-top: 35px;
    bottom: 0;
    width: 100%;
	line-height: 1.9;
}

.back-button {
    top: 20px;
    left: 20px;
    background-color: #f9f9f9;
    color: rgb(58, 58, 58);
    border: 1px solid #bbbbbb;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
    margin-left: 10px;
}

.download-button {
    background-color: #4CAF50; 
    color: white; 
    border: none;
    border-radius: 10px; 
    padding: 10px 20px; 
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
	margin-bottom: 16px;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 48px;            
  height: 48px;           
  padding: 0;
  font-size: 20px;
  border: none;
  border-radius: 100%;
  background-color: #ebebeb;
  color: rgb(43, 43, 43);
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

.scroll-to-top:hover {
  background-color: #e6e6e6;
}

  