#navigation, #navigation a:active, #navigation a:hover, #navigation a:visited, #section-menu a:active, #section-menu a:hover, #section-menu a:visited, #navigation>span, #navigation a {
    color: black;
}

#navigation>a {
    display: none;
    font-family: Georgia, Times, 'Times New Roman', serif;
    font-weight: 700;
    text-align: center;
    padding: 0.6em;
    font-size: 1em;
}

@keyframes loadingGradient {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@media (min-width: 768px) {
    #navigation>a {
        display: inline;
        padding: 1em;
        font-size: 1.2em;
    }
}

#screens {
    margin: 0;
    padding: 0;
}

.card {
    transition: all 0.2s ease-in-out;
}

#cart {
    padding-bottom: 20px;
    font-family: 'PT Sans';
}

#screens>section {
    /* display: none; */
    position: absolute;
    width: 100%;
    padding: 5%;
    /* transition: all 0.5s ease-in-out; */
}

#cart .card {
    border: none;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
}

#cart .card:hover {
    transform: scale(1.2);
}

.card-text {
    font-family: 'PT Sans';
}

@media (hover: none) {
    #cart .card:hover {
        transform: none;
    }
    #choose_gallery button:hover {
        transform: none;
    }
}

#cart .card-img-top {
    width: 80px;
    height: 80px;
    background: green;
    border-radius: 40px;
}

#cart .card-img-top.active, .card-question.active {
    border: solid #007bff 5px;
}

#choose_photo {
    z-index: 100;
}

#file_input {
    display: none;
}

#file_drop {
    width: 100%;
    height: 400px;
    margin-bottom: 100px;
    border-radius: 20px;
    border: 5px dashed lightgrey;
    transition: all 0.3s ease-in-out;
    display: flex;
}

#file_drop.over {
    background-color: lightgray;
    transform: scale(1.05);
}

#file_drop>div {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
    color: gray;
    font-size: 1.3em;
    padding: 10px;
    vertical-align: middle;
    vertical-align: middle;
    line-height: 2em;
}

#file_drop button {
    background: grey;
    border: none;
    color: white;
    border-radius: .3em;
    margin: .3em;
}

header {
    background-size: cover;
    transition: all 0.5s ease-in-out;
}

footer {
    color: darkgrey;
    background: none;
}

footer a {
    color: darkgrey;
}

#footer-phone {
    color: darkgrey;
}

footer>span {
    color: darkgrey;
}

#form_common article {
    border: 1px solid lightgray;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease-in-out;
}

#form_common form {
    padding: 1em;
}

#form_common article>div {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(180, 180, 200, 0.7);
    overflow: hidden;
    border-radius: 15px;
    z-index: 1000;
}

#form_common article.over {
    border: dashed grey;
    transform: scale(1.03);
}

#form_common article.over>div {
    display: block;
}

#form_common-goto-choose_photo, #form_common-goto-choose_gallery {
    border: 1px solid grey;
}

#form_common form>* {
    margin-top: .5em;
    margin-bottom: .5em;
}

#form_common form>p {
    text-align: center;
}

#form_common form>p>span {
    display: block;
}

#form_common_price {
    font-size: 2em;
}

#cake_preview {
    height: auto;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 100;
    margin-bottom: 2em !important;
}

.hide {
    opacity: 0 !important;
}

#choose_gallery.hide {
    transform: scale(1.3);
}

#choose_photo {
    transition: all 0.3s ease-in-out;
}

#choose_photo.hide {
    transform: translateY(100px) scale(0.5);
    transition: all 0.3s ease-in-out;
}

#screens .card-img-top {
    box-shadow: lightgrey 0 0 20px;
    border-radius: 50px;
    width: 200px;
    height: 200px;
    border: none;
}

#screens .card-img-top:visited {
    border: none !important;
}

#screens img.card-img-top {
    border: none !important;
    object-fit: cover;
}

#choose_gallery.hide .card-img-top {
    filter: blur(10px);
}

#screens .card {
    margin: 20px;
    /*opacity: 0;*/
    /*transform: scale(2);*/
    border: none;
}

#loader .card {
    width: 200px;
    height: 200px;
    background: linear-gradient(90deg, rgba(240, 240, 240, 1) 0%, rgba(250, 250, 250, 1) 50%);
    background-size: 300% 300%;
    animation: loadingGradient 2s ease infinite;
    box-shadow: lightgrey 0 0 20px;
    border-radius: 50px;
}

#screens .card.loaded {
    animation: none;
    background: initial;
    border: inherit;
}

#screens .card.loaded:hover {
    transform: scale(1.1) !important;
    cursor: pointer;
}

@media (hover: none) {
    #screens .card.loaded:hover {
        transform: none !important;
        cursor: inherit;
    }
}

.row {
    justify-content: center;
    flex-wrap: wrap;
}

#choose_gallery p {
    text-align: center;
}

#screens h4 {
    text-align: center;
    font-size: 1em;
    line-height: 2rem;
}

