body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: black;
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    position: relative;
}

#time {
    font-size: 5.5em;
    position: absolute;
    top: 10px;
    left: 10px;
	text-decoration: none;
    color: inherit;
    cursor: pointer;
}

#date {
    font-size: 2em;
    margin-top: 10px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Ortalamayı sağlar */
	text-decoration: none;
    color: inherit;
    cursor: pointer;
}

#location-display {
    font-size: 1em;
    margin-top: 3em;
    position: absolute;
    color: #ccc;
    display: none;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Ortalamayı sağlar */
}

#weather {
    font-size: 2em;
    margin-top: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
}

	.weather-desc {
		font-size: 1em;
	}

#prayer-times {
    font-size: 2em;
    position: absolute;
    left: 10px;
    top: 4.2em; /* Saat bilgisi ile vakit bilgileri arasına daha fazla boşluk bırak */
    text-align: left; /* Genel olarak metni sola yasla */
    padding-left: 10px; /* Sol taraftan biraz boşluk bırak */
}

	#prayer-times table {
		width: 100%;
		border-collapse: collapse;
	}

	#prayer-times td {
		padding: 5px;
		line-height: 1.2;  /* Satırlar arasındaki boşluğu azaltma */
	}

	#prayer-times td:first-child {
		text-align: left;
	}

	#prayer-times td:nth-child(2) {
		text-align: right;
	}

	#prayer-times td:nth-child(3) {
		text-align: center;
	}
	
	.future-prayer td {
		color: yellow;
	}
	
	.current-prayer td {
		font-weight: bold;
		color: green;
	}

#pregnancy-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 24px;
  text-align: right;
  z-index: 999;
}

#pregnancy-info p {
  margin: 2px 0;
}

#pregnancy-info .passed {
  color: green;
  font-weight: bold;
}

#pregnancy-info .left {
  color: darkorange;
  font-weight: bold;
}

#pregnancy-info .due-date {
  color: #fff;
  display: block;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0;
}

.progress-fill {
  height: 100%;
  background-color: green;
  width: 0%;
  transition: width 0.5s ease;
}

#daily-schedule-main-container {
  position: fixed;
  left: 10px;
  bottom: 10px;
  width: 400px;
  max-height: 30vh;
  overflow-y: auto;
  z-index: 999;
  font-family: sans-serif;
  font-size: 0.9rem;
  text-align: left;
  border: 2px solid #ccc;
  border-radius: 15px;
  background-color: black;
}

#daily-schedule-container h4 {
	text-align: center;
  position: sticky;
  top: 0;
  background-color: black;
  padding: 8px 0 4px 4px;
  margin: 0 0 10px;
  z-index: 1;
}

.schedule-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  
}

.schedule-item.highlight {
  color: white;
  font-weight: bold;
  position: relative;
  text-shadow: 
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

.schedule-item.highlight::before {
  content: "";
  position: absolute;
  top: 0;  
  left: auto;
  right: 0;
  height: 100%;
  background-color: #17e314;
  width: var(--progress);
  z-index: -1;
  transition: width 1s linear;
}

.schedule-item.ended {
  color:red
}

.show-week-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1001;
}

#weekly-popup {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-height: 70vh;
  overflow-y: auto;
  background-color: black; /* Arka plan siyah */
  color: white; /* Yazı rengi beyaz olsun ki görünür olsun */
  border: 2px solid #888;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1002;
  text-align: left; /* İçerik sola yaslı */
}

#weekly-popup .close-popup {
  position: sticky;
  top: 0;
  background: #444;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  text-align: right;
  font-weight: bold;
}

#pixel-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

.pixel-cell {
  position: absolute;
  will-change: opacity;
  backface-visibility: hidden;
}

@media (orientation: portrait) {
  body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #date,
  #time,
  #weather,
  #prayer-times,
  #pregnancy-info,
  #daily-schedule-main-container {
	  position: relative;
	  top: inherit;
	  bottom: inherit;
    width: 100%;
    margin: 5px 0;
  }

  #daily-schedule-container {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  
  #prayer-times {
    width: 95%;
  }
  
  #prayer-times td:nth-child(1) {
    width: 70%;
  }
  
  #prayer-times td:nth-child(3) {
    text-align: right;
  }
}