/* contedores principais */
html {
    height: 100%;
    margin: 0;
}

body {
    /*height: 100%;*/
    margin: 0;
    /*background-color: red;*/
}

body {
    margin: 0;
    /*background-color: red;*/
}

header {
    margin: 0;
    /*background-color: paleturquoise;*/
}

main {
    margin: 0;
    /*background-color: white;*/
}

footer {
    margin: 0;
    /*background-color: paleturquoise;*/
    box-shadow: 0 50vh 0 50vh #313030;
}

/* seccions */

#index,
#dicionarios,
#dicionarios-crear {
    max-width: 1000px;
}

/* formularios */
.form-control,
.input-group-text {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.form-group .form-control-with-icon {
    padding-left: 2.375rem;
}

.form-group .form-control-icon {
    position: absolute;
    z-index: 5;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

.custom-control-input {
    position: relative;
    margin-left: 5px;
}

/* sweet alert 2 */
body.swal2-shown {
    padding-right: 0px !important;
}

.swal2-popup,
.swal2-modal,
.swal2-show {
    padding: 0px;
}

.swal2-title {
    text-align: left;
    margin-top: 0 !important;
    padding: 16px;
}

.swal2-html-container {
    text-align: justify;
    margin: 0;
    padding: 16px;
}

.swal2-actions {
    text-align: justify;
    margin: 0;
    padding: 16px;
}

/* modal: mirar o que vale aqui */
body.modal-open {
    padding-right: 0px !important;
    position: fixed;
    overflow-y: scroll;
    width: 100%;
}

.bootbox {
    padding-right: 0px !important;
}

.modal {
    direction: rtl;
    overflow-y: auto;
}

.modal .modal-dialog {
    direction: ltr;
}

.modal-open {
    overflow: visible;
}

/* elementos */

/* outros */
.form-group.required label:after {
    content: " * ";
    color: #D81126;
}

a.underline-link {
    text-decoration: underline;
}

nav ul {
    margin-bottom: 0;
}

.span-link {
    cursor: pointer;
    color: #007bff;
}

.span-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.span-link-error {
    cursor: pointer;
}

.span-link-error:hover {
    text-decoration: underline;
}


.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}

.navbar {
    /*   z-index should be above .close-navbar-toggler */
    z-index: 2;
}

.close-navbar-toggler {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    cursor: pointer;
}

.close-navbar-toggler.collapsed {
    z-index: -1;
}

textarea {
    resize: none;
}

.no-margin {
    margin: 0;
}

.no-vertical-padding {
    padding-top: 0;
    padding-bottom: 0;
}

.width-auto {
    width: auto;
}

.form-text-editor {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #313030;
    border-radius: 0.1rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* arreglos á mostra do contido do ckeditor */

.arreglo_ckeditor,
.arreglo_ckeditor>*,
.arreglo_ckeditor>*>*,
.arreglo_ckeditor>*>*>* {
    max-height: 100%;
    max-width: 100%;
}

.arreglo_ckeditor>figure.table {
    font-size: 14px;
}

.arreglo_ckeditor>figure.table>table {
    margin-left: auto;
    margin-right: auto;
}

.arreglo_ckeditor>figure.table>figcaption {
    text-align: center;
    font-style: italic;
}

.arreglo_ckeditor>figure.image {
    text-align: center;
}

.arreglo_ckeditor>figure.image-style-block-align-left {
    text-align: left;
}

.arreglo_ckeditor>figure.image-style-block-align-right {
    text-align: right;
}

.arreglo_ckeditor>figure.image>figcaption {
    text-align: center;
    font-style: italic;
}

.arreglo_ckeditor>figure.media {
    place-content: center;
}

/* vue animacions */
.fade-enter-active,
.fade-leave-active {
    transition: opacity .3s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}

.shake-enter-active {
    animation: shake 0.2s linear 0.05s 2;
}

.shake-leave-active {
    transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}

.shake-enter,
.shake-leave-to,
.shake-leave {
    transform: translateX(10px);
    opacity: 0;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.list-tags-item {
    display: inline-block;
    margin-right: 10px;
}

.list-tags-enter-active {
    animation: popout 0.4s ease 0s 1 normal;
}

.list-tags-leave-active {
    animation: popout 0.6s ease 0s 1 reverse;
}

@keyframes popout {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.list-fade-item {
    display: inline-block;
    margin-right: 10px;
}

.list-fade-enter-active {
    animation: fade 0.2s ease 0s 1 normal;
}

.list-fade-leave-active {
    animation: fade 0.3s ease 0s 1 reverse;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popout-enter-active {
    animation: popout 0.4s ease 0s 1 normal;
}

.popout-leave-active {
    animation: popout 0.6s ease 0s 1 reverse;
}

.popout-text-enter-active {
    transition: opacity .3s ease 0.6s;
}

.popout-text-leave-active {
    transition: opacity .3s;
}

.popout-text-enter,
.popout-text-leave-to {
    opacity: 0;
}

div#links-dicionarios .links-dicionarios-main {
    margin-top: 20px;
    margin-left: -10px;
}

div#language-selector ul {
    flex-direction: row;
}

div#language-selector ul li {
    list-style: none;
}

main#app .idiomaDicionario{
    font-weight: 500;
    color: black;
}

main#app div#language-selector .active {
    font-weight: 700 !important;
    color: #6c757d !important;
}

img#imaxe-dicionario {
    font-size: 20px;
}

#language-selector-link-divider {
    padding-top: 6px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 700;
}

a#dictionary-name {
    color: black;
}

.language-selector-index {
    margin-bottom: 48px;
    margin-top: -28px;
    padding-right: 15px;
}

@media (max-width: 575px) {
    div#links-dicionarios .links-dicionarios-main {
        border: solid 2px #009acd;
        margin-left: 0px;
        height: 40px;
    }

    div#links-dicionarios {
        margin-left: 0px !important;
    }

    a#go-back-link {
        padding-right: 50px !important;
    }
}


