﻿h1 {
    text-align: center;
}

h2 {
    font-style: italic;
    font-size: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .navbar-nav {
        max-width: 506px;
        max-height: 60px;
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        max-width: 730px;
        max-height: 60px;
        overflow: hidden;
    }
}

@media (min-width: 1200px) {
    .navbar-nav {
        max-width: 938px;
        max-height: 60px;
        overflow: hidden;
    }
}

.btn-dashboard {
    background-color: #4A4A4A;

    i {
        color: #FFFFFF;
    }

    &:hover {
        background-color: #4A4A4A !important;

        i {
            color: #777777 !important;
        }
    }
}

.sidebar-shadow {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background-color: #000000;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;

    &.opened {
        opacity: 0.4;
        visibility: visible;
    }
}

.sidebar-nav {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: -300px;
    width: 300px;
    z-index: 4;
    overflow-y: auto;
    background-color: #FFFFFF;
    visibility: hidden;
    transition: 0.5s;

    &.opened {
        left: 0;
        visibility: visible;
    }

    li.header {
        padding: 20px;
        text-transform: uppercase;
    }

    a {
        padding: 20px !important;
        color: #7A8387;
        box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.10);

        i {
            line-height: inherit;
        }
    }
}

.font1 {
    font-family: Lato, sans-serif;
}

.font2 {
    font-family: Dancing Script, cursive;
}

span.font2 {
    font-size: 125%;
    line-height: 100%;
}

h1.font2 {
    font-size: 60px;
    line-height: 52px;
}

.font3 {
    font-family: Playfair Display, serif;
}

.font4 {
    font-family: Tangerine, cursive;
}

span.font4 {
    font-size: 175%;
    line-height: 100%;
}

h1.font4 {
    font-size: 72px;
    line-height: 52px;
}

.font5 {
    font-family: Quicksand, sans-serif;
}

.font6 {
    font-family: Lora, serif;
}

.font7 {
    font-family: Amita, cursive;
}

.block-add {
    text-align: center;
    margin: -36px auto;
    height: 72px;
    position: relative;
    z-index: 1;

    hr {
        position: absolute;
        margin: 0 10px;
        border: 0;
        top: 50%;
        left: 0;
        right: 0;
        height: 0;
        border-bottom: 1px solid #D5D5D5;
        box-shadow: 0 2px 2px 0 #D5D5D5;
        visibility: hidden;
    }

    a {
        position: absolute;
        left: 50%;
        width: 72px;
        height: 72px;
        line-height: 72px;
        font-size: 36px;
        margin-left: -36px;
        padding: 1px 0 0 1px;
        border-radius: 36px;
        box-shadow: 0 2px 2px -2px #888888;
        color: #FFFFFF;
        text-decoration: none;
        visibility: hidden;
    }

    &:hover, &:active, &:focus, &.touch {
        hr, a {
            visibility: visible;
        }
    }
}

.file-upload {
    width: 100%;
    height: 100%;
    position: relative;

    input[type="file"] {
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .content {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 250px;
        height: 82px;
        margin: -41px 0 0 -125px;
        text-align: center;
        pointer-events: none;

        p {
            font-size: 18px;
            color: #ffffff;
        }

        .btn-group {
            pointer-events: auto;
        }
    }

    .modernly-photo {
        font-size: 48px;
        color: #ffffff;
        cursor: pointer;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }
}

.block {
    position: relative;

    [contenteditable] {
        white-space: pre-wrap;
    }

    [contenteditable=true] {
        min-height: 16px;
        background-color: rgba(230, 230, 230, 0.3);

        p {
            margin: 0;
        }
    }

    .btn-edit {
        position: absolute;
        top: 30px;
        right: 40px;
    }

    .panel-edit {
        position: absolute;
        top: 30px;
        right: 40px;
        display: none;
        text-align: right;
        z-index: 2;

        .btn-link {
            background-color: rgba(50,50,50,0.60);
            color: #FFFFFF;
            text-decoration: none;
        }

        .btn-save {
            border-radius: 30px;
            font-size: 24px;
            text-transform: uppercase;
            margin-right: 10px;
        }

        .btn-group-vertical {
            margin-top: 10px;
        }
    }

    &.edit {
        .btn-edit {
            display: none;
        }

        .panel-edit {
            display: block;
        }
    }
}

.block-welcome {
    height: 600px;
    background: no-repeat center 0 #FFFFFF;
    background-clip: content-box;

    > div {
        height: 100%;

        &.container {
            position: relative;
        }
    }

    .content {
        position: absolute;
        width: 570px;
        height: 400px;
        margin: -200px 0 0 -285px;
        padding-top: 50px;
        text-align: center;
        color: #FFFFFF;
        text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);

        h1 {
            display: inline-block;
            margin-bottom: 0;
        }

        p {
            font-size: 18px;
            line-height: 26px;
            margin: 30px 0 20px 0;

            a {
                color: #FFFFFF;
                font-weight: 700;
            }
        }
    }

    .file-upload {
        .btn-group {
            position: absolute;
            bottom: 27px;
            right: 30px;
        }

        .progress {
            position: absolute;
            bottom: 12px;
            right: 100px;
            width: 300px;
        }
    }

    &.edit {
        .content {
            background: rgba(0, 0, 0, 0.2);
            cursor: move;
        }

        .file-upload {
            background-size: 33.4% 33.4%;
            background-image: linear-gradient(to right, rgba(255, 255, 255, 0.7) 2px, transparent 0), linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 2px, transparent 0);
            background-position: -2px -2px;
        }
    }

    @media (max-width: 768px) {
        .content {
            left: 50% !important;
            top: 50% !important;
        }
    }
}

