﻿
.hero-root {
    max-width: 600px;
    margin: 2.5rem auto;
    padding: 0 1rem 0 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero-header {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
}

div {
    text-align: center;
}

h1 {
    font-size: 2.75rem;
}

h2 {
    font-size: 2rem;
}
h1,h2,h3 {
    font-family: 'Tangerine', 'Georgia', serif;    
    line-height: 1;
    font-weight: 700;
    font-style: normal;
    margin: auto;
    margin-bottom: 1rem;   
}

.hr-left-bold {
    border: 2px solid;
    color: white;
    border-radius: 1px;
    opacity: 1.0;
}

.hr-left-line-bottom {
    border: 1px solid;
    color: white;
    opacity: 1.0;
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
}
        
html, body {    
    background-repeat: repeat;
    background-position: top left;
    background-color: var(--bg);
}

/* Heart floating effect */
.heart {
    position: fixed;
    pointer-events: none;
    font-size: 22px;
    line-height: 1;
    color: white;
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transform: translate(-50%,-50%);
    animation: heartFloat 2200ms ease-out forwards;
    z-index: 9999
}


/* Blurred backdrop picture frame */
.picture-frame {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #ccc;
    border-radius: 10px;
}

/* Google Maps embed frame */
.map-frame {
    height: 260px;
    overflow: hidden;
    border-radius: 10px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.picture-frame::before {
    content: "";
    position: absolute;
    inset: -30px;
    background-image: var(--picture-src);
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.82);
    z-index: 0;
}

.picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    margin: 0;
}

.picture-frame-link {
    display: block;
    text-decoration: none;
    border-radius: 10px;
}

.picture-frame-link:hover .picture-frame {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.picture-frame-link:hover .picture-frame::after {
    content: "📍 Öppna i Google Maps";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}


.image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.image-container img {
    position: absolute;
    width: 200px;
    height: auto;
    top: 0;
}

.image-container-left img {
    right: 10px;
    transform-origin: 100% 0;
    transform: rotate(-90deg) translateY(-100%);
}

.image-container-right img {
    left: 10px;
    transform-origin: 0 0;
    transform: rotate(90deg) translateY(-100%);
}


/* Login */
.login-root {
    max-width: 640px;
    margin: 3.5rem auto;
    padding: 1rem;
    position: relative;
    background-color: var(--bg)
}
/*.login-root::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(2px);
    z-index: 0
}*/
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2
}
.wedding-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    margin-top: 2rem;
    color: white
}

.login-box {
    background: #f4eddc;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    margin-top: 1rem;
    text-align: center;
    position: relative;
    z-index: 2
}
.login-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    flex-direction: column
}

.login-input {
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #e6e0db;
    width: 60%;
    font-size: 1rem;
}

.login-button {
    background: var(--accent);
    color: #000000;
    border: none;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.login-button:active {
    transform: translateY(1px);
    font-size: 2.7rem;
}

.login-error {
    color: #b00020;
    margin-top: 0.5rem
}

/*.site-title {
    font-family: 'Tangerine', 'Georgia', serif;
    font-size: 2.25rem;
    line-height: 1;
}*/

/*.center {
    margin: auto;
    width: 50%;
    border: 3px solid green;
    padding: 10px;
}
*/
/*.tangerine-regular {
    font-family: "Tangerine", cursive;
    font-weight: 400;
    font-style: normal;
}
*/
/*.tangerine-bold {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;
}*/

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #ccc;
    border-radius: 10px;
}

.slideshow-container::before {
    content: "";
    position: absolute;
    inset: -30px;
    background-image: var(--picture-src);
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.82);
    z-index: 0;
}

@keyframes slideshow-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.slideshow-img {
    animation: slideshow-fade 0.5s ease-in-out;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    padding: 0.15rem 0.55rem 0.3rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.slideshow-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.slideshow-btn-prev {
    left: 8px;
}

.slideshow-btn-next {
    right: 8px;
}

.slideshow-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.slideshow-dot-active {
    background: white;
}

/* Header responsive layout */
.header-bottom-img {
    display: none;
}

@media (max-width: 768px) {
    .header-side-img {
        display: none;
    }

    .header-bottom-img {
        display: block;
        margin-top: 0.5rem;
    }
}
