.trophies-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: auto;
    background: rgba(37, 58, 101, 0.8);
    border-radius: 6px;
    max-height: 600px;
    overflow-y: hidden;
    text-align: center;
}

.trophies-scroll-area {
  max-height: 100%;
  overflow-y: auto;
}



.game-trophies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Tämä keskittää rivin sisällön */
    gap: 15px;
    margin-bottom: 20px;
}

    
.trophy-card.earned {
    border-color: #FFD700;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #fff;
    border: 1px solid #fff;
}
    .trophy-icon {
      font-size: 2.5rem;
      margin-right: 15px;
      color: #FFD700;
    }
    
    .trophy-info h3 {
      margin: 0 0 5px 0;
      color: #333;
      font-size: 1.1rem;
    }
    
    .earned-date {
      margin: 0;
      font-size: 0.9rem;
      color: #666;
      font-style: italic;
    }
    
.trophy-card.not-earned {
    color: #888;
    font-style: italic;
    background: transparent;
    border: 1px solid #555;
}
    


.profile-trophies-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
}

.profile-user-info {
  width: 250px;
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
}

.profile-trophy-list {
  flex: 1;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.game-trophies {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.trophy-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-width: 330px;
}

.trophy-icon i {
  font-size: 28px;
}

/* Tier-värit */
.tier-bronze i {
  color: #cd7f32;
}
.tier-silver i {
  color: #c0c0c0;
}
.tier-gold i {
  color: #ffd700;
}
.tier-platinum i {
  color: #e5e4e2;
  text-shadow: 0 0 4px #bbb;
}

/* Status-tekstit */
.earned-date {
  color: green;
  font-weight: bold;
}












/* TROPHY ILMOITUS */
.trophy-toast {
    position: fixed;
    top: 30px;
    right: 20px;
    background-color: #253a65;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 16px;
    opacity: 1;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 9999;
}
.trophy-toast.visible {
    opacity: 1;
    transform: translateY(0);
}



















.setting-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.setting-label {
  font-size: 1.2rem;
  flex-grow: 1;
  color: #fff;
}

.status-text {
  margin-left: auto;
  font-size: 1rem;
  color: #85de81;
}

/* liukukytkin */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #85de81;
}
input:checked + .slider:before {
  transform: translateX(22px);
}
