@font-face {
    font-family: Cardo;
    src: url(../Fonts/Cardo-Regular.ttf);
}

@font-face {
    font-family: Pinyon;
    src: url(../Fonts/PinyonScript-Regular.ttf);
}

body {
    margin: 0px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-family: Cardo, serif;

    background-image: url(../Pictures/rosasyrener.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}

#headerH2 {
    font-size: 40px;
    /* font-family: 'Great Vibes', cursive; */
    font-family: Pinyon, cursive;
    letter-spacing: 3px;
    margin: 0px;
    padding: 1px;
}

.firstH2OnPage {
    font-size: 45px;
    font-family: Pinyon, cursive;
    margin: 15px;
    text-align: center;
}

h1 {
    font-size: 45px;
    letter-spacing: 4px;
    font-weight: normal;
    margin: 10px;
}

h4 {
    font-family: Cardo;
    text-transform: uppercase;
}

#mainH4 {
    font-size: 20px;
    margin: 5px;
    margin-bottom: 25px;
    text-align: center;
}

#headerH3 {
    font-size: 30px;
    font-family: Pinyon, cursive;
}

#header {
    text-align: center;
    margin-top: 170px;
}

#topMeny {
    display: flex;
    justify-content: center;
    gap: 30px;
}

#topMeny a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    padding: 15px;
    border-radius: 20px;
    transition: transform 0.4s ease;
    background-color: white;
}

#topMeny a:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-dropdown {
    display: none;
}

#countdown {
    text-align: center;
    font-size: 20px;
    margin-top: 70px;
    margin-bottom: 30px;
    font-weight: bold;
    color: white;
    font-family: 'Playfair Display', serif;
}

#countdown span {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    background: #a5d5af;
    border: 2px solid white;
    border-radius: 10px;
    width: 130px;
}

/* main */

a {
    color: black;
}

a:hover {
    font-weight: bold;
}

#mainDiv {
    width: 750px;
    line-height: 2;
    margin: 50px auto;
}

.PelementCursive {
    font-style: italic;
}

.center {
    text-align: center;
}

.underlineOnDiv {
    border-bottom: 1px solid lightgrey;
}

#picToastmaster {
    height: 300px;
    width: auto;
    border-radius: 50%;
}

.picInWeddingDiv {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
}

#picInfo {
    margin-top: 45px;
}

#picOnIndex {
    display: flex;
    align-items: center;
}

#picOnContact {
    height: 400px;
    width: auto;
    border-radius: 20px;
}

.divFlex {
    display: flex;
    gap: 40px;
    padding: 30px 0px;
}

.divFlex a {
    color: black;

}

.divFlex p {
    margin: 2px;
}

ul {
    margin: 5px;
}

/* Formulär */

form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.divInForm {
    border: 1px solid black;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.divInForm p {
    margin: 2px;
    font-weight: bold;
}

.persons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

label {
    margin-bottom: 8px;
    display: block;
}

.input-field {
    border: 1px solid lightgray;
    font-size: 15px;
    width: 90%;
    padding: 10px;
    border-radius: 8px;
}

button {
    background-color: #a5d5af;
    color: white;
    border: 1px solid black;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #87ae8f;
}


/* Popup-ruta vid osa */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirm-box {
    background-image: url("../Pictures/rosasyrener.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 400px;
    height: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.confirm-content p {
    width: 60%;
    margin: 40px auto 20px auto;
}

.confirm-box .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.confirm-box button {
    background-color: #a5d5af;
    color: black;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.confirm-box button:hover {
    background-color: #87ae8f;
    transform: scale(1.05);
    text-decoration: underline;
}

.confirmation-content p#confirmText {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-top: 1rem;
    animation: fadeIn 0.6s ease-in-out;
}

/* Mjuk fade för OSA-popupen */
#confirmationOverlay {
    transition: opacity 0.8s ease-in-out;
}

/* 🌸 Laddningsindikator i popupen */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    border: 3px solid green;
    border-top: 3px solid #a5d5af;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




/* Större surfplattor och mindre laptops */
@media (max-width: 1000px) {
    #mainDiv {
        width: 90%;
    }

    .divFlex {
        gap: 20px;
    }

    #topMeny a {
        font-size: 18px;
        padding: 10px;
    }
}



/* Mobiler */
@media (max-width: 600px) {
    #headerH2 {
        font-size: 23px;
    }

    h1 {
        font-size: 35px;
    }

    h3 {
        margin: 5px;
    }

    #headerH3 {
        font-size: 23px;
    }

    #header {
        margin-top: 130px;
    }

    #countdown {
        font-size: 15px;
        margin-top: 40px;
    }

    #countdown span {
        display: inline-block;
        margin: 0px 3px;
        padding: 5px 10px;
        background: #a5d5af;
        border: 1px solid white;
        border-radius: 10px;
        width: 55px;
    }

    #dresscode {
        text-align: left;
    }

    .divFlex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .picInWeddingDiv {
        width: 150px;
        height: 150px;
    }

    #picInfo {
        margin-top: 0px;

    }

    #mainDiv {
        width: 80%;
        margin: 20px auto;
    }

    #topMeny {
        display: none;
    }

    .custom-dropdown {
        display: block;
        width: 60%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .dropdown-selected {
        background-color: white;
        font-size: 18px;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid #a5d5af;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dropdown-list {
        display: none;
        list-style: none;
        padding: 0;
        background-color: white;
        border: 1px solid #a5d5af;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 10;
        width: 80%;
        margin: 0px auto;
    }

    .dropdown-list.open {
        display: block;
    }

    .dropdown-list li a {
        display: block;
        text-decoration: none;
        color: #333;
        padding: 10px;
        transition: all 0.2s ease;
        font-family: 'Cardo', serif;
    }

    .dropdown-list li:hover {
        background-color: #a5d5af;
    }

    .dropdown-selected svg {
        transition: transform 0.3s ease;
    }

    .custom-dropdown.open .dropdown-selected svg {
        transform: rotate(180deg);
    }


    .firstH2OnPage {
        font-size: 35px;
    }

    #mainH4 {
        font-size: 15px;
    }

    .persons {
        display: block;
    }

    .confirm-box {
        width: 80%;
        height: 200px;
        background-size: cover;
        background-position: left;
    }
}