@import url("styles.css");

.button-news {
  cursor: pointer;
  padding: 2px;
  width: 50%;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 500;
  color: #9f9f9f;
  background-color: white;
  border: 1px solid #b6b6b6;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.2s, transform 0.2s;
}

.button-news:hover {
  background-color: #e6f5e6;
  color: #2E8A18;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.button-news:active {
  background-color: #3A9E20; 
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.button-news.select-button:hover {
  background-color: #e6f5e6;
  color: #2E8A18;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.button-news.select-button:active {
  background-color: #3A9E20;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.button-news.select-button.selected {
  border: #7676768a 1px solid;
  color: rgba(220, 20, 60, 0.466);;
  background-color: rgb(219 128 146 / 9%);
}

.button-news:first-of-type {
  margin-right: 5px;
}

#newsPopup {
  z-index: 50;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#newsPopup.open {
  opacity: 1;
  visibility: visible;
}

#newsPopup.closing {
  opacity: 0;
  visibility: hidden;
}

#newsContent {
  position: relative;
  background-color: #fff;
  padding: 30px 25px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  border-radius: 5px;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#newsPopup.open #newsContent {
  transform: scale(1);
}

.close-btn {
  background: transparent;
  border: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex
;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
  border-radius: 5px;
}

.close-btn:hover {
  background-color: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
}

.news-headline a {
  color: #2e8b57;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-headline a:hover {
  color: #006400;
}

.news-description {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  line-height: 1.6;
}

.news-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  margin: 16px 0;
  border-radius: 5px;
}

.news-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-meta {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.news-image {
  width: 120px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 769px) {
  .news-item {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .news-image {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .news-text {
    text-align: left;
    padding-top: 6px;
  }

  .button-news {
    font-size: 12px;
    width: 100%;
    padding: 1px;
  }

  .button-news:first-of-type {
    margin-right: 0;
    margin-bottom: 0;
  }
.popup-select.selected {
  width: 56px;
  padding: 5px 4px;
  color: #fff;
  background-color: #d32f2fba;
  border: none;
}
}


#custom-row:has(#custom-symbol:focus) #custom-select {
  background-color: #e6f5e6 !important;
  color: #2E8A18 !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
  transform: translateY(-1px) !important;
}


#custom-row:has(#custom-symbol:focus) .popup-select {
  background-color: #e6f5e6 !important;
  color: #2E8A18 !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
  transform: translateY(-1px) !important;
}