.block-story {
    .btn-add {
        margin-bottom: 30px;
    }

    .row {
        display: flex;
        flex-wrap: wrap;

        &:before, &:after {
            content: normal;
        }
    }

    .story {
        display: flex;
        flex-direction: column;
        padding-bottom: 30px;

        .text {
            max-width: 560px;
            flex-grow: 1;

            p {
                color: #7A8387;
                line-height: 28px;
                margin: 0;
            }
        }

        .photo {
            background: no-repeat center 0 #D8D8D8;
            max-width: 560px;
            height: 310px;
            margin-top: 30px;
        }

        .btn-delete {
            position: absolute;
            right: 10px;
            top: 18px;
        }

        @media (min-width: 768px) {
            &.col-md-12 {
                flex-direction: row-reverse;
                justify-content: flex-end;

                .text {
                    margin-left: 30px;
                    max-width: none;
                }

                .photo {
                    min-width: 360px;
                }
            }
        }

        @media (min-width: 992px) {
            &.col-md-12 {
                .photo {
                    min-width: 420px;
                }
            }
        }
    }

    &.edit {
        .story {
            background-clip: content-box;
            background-color: rgba(0, 0, 0, 0.2);
            cursor: move;
        }
    }
}

.block-details {
    text-align: center;
    margin-bottom: 30px;

    p {
        margin-bottom: 30px;

        strong {
            text-transform: uppercase;
        }

        a {
            color: inherit;
        }
    }

    .photo {
        margin: 30px 0;
        position: relative;
        overflow: hidden;

        .photo-img {
            width: 100%;
            min-height: 360px;
            display: block;
            margin: 0 auto;
            background-color: #d8d8d8;
        }

        .marker {
            position: absolute;
            left: 50%;
            top: 50%;
            margin: -57px 0 0 -30px;
            display: none;
        }

        .file-upload {
            display: none;
            position: absolute;
            top: 0;
        }

        &.map .marker {
            display: block;
        }

        &.custom .file-upload {
            display: block;
        }

        &.map .photo-img {
            width: auto;
            margin-left: 50%;
            transform: translateX(-50%);
        }
    }

    .btn-group {
        margin-bottom: 30px;

        .btn {
            min-width: 130px;
        }
    }
}

.block-photo {
    position: relative;

    .photo-img {
        width: 100%;
        background-color: #d8d8d8;
        min-height: 360px;
        display: block;
    }

    .file-upload {
        position: absolute;
        top: 0;
    }

    &.container {
        .file-upload {
            width: auto;
            left: 10px;
            right: 10px;
        }
    }
}

