* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth"100;
    background-color: white;
    height: 100vh;
    height: 100dvh;
    /* Modern viewport height for mobile */
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

.main {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blocks {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-holder {
    position: relative;
    display: inline-block;
    max-width: 450px;
    width: 90%;
}

/* Create a container for the photo that will contain the m4 message */
.photo {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.photo.show {
    opacity: 1;
}

/* Messages styling */
h5 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    transition: opacity 2s ease-in-out;
}

/* Initial messages (m1, m11, m2, m22) - center screen, black text */
.m1,
.m11,
.m2,
.m22,
.m3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    opacity: 0;
    z-index: 10;
    white-space: nowrap;
}

.m1 {
    transform: translate(-50%, -50%) translateY(-90px);
}

.m11 {
    transform: translate(-50%, -50%) translateY(-30px);
}

.m2 {
    transform: translate(-50%, -50%) translateY(30px);
}

.m22 {
    transform: translate(-50%, -50%) translateY(90px);
}

.m3 {
    transform: translate(-50%, -50%) translateY(60px);
}

.m1.show,
.m11.show,
.m2.show,
.m22.show,
.m3.show {
    opacity: 1;
}

/* Final message (m4) - positioned relative to the image */
.m4 {
    position: absolute;
    bottom: 11px;
    right: 20px;
    color: white;
    opacity: 0;
    z-index: 20;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: right;
    pointer-events: none;
    font-size: 28px;
}

.m4.show {
    opacity: 1;
}

/* Phone link - positioned at top right of image */
.phone-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    opacity: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: opacity 2s ease-in-out, transform 0.3s ease;
    pointer-events: none;
}

.phone-link.show {
    opacity: 1;
    pointer-events: auto;
}

.phone-link:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.9);
}

.phone-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Hide elements initially */
.hidden {
    opacity: 0;
}