/* Article style */

.article {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 5px;

    border-radius: 10px;
}

.article h2, .article p {
    word-break: break-word;
}

.article-image {
    max-width: 100%;
    max-height: fit-content;
}

/* Comments style */

.comments {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.comment {
    margin: 10px;
}

/* Form comment style */

.form-comments {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 90%;
    max-width: 500px;
}

.form-comments input {
    height: 35px;
    margin-right: 0;
    margin-left: 0;
}

.form-comments button {
    margin-left: 15px;
}

.form-comments .error {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Responsive */

@media (min-width: 580px) {    
    .article{
        width: 85%;
        margin: 20px;
        padding: 20px;
    }
}

@media (min-width: 767.5px) {
    .articles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .article {
        width: 600px;
    }
}

@media (min-width: 1658px) {
    .article {
        width: 660px;
    }
}
/* Carroussel style */

.carroussel {
    display: flex;
    align-items: center;
    justify-content: space-around;

    margin: 20px;
}

.carroussel .before, .carroussel .after {
    cursor: pointer;

    width: 60px;
    max-height: 60px;

    background-color: white;
    border-radius: 50%;

    position: absolute;
    z-index: 3;
}

.carroussel .before {
    left: 20px;

    margin-left: 0;
}

.carroussel .after {
    right: 20px;

    margin-right: 0;
}

.carroussel .before img, .carroussel .after img {
    width: 100%;
}


.carroussel .before img:hover, .carroussel .after img:hover {
    background-color: var(--light-gray-hover);
    border-radius: 50%;

    transition: background-color 50ms;
}

.page-indicator .indicator {
    display: inline-block;
    width: 15px;
    height: 15px;

    margin: 5px;

    border-radius: 20px;
    background-color: gray;

    transition: background-color 0.5s;
}

.page-indicator .indicator.current {
    background-color: var(--dark-green);
}

@media (min-width: 580px) {
    .carroussel .before, .carroussel .after {
        position: relative;
    }
}
/* Modal style */

.modal {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    z-index: 6;

    background-color: rgba(29, 29, 29, 0.65);
    cursor: pointer;
}

.modal .content {
    width: 97%;
    height: 90%;

    padding: 25px;

    display: block;
    text-align: left;
    
    background-color: white;
    border-radius: 20px;

    overflow-y: auto;
    overflow-x: hidden;

    cursor: default;
}

.modal > .content > :first-child {
    width: 85%;
}

.modal .cross {
    position: fixed;
    top: 6vh;
    right: 2vw;

    width: 60px;
    height: 60px;

    font-size: 50px;
    border: solid 1px black;
    border-radius: 100%;
    background-color: white;
    line-height: 0.8;

    cursor: pointer;
}
.modal.image-container .tools {
    display: flex;
    justify-content: center;

    margin-bottom: 20px;
} 

.modal.image-container .tools button {
    width: 60px;
    height: 60px;
    
    cursor: pointer;

    border-radius: 10%;
    border: black;
    background-color: var(--light-gray);
}

.modal.image-container .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal.image-container .react-transform-wrapper {
    max-width: 100%;
}

@media (max-width: 600px) {
    .modal.image-container .tools {
        margin-top: 70px;
    }
}
@media (min-width: 580px){
    .card {
        padding: 20px;
        box-shadow: 0px 0px 30px rgb(95, 95, 95);
    }
}
p.content {
    display: flex;
    flex-direction: column;

    margin-bottom: 10px;
}

.spoiler {
    margin-bottom: 0;
}

.spoiler.reducted {
    max-height: 150px;
    overflow-y: hidden;
}

.spoiler-button {
    display: inline-block;

    margin-left: auto;
    margin-top: 0;

    background-color: white;
    border: none;

    font-size: 0.9em;
    color: gray;
}

@media (min-width: 1441px) {
    .spoiler-button {
        font-size: 1em;
    }

    .spoiler.reducted {
        max-height: 230px;
    }
}
.yt-iframe {
    width: 100%;
    max-width: 660px;
    height: 140px;
}

@media (min-width: 320px) {
    .yt-iframe {
        height: 170px;
    }
}

@media (min-width: 375px) {
    .yt-iframe {
        height: 200px;
    }
}

@media (min-width: 426px) {
    .yt-iframe {
        height: 270px;
    }
}

@media (min-width: 1658px) {
    .yt-iframe {
        height: 360px;
    }
}
/* Navigation style */

.navigation .current {
    background-color: lightgray;
}

.navigation > * {
    padding: 10px;
    margin: 0px;

    display: inline-flex;
    flex-direction: row;

    border-radius: 10px;
    border: solid 1px gray;
    background-color: white;
}
