@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Pacifico&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: 60px;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
}

nav h1 {
    font-family: 'Pacifico', cursive;
    font-size: 28px;
    color: #ff6f61;
    margin: 0;
}

main {
    margin-top: 80px;
}

#name {
    text-align: center;
    padding: 10px 0;
}

#name h2 {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    color: #ff6f61;
    padding: 0;
}

#timer {
    text-align: center;
    padding: 0 20px;
}

#timer p {
    font-size: 20px;
    margin-bottom: 5px;
}

#timer h2 {
    font-size: 36px;
    color: #ff6f61;
}

#dates {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.date-item {
    background-color: #ffffff;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 180px;
    transition: transform 0.3s;
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

.date-item:nth-child(1) {
    animation-delay: 0.2s;
}

.date-item:nth-child(2) {
    animation-delay: 0.4s;
}

.date-item:nth-child(3) {
    animation-delay: 0.6s;
}

.date-item:hover {
    transform: translateY(-10px);
}

.date-item p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.date-item span {
    font-size: 14px;
    color: #777;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

#gallery img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 10px;
    border-radius: 10px;
    position: relative;
    opacity: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

#gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#gallery img::after {
    content: attr(data-date);
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: 12px;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#imgDate {
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-top: 2.5%;
}

#popupImg {
    max-width: 80%;
    max-height: 80%;
    margin: 1% auto 0 auto;
    display: block;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


#closeBtn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

#closeBtn:hover {
    color: #ffffff75;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body::before {
    content: '';
    position: fixed;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle at center, rgba(255, 111, 97, 0.2), transparent 70%);
    animation: rotateBackground 30s linear infinite;
    z-index: -1;
}

#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.arrow {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 1000;
    user-select: none;
    padding: 0 15px;
}

#leftArrow {
    left: 10px;
}

#rightArrow {
    right: 10px;
}

.arrow:hover {
    color: rgba(255, 255, 255, 1);
}

.arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    font: 16px 'Montserrat', sans-serif;
    color: #9b9b9b;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

.container a {
    color: #9b9b9b;
    text-decoration: underline;
}

.container a:hover {
    color: #2b2b2b;
}