#form_fast, #form_figure {
    text-align: center;
}

#form_fast img, #form_figure img {
    display: block;
    width: 300px;
    border-radius: 50px;
    margin: 0 auto;
}

#form_fast h5, #form_figure h5 {
    text-align: center;
    margin: 1em;
}

div.btn-group {
    display: flex;
}

#form_fast>div.btn-group button, #form_figure>div.btn-group button {
    flex-basis: 0;
}

#form_fast_price, #form_figure_price {
    font-size: 2em;
}

#form_fast_weight, #form_figure_weight {
    max-width: 500px;
    margin: 20px auto;
}

#cart_price {
    font-size: 2em;
}

#form_order form {
    max-width: 500px;
    margin: 0 auto;
}

#summary img {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    object-fit: cover;
}

#summary article {
    margin-bottom: 50px;
}

#summary .media {
    margin: 20px;
}

#form_common_images, #form_common_figures {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px;
    position: relative;
}

#form_common_images>div, #form_common_figures>div {
    transition: all ease 0.3s;
    position: relative;
}

#form_common_images>div {
    border-radius: 22px;
    margin-bottom: 20px;
}

#form_common_figures>div {
    border-radius: 50px;
    margin: 10px;
}

#form_common_images img {
    height: 200px;
    width: auto;
    border-radius: 20px;
}

#form_common_figures img {
    height: 100px;
    width: 100px;
    border-radius: 50px;
}

#form_common_images>div:hover, #form_common_figures>div:hover {
    box-shadow: 0px 0px 20px red;
    transform: scale(0.9);
}

@media (hover: none) {
    #form_common_images>div:hover, #form_common_figures>div:hover {
        box-shadow: inherit;
        transform: none;
    }
}

#form_common_images *, #form_common_figures * {
    cursor: pointer;
}

#form_common_images svg, #form_common_figures>div>svg {
    position: absolute;
    right: 0px;
    width: 100%;
    height: 100%;
    padding: 25%;
    color: red;
    opacity: 0;
    transition: all ease 0.3s;
}

#form_common_images svg:hover, #form_common_figures svg:hover {
    opacity: 1;
}

#form_common_figures_plus {
    width: 100px;
    height: 100px;
    color: lightgray;
    transition: all ease-in-out 0.3s;
    border-radius: 100px;
}

#form_common_figures_plus:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px grey;
}

@media (hover: none) {
    #form_common_figures_plus:hover {
        transform: none;
        box-shadow: inherit;
    }
}

#form_common_description {
    height: 3em;
}

.card-question {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: inline-block;
    vertical-align: middle;
}

.media .card-question {
    width: 100px;
    height: 100px;
    border-radius: 50px;
}

.card-question>* {
    width: 100% !important;
    height: 100%;
    padding: 20px;
    color: lightgray;
}

@media (max-width: 768px) {
    .btn-group {
        flex-wrap: wrap;
        box-shadow: none !important;
    }
    .btn-group button, .btn-group label {
        flex-basis: 100% !important;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
        border-radius: .3rem !important;
        margin: 5px !important;
        padding: .5rem 1rem;
    }
    #screens .card-img-top {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    #screens .card {
        margin: auto;
        margin-top: 20px;
    }
}

#final {
    text-align: center;
}

#final svg {
    width: 200px;
    height: 200px;
    color: lightgreen;
}

#choose_gallery>.row {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    margin-left: 4px;
}

#choose_gallery>.row>img {
    flex: auto;
    height: 250px;
    width: auto;
    margin: 0 8px 8px 0;
    object-fit: cover;
    border-radius: 20px;
}

#choose_gallery {
    left: 10%;
    right: 0;
    width: 80% !important;
    height: 100% !important;
    padding: 0 !important;
    text-align: center;
}

#choose_gallery button {
    position: fixed;
    bottom: 50%;
    font-size: 2em;
    border-radius: 1em;
    /* margin: 0 auto; */
    background-color: #2DCCD3;
    left: 50%;
    width: 10em;
    height: 2em;
    margin-bottom: -1em;
    margin-left: -5em;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 5px;
    transition: all 250ms ease-in-out;
    border: solid 2px white;
}

#choose_gallery button:hover {
    transform: scale(1.1);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 15px 15px;
}

@keyframes loading {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#loader>svg {
    width: 120px;
    /* margin: 0 auto; */
    position: fixed;
    display: block;
    left: 50%;
    margin-left: -60px;
    top: 50%;
    margin-top: -100px;
    animation: loading 700ms infinite linear;
}

.loader {
    text-align: center;
    font-size: 2em;
    color: lightgrey;
    display: none;
}

@media (max-width: 768px) {
    #choose_gallery>.row>img {
        flex: auto;
        height: 150px;
        width: auto;
        object-fit: cover;
        border-radius: 5px;
    }
    #choose_gallery button {
        bottom: 20%;
        left: 50%;
        width: 8em;
        margin-left: -4em;
    }
    #choose_gallery {
        width: 100% !important;
        left: 0;
    }
}