.block-events {
    margin-bottom: 30px;

    .btn-add {
        margin-top: 30px;
    }

    .row {
        display: flex;
        flex-wrap: wrap;

        &:before, &:after {
            content: normal;
        }
    }

    .event {
        position: relative;
        display: flex;
        flex-direction: column;
        background-clip: content-box;
        margin: 20px 0 0 0;
        border: 0;
        box-shadow: none;

        .panel-heading {
            padding: 0;
            border-radius: 3px;
        }

        p {
            margin: 0 20px 30px 20px;
            font-size: 16px;
            line-height: 28px;

            i {
                margin-right: 20px;
            }

            span {
                min-width: 220px;
                display: inline-block;
            }

            &.date {
                font-weight: 700;
            }

            &.name {
                font-weight: 700;
                text-transform: uppercase;
            }

            &:first-child {
                margin-top: 30px;
            }
        }

        .overlay {
            position: absolute;
            left: 10px;
            top: 0;
            right: 10px;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.2);
            cursor: move;
            display: none;
        }

        .btn-delete {
            position: absolute;
            right: 10px;
            top: 0;
        }
    }

    &.edit {
        .event .overlay {
            display: block;
        }
    }
}

.block-party {
    margin-bottom: 30px;

    .btn-add {
        margin-top: 30px;
    }

    .row {
        display: flex;
        flex-wrap: wrap;

        &:before, &:after {
            content: normal;
        }
    }

    .party {
        position: relative;
        margin-top: 30px;

        .text {
            margin: 20px 0 0 0;

            h5, h2, p {
                text-align: center;
            }

            h5 {
                margin: 0;
            }

            h2 {
                margin: 10px 0 20px 0;
                color: #323232;
            }
        }

        .photo {
            background: no-repeat center 0 #D8D8D8;
            width: 160px;
            height: 160px;
            border-radius: 100px;
            margin: 0 auto;
        }

        .progress {
            width: 160px;
            margin: 0 auto;
        }

        .btn-delete {
            position: absolute;
            right: 10px;
            top: 0;
        }

        @media (min-width: 992px) {
            .text {
                margin: 0 0 0 180px;

                h5, h2, p {
                    text-align: left;
                }
            }

            .photo {
                margin: 0;
                float: left;
            }
        }
    }

    &.edit {
        .party {
            background-clip: content-box;
            background-color: rgba(0, 0, 0, 0.2);
            cursor: move;
        }
    }
}

.block-buttons {
    margin-bottom: 30px;

    .btn-add {
        margin-top: 30px;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .button {
        position: relative;
        margin-top: 30px;

        @media (min-width: 768px) {
            &.col-sm-4 {
                flex: 0 0 33.333333%;
                max-width: 33.333333%;
            }
        }

        .btn-lg {
            width: 100%;
            height: 60px;
            line-height: 38px;
            overflow: hidden;
        }

        div.btn-lg {
            padding-top: 0;
            padding-bottom: 0;

            p {
                margin: 6px 0;
                line-height: 20px;
            }
        }

        .overlay {
            position: absolute;
            left: 10px;
            top: 0;
            right: 10px;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.2);
            cursor: move;
            display: none;
        }

        .btn-delete {
            position: absolute;
            right: 10px;
            top: 0;
        }
    }

    &.edit {
        .button .overlay {
            display: block;
        }
    }
}

.block-contacts {
    margin-bottom: 30px;

    .contact {
        position: relative;
        display: flex;
        flex-direction: column;
        background-clip: content-box;
        margin: 20px 0 0 0;
        border: 0;
        box-shadow: none;

        .panel-heading {
            padding: 0;
            border-radius: 3px;
        }

        p {
            margin: 0 20px 30px 20px;
            font-size: 16px;
            line-height: 28px;

            i {
                margin-right: 20px;
            }

            a {
                color: inherit;
            }

            &:first-child {
                font-weight: 700;
                text-transform: uppercase;
                margin-top: 30px;
            }
        }
    }
}

.block-title {
    padding-bottom: 40px;
}

.wedding-info {
    text-align: center;
    padding: 40px 0;

    p {
        font-size: 18px;
        line-height: 26px;
        margin: 30px 0 20px 0;

        a {
            color: #FFFFFF;
            font-weight: 700;
        }
    }
}

.quote {
    h1 {
        color: #323232;
        margin-bottom: 40px;
    }

    p {
        margin-bottom: 30px;

        a {
            color: inherit;
        }
    }

    .alert-success {
        margin-bottom: 30px;
        background-color: #EDFFFF;
        background-image: none;
        border-color: #7ACCC8;
        color: #2E807C;
    }
}

.quote-result {
    h3 {
        text-align: center;
        margin-top: 0;
    }

    p {
        text-align: center;
        margin-bottom: 0;
    }
}

.login {
    .checkbox {
        margin: 0;
    }
}
