@import url('https://fonts.googleapis.com/css2?family=Italianno&display=swap');
*{
    font-family: var(--font-text);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root{
    --bg-color: #FFB3B4;
    --font-text: "Italianno", cursive;
    --font-title-size: 100px; 
    --font-title-color: #8E2F2F;
    --font-normal-size: 40px;
    --container-color: #F2FFD1;
    --container-size: 70%;
    --max-height: 100vh;
    --flex-direction-flow: column;
    --flex-location-flow: center;
    --margin-body: 50px 80px 50px 80px;
    --mobile-title-size: 120px;
    --mobile-normal-size: 50px;
    --laptop-title-size: 65px;
    --laptop-normal-size: 30px;
}
html {
    font-size: var(--font-normal-size);
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-color);
    height: var(--max-height);
    width: 100%;
    overflow-x: hidden;
}
.landing-section{
    display: flex;
    flex-direction: var(--flex-direction-flow);
    height: var(--max-height);
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.main-section, 
.photo-area-section, 
.proposal-section{
    display: flex;
    flex-direction: var(--flex-direction-flow);
    justify-content: center;
    align-items: center;
}
.photo-area-section, .proposal-section {
    margin-top: 150px;
}
.photo-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin: var(--margin-body);
}
figure {
    width: 336px;
    height: 500px;
    background-color: #eaeaea;
    padding: 19px 19px 85px 19px;
    box-shadow: 20px 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
figcaption {
    margin-top: 12px;
    text-align: center;
    font-family: 'Caveat'; 
    font-size: 18px;
    color: #444;
  }
figure:nth-child(odd) {
    transform: rotate(-3deg);
}
figure:nth-child(even) {
    transform: rotate(3deg);
}

figure:hover {
    transform: rotate(0) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

figure img {
    width: 100%;
}
.landing-section h1,
.main-section h1, .main-tag {
    color: var(--font-title-color);
}
.main-tag{
    font-size: 60px;
}
.main-top-section {
    display: flex;
    padding-top: 50px;
    align-items: center;
    justify-content: center;
}
.main-top-section img {
    height: 300px;
    opacity: 0;
    transform: scale(1) translateY(50px);
    animation: bloomIn 3s ease-out forwards;
}
.main-top-section img:last-child {
    animation-delay: 0.9s;
}
.main-top-header {
    display: flex;
    flex-direction: var(--flex-direction-flow);
    align-items: center;
    justify-content: center;
}
.landing-section h1,
.main-section h1 {
    font-size: var(--font-title-size);
}
.landing-section img {
    width: 450px;
    height: 450px;
    cursor: pointer;
    animation: heartbeat 1.2s infinite ease-in-out;
}
.shadow{
    padding-top: 110px;
    height: 30px;
    width: 400px;
    background: radial-gradient(#00000040, transparent, transparent);
    transition: 0.5s;
    border-radius: 50%;
}
.hidden-section{
    display: none
}
.long-message {
    background-color: var(--container-color);
    margin: var(--margin-body);
    padding: 100px;
    line-height: 1.8;
    cursor: pointer;
    border-radius: 10px;
    transform-origin: center;
    transition: transform 3.5s ease-in-out;
}
.long-message.flipping {
    transform: rotateY(180deg) scaleX(-1);
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}
.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 6px;
    background: #fff;
    padding: 10px 10px 40px 10px;
    object-fit: contain;
    animation: zoomIn 0.25s ease-in-out;
}
.modal-inner {
    background: #fff;
    padding: 10px 10px 40px 10px;
    text-align: center;
    animation: zoomIn 0.25s ease-in-out;
}
.modal-content {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.modal-caption {
    margin-top: 16px;
    font-family: 'Caveat';
    font-size: 20px;
    color: #444;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}
.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}
.typewriter {
    overflow: hidden;              
    white-space: nowrap;           
    border-right: 0.15em solid #c71e1e; 
    animation: typing 5s steps(30, end), blink 0.7s step-end infinite;
}
.button-proposal {
    padding-top: 50px;
}
.button{
    border-radius: 25px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #420e0e; 
    color: wheat;
    border-color: rgb(36, 36, 36);
}
.hidden-content {
    display: none;
    padding: 80px 0;
    justify-content: center;
    align-items: center;
}
.see-more-content {
    padding: 80px 0;
    cursor: pointer;
    animation: floatHint 1.8s ease-in-out infinite;
}
.hidden-img {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 3s ease, transform 2.5s ease;
    display: block;
    margin-top: 20px;
    border-radius: 50%;
}
.hidden-img.visible {
    opacity: 1;
    transform: scale(1);
}
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
}
.popup-close:hover {
    opacity: 0.8;
}
.popup-content {
	background: white;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	max-width: 700px;
	width: 100%;
	margin: 0 auto;
}
.popup-content p {
	font-size: 1em;
	color: #410202;
	margin-bottom: 20px;
}
textarea {
	width: 100%;
	height: 150px;
    margin-top: 20px;
	padding: 10px;
	font-size: 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
	margin-bottom: 10px;
	resize: vertical;
    font-family: 'Courier New', Courier, monospace;
}
#submit-btn {
	background-color: #4caf50;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
#clear-btn {
	background-color: #660613;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 20px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
::-webkit-scrollbar {
  width: 18px; /
}
::-webkit-scrollbar-track {
  background: #ffe6e6; 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: #ff4d4d;
  border-radius: 10px;
  border: 3px solid #ffe6e6;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #ff1a1a; 
}
@keyframes floatHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes bloomIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
@keyframes typing {
    from { width: 0; }
    to { width: 11ch; } 
}
@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 100%;
        max-height: 80vh;
        padding: 0.75rem;
    }

    .modal-close {
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
}
@keyframes heartbeat {
    0% {
      transform: scale(1);
    }
    30% {
      transform: scale(1.15);
    }
    60% {
      transform: scale(1.2);
    }
    80% {
      transform: scale(1.15);
    }
    100% {
      transform: scale(1);
    }
}
@media (max-height: 790px) {
    html {
        font-size: var(--laptop-normal-size);
    }
    .landing-section .main-tag, .main-top-header p, .photo-area-section p {
        font-size: var(--laptop-normal-size);
    }
    .landing-section h1, .main-section h1, .main-top-section h1, .hidden-content h1{
        font-size: var(--laptop-title-size)
    }
    .landing-section img {
        width: 200px;
        height: 200px;
    }
    .shadow{
        padding-top: 50px;
        height: 10px;
        width: 200px;
    }
    .hidden-content{
        scroll-margin-top: 200px;
    }
    .hidden-img {
        height: 200px;
    }
    figure {
        width: 280px;
        height: 400px;
    }
    figcaption {
        font-size: 14px;
    }
    .button {
        font-size: 10px;
    }
    .modal-content {
        padding: 10px 10px 10px 10px;
    }
    .modal-inner p {
        font-size: 15px;
    }

}
@media (max-width: 1000px) {
    html {
        font-size: var(--mobile-normal-size);
    }
    .landing-section h1, .main-section h1, .main-top-section h1 {
        font-size: var(--mobile-title-size);
    }
    .landing-section img {
        margin-top: 100px;
    }
    .shadow {
        margin-top: 50px;
    }
    .hidden-content {
        height: 100vh;
    }
    .hidden-img{
        height: 500px;
    }
    .button-proposal{
        padding-top: 200px;
    }
    .button {
        font-size: 30px;
    }
    .popup-content p {
        font-size: 1em;
    }
    textarea {
        font-size: 30px;
    }
    #submit-btn {
        font-size: 25px;
    }
    #clear-btn {
        font-size: 25px;
    }

}
