body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;
  color: #f2f2f2;
  padding: 0.5rem 2rem 2rem 2rem;
}


.container {
  max-width: 800px;
  margin: auto;
}
.container_small {
  max-width: 260px;
  margin: auto;
 
}
h1, h2, h3 {
  color: #ffa500;
  text-align: center;
}

.nickname {
  text-align: left;
  margin-top: 0;
}

.profile-card {
  display: flex;
  gap: 1.5rem;
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
  align-items: center;
  margin-bottom: 2rem;
}

.costume-img {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ffa500;
}

.greytext {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
}


.info {
  flex: 1;
}

.buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
 /* 
 color: #111;
 background-color: #ffa500;
  color: #ffa500;
  background-color: #000;

 */

 color: #111;
 background-color: #ffa500;


  border: none;
  padding: 0.6rem 1.2rem;
  margin-right: 0.5rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-block; /* ļauj lietot arī <a> */
  text-decoration: none;
    border: 1px solid #ffa500;

	min-width:160px;
text-align:center;
}
.btn.small {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}
.btn:hover {
  /* background-color: #F07000;*/
color:#222;
}


.btnsmall2 {
 color: #111;
 background-color: #ffa500;
  border: none;
  padding: 0.6rem 1.2rem;
  margin-right: 0.5rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-block; /* ļauj lietot arī <a> */
  text-decoration: none;
    border: 1px solid #ffa500;
text-align:center;
}
.btnsmall2 {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}
.btnsmall2:hover {
  /* background-color: #F07000;*/
color:#333;
}

/*edit prof*/
.btnsmall3 {
	background-color: #222;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
    text-decoration: none;
	
	
  border: none;
  margin-top:0.5rem;
  margin-right: 0.5rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-block; /* ļauj lietot arī <a> */
    border: 1px solid #111;
	min-width:100px;
text-align:center;
	
	
}
.btnsmall3:hover {
  /* background-color: #F07000;*/
color:#fff;
}

.btn.secondary {
  background-color: #000;
  color: #ffa500;
  border: 1px solid #ffa500;
 
}
.btn.secondary:hover  {
  background: none;
  color: #ffa500;
  border: 1px solid #ffa500;
}


.visitors {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.visitor {
  background-color: #1f1f1f;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  width: 120px;
}

.visitor img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ffa500;
  margin-bottom: 0.5rem;
}

.energy-info {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.energy-display {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.energy-base {
  color: #ffa500; /* oranžā: pamata enerģija */
  font-weight: bold;
}

.energy-bonus {
  color: #00cc66; /* zaļā: pirkta enerģija */
  font-weight: bold;
  margin-left: 0.5rem;
}









/* ===================== */
/* 📱 Responsive Styles  */
/* ===================== */

@media screen and (max-width: 600px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
 .nickname {
    text-align: center;
  }
  .costume-img {
    width: 160px;
    height: 160px;
  }
  
    .buttons .btn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0.5rem auto;
    text-align: center;
  }

  .info {
    width: 100%;
  }

  .buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .visitors {
    flex-direction: column;
    align-items: center;
  }

  .visitor {
    width: 90%;
  }
}



.view-all-container {
  text-align: center;
  margin-top: 1rem;
}










/* visitors */

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.header-bar.column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}


.header-bar h1 {
  margin: 0;
  font-size: 1.8rem;
}
.visitor-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.visitor-row img {
  width: 100%;
  max-width: 400px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ffa500;
}

.visitor-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
}

.visitor-row div {
  text-align: center;
}


.subnote {
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}

.back-btn {
  margin-top: 2rem;
  text-align: center;
}



.fixed-back {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #333;
  color: #ffa500;
  border: 1px solid #ffa500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 1000;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 0 6px #000;
}

.fixed-back:hover {
  background: #444;
}




/* visit ejam konchas */
.page-title {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

    .visit-card {
		  position: relative;
      background-color: #1a1a1a;
      padding: 2rem;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 0 10px #000;
      margin: 2rem auto;
      max-width: 500px;
    }

    .house-overlay {
      position: relative;
      display: inline-block;
      margin-bottom: 1rem;
    }



.visited-costume {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ffa500;
  display: block;
  margin: auto;
}

    .reward {
      font-size: 1.2rem;
      color: #ffa500;
      margin: 1rem 0;
    }
	    .buttons_visit {
      display: flex;
      justify-content: center;
      gap: 1rem;
      flex-wrap: wrap;
    }
.door-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  text-align: center;
}
.door-img {
  width: 100%;
  border-radius: 10px;
  border: 0px solid #ffa500;
  transition: all 0.8s ease;
}

.door-message {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: #ffa500;
  text-shadow: 0 0 5px #000;
}
#doorOverlay {
  transition: opacity 0.4s ease;
}

input, select {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #eee;
}

.checkbox input[type="checkbox"] {
  width: auto;
  height: 1rem;
}

a {
  color: #ffa500;
  text-decoration: underline;
}

.notif-count {
   color: #ff4d4d;
  font-weight: bold;
}

.like-btn {
  font-size: 34px;
  background: none;
  border: #ffffff;
  cursor: pointer;
  transition: transform 0.2s;
  color: #000000;  /*#ffa500;*/
}

.like-btn.liked {
  color: red;
  cursor: default;
  transform: scale(0.9); /* neliels efekts klikšķa brīdī */
}

.disabled-btn {
  background-color: #222 !important;
  color: #888 !important;
  pointer-events: auto;
  cursor: not-allowed;
  border: 1px solid #000 !important;

}





  .energy-popup {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #ffa500;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 10px #000;
    z-index: 9999;
    animation: fadeOut 4s forwards;
  }

  @keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
  }


  .disabled-btn {
    background-color: #444 !important;
    color: #888 !important;
    pointer-events: auto;
    cursor: not-allowed;
  }
  
  
  
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: #ffa500;
    box-shadow: 0 0 20px #000;
  }

  .energy-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .energy-option {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid #444;
  }

  .energy-option.best {
    border-color: #ffa500;
    background: #333;
  }

  .energy-option.premium {
    border-color: gold;
  }

  .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
  }

  .btn.buy-btn {
    background: #ffa500;
    color: #111;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
  }

  .btn.buy-btn:hover {
    background: #ff9900;
  }

  .btn.close-btn {
    margin-top: 1rem;
    background: #333;
    color: #ffa500;
    border: 1px solid #ffa500;
  }

  .btn.close-btn:hover {
    background: #444;
  }

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 3px;
}

.close-x {
  position: absolute;
  top: 20px;
  right: 14px;
  font-size: 1.4rem;
  color: #ffa500;
  background: none;
  border: none;
  cursor: pointer;
}
.close-x:hover {
  color: #fff;
}


.energy-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-left: 6px;
  font-weight: normal;
  color: #111; /* Tumšs teksts, lai kontrastē ar oranžo pogu */
}

.flag-small {
  font-size: 0.85rem; /* pielāgo vajadzīgo izmēru */
  vertical-align: middle;
  margin-left: 4px;  /* ja blakus tekstam */
  margin-bottom:2px;
}

.error-message {
	  display: block;        /* default for div, but ensure */
  width: 100%;
  clear: both;
  margin-bottom: 20px;
  
  background-color: #ffe5e5;
  color: #a40000;
  border: 1px solid #cc0000;
 padding: 10px;

  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.info {
  padding: 0 1.5rem;
}