@font-face { font-family: HandWrite; src: url('resources/fonts/HandWrite.ttf'); } 
@font-face { font-family: Miroslav;  src: url('resources/fonts/Miroslav.ttf');  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Miroslav', sans-serif;
    transition: all 150ms;
}

body {
    background-color: #fff9e6;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    position: fixed;
    width: 100%;
    height: 52px;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    margin-right: 2rem;
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

nav a:hover {
    color: #d4af37;
}

.logo {
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: HandWrite;
    font-size: 55px;
}

main {
    margin-top: 80px;
}

section {
    padding: 4rem 2rem;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-blend-mode: overlay, normal, normal, normal;
}

#hero {
    min-height: 100vh;
    margin-top: -28px;
    background: url(resources/heaven.png) center center no-repeat  fixed;;
    background-size: cover;
    text-align: center; 
}

#hero h1 {
    font-size: 3.5rem;
    margin-top: 2rem;
    color: #a58b39;
    text-shadow: 0px 0px 5px rgb(255 255 255 / 47%);
    transition: all 150ms;
}

#hero h1:hover {
  text-shadow: 0px 0px 10px rgb(255 255 255);
  cursor: pointer;
  color: #d4af37;
}

.jesus {
    position: absolute;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

#screenshots, #download {
  background: 
  linear-gradient(0deg, #c2e9fb 0%, #a1c4fd 100%);
}

.screenshots {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    width: 80%;
}

.screenshot {
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.developers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.developer {
    text-align: center;
}

.developer img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.download-btn, .design-btn {
    background: #d4af37;
    color: white;
    padding: 1.5rem 4rem;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}

.download-btn:hover, .design-btn:hover {
    transform: scale(1.05);
}

footer {
    background: #333;
    color: white;
    padding: 2rem;
    text-align: center;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}


#about, #candles {
  box-shadow: 0px -15px 10px #c2e9fb;
  background: 
      linear-gradient(0deg, #a1c4fd 0%, #c2e9fb 100%),
      radial-gradient(circle at 20% 50%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 20%),
      radial-gradient(circle at 70% 50%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 15%),
      radial-gradient(circle at 40% 60%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 17%);
    position: relative;
    z-index: 2;
}

#developers {
  background: 
      linear-gradient(0deg, #a1c4fd 0%, #c2e9fb 100%),
      radial-gradient(circle at 20% 50%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 10%),
      radial-gradient(circle at 70% 70%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 11%),
      radial-gradient(circle at 37% 60%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 12%);
}

#download {
    box-shadow: 0px 15px 10px #c2e9fb;
    position: relative;
    z-index: 1;
}

#candle {
    background-image: url('resources/gold-candles-bgpng.png');
}

.about-text {
  width: 80%;
  text-align: justify;
  font-size: 20px;
  margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    top: 10%;
    width: 80%;
    height: 80%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 50px;
}

.modal.hidden {
    opacity: 0;
}

.modal-content {
    padding: 20px;
    display: flex;
    justify-content: center;
    height: 100%;
    flex-direction: column;
}

.design-input {
    margin: 0 20px 50px 20px;
    height: 50px;
    border-radius: 25px;
    border: none;
    font-size: 20px;
    padding: 20px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

.error-text {
    color: red;
    font-size: 30px;
    text-align: center;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

#candle img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    position: absolute;
    max-width: 1000px;
    filter: brightness(40%);
}

.candles-grid {
    height: 400px;
    width: 80%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.candle-item {
    width: 270px;
}

.candle-image {
    background-image: url(resources/candle.png);
    width: 270px;
    background-repeat: no-repeat;
    background-size: contain;
    height: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-wrap: break-word;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
}

.candle-item p {
    text-align: center; 
    overflow-wrap: break-word;
}

@media screen and (max-width: 1200px) {
    .developers {
        grid-template-columns: repeat(1, 1fr);
    }

    nav {
        display: none;
    }

    .logo {
        font-size: 45px;
        width: 100%;
        text-align: center;
    }
}