@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&family=Roboto&display=swap');

:root{
    --light-green: #E6F0E6;
    --dark-green: #3e4a44;
    --dark-green-hl: #5d7267;
    --dark-yellow: #FEC361;
    --dark-yellow-trans: rgba(254, 190, 80, 0.7);
    --grey: #919592;
    --dark-navy: #3b2847;;
    --black: rgb(25, 25, 25);
}

*{
    margin: 0px;
    padding: 0px;
    font-size: 20px;
    box-sizing: border-box;
}

@font-face {
    font-family: "army-dirty";
    src: url("../fonts/XXII-DIRTY-ARMY.ttf") format("truetype");
}
@font-face {
    font-family: "army-clean";
    src: url("../fonts/XXII-STRAIGHT-ARMY.ttf") format("truetype");
}
body{
    background-color: white;
}
.body{
    background-color: var(--light-green);
}

/*HEADER INDEX*/

.index-header{
    width: 100%;
    height: 300px;
    background-image: url("../img/index/index-header.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.index-title{
    width: 100vw;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20%;
}

.index-title__h1{
    font-family: "army-dirty";
    color: var(--dark-green);
    display: inline-block;
    font-size: 1.4rem;
}

.index-title__logo{
    width: 90px;
    margin: 0px 10px;
}

/*NAVIGATION*/

.mobile-hb{
    width: 56px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.mobile-nav{
    height: 100vh;
    width: 100vw;
    z-index: 9;
    position: fixed;
    background-color: var(--light-green);
    background-image: url("../img/mobile-menu-bg.jpg");
    background-size: cover;
    background-position: center;
    display:none;
}

.mobile-nav__link-wrap{
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav__link{
    text-decoration: none;
    font-family: "army-clean";
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.mobile-nav__logo{
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 120px;
    transform: translateX(-50%);
}

.index-nav{
    display: none;
}

/*INDEX CONTENT*/

.index-content{
    background-color: var(--light-green);
}

.index-content__banner{
    width: 100vw;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-green);
}
.index-content__wrap{
    position: relative;
}
.index-content__link{
    text-transform: uppercase;
    text-decoration: none;
}
.index-content__btn{
    height: 120px;
    width: 200px;
    color: var(--dark-green);
    font-family:'Barlow', Times, serif;
    font-weight: 600;
    background-color: var(--dark-yellow-trans); 
    border: none;
    border-radius: 2px;
    position: relative;
    z-index: 2;
    transition: 0.5s;
}
.index-content__image{
    width: 100vw;
    height: 260px;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: all 2s ease-in-out;
}
.index-content__btn:hover{
    background-color: var(--dark-yellow);
}
.index-content__btn:active{
    transform: scale(90%, 90%);
}

/*FOOTER*/

.footer-wrap{
    background-color: var(--grey);
    padding: 20px;
    display: flex;
    justify-content: space-between;
}
.footer-bar{
    background-color: var(--dark-green);
    width: 100%;
    height: 8px;
}
.footer-wrap__link{
    display: block;
    width: fit-content;
    text-decoration: none;
    color: var(--dark-green);
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin-bottom: 10px;
    padding: 2px 6px;
}
.footer-wrap__link:hover{
    color: var(--dark-green-hl);
}
.footer-wrap__codinari-logo{
    height: 50px;
}

/*INNER PAGE*/

/*INNER HEADER*/

.inner-header{
    height: 180px;
    background-size: cover;
    background-position: center;
    overflow: visible;
    position: relative;
}

.inner-header__logo-mobile{
    width:56px;
    position: absolute;
    top: 20px;
    left: 20px;
}
.inner-header__logo-desktop{
    display: none;
}
.inner-header__category{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: var(--dark-yellow);
    position: absolute;
    bottom: 0px;
    color: var(--dark-green);
    font-family: "army-dirty";
    text-transform: uppercase;
}

.inner-nav{
    display: none;
}

/*INNER CONTENT*/

.inner-content{
    padding: 20px;
    min-height: calc(100vh - 200px);
}
.inner-banner{
    height: 200px;
    width: 100%;
    max-width: 420px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    border-radius: 12px;
}
.inner-banner--copyright{
    background-image: url("../img/copyright.jpg");
}
.bi_copyright{
    font-size: 0.7rem;
}
.inner-title{
    color: var(--dark-green);
    font-size: 1.2rem;
    font-family: 'Barlow', sans-serrif;
    font-weight: 600;
    margin-bottom: 20px;
}
.inner-text{
    display: flex;
    justify-content: space-between;
}
.inner-text__wrap{
    width: calc(100% - 20px);
    padding-right: 20px;
}
.inner-text__deco{
    width: 10px;
    height: 50px;
    background-color: var(--dark-yellow);
}
.inner-text__subtitle{
    color: var(--black);
    font-size: 1rem;
    font-family: 'Barlow', sans-serrif;
    font-weight: 600;
    margin-bottom: 10px;
}
.inner-text__para{
    color: var(--black);
    font-size: 0.8rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
}

/*BLOG PAGE*/

.posts{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}
.posts__link{
    text-decoration: none;
}
.posts__wrap{
    width: 145px;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s;
}
.posts__wrap:hover{
    transform: scale(95%);
}
.posts__wrap:active{
    transform: scale(90%);
}
.posts__banner{
    height: 80px;
    background-size: cover;
    background-position: center center;
}
.posts__text{
    height: 60px;
    padding: 5px 10px;
    background-color: var(--light-green);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.posts__trip{
    font-family: "army-clean";
    color: var(--dark-green);
    font-size: 1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.posts__title{
    font-family: "Barlow";
    color: var(--dark-green);
    font-size: 0.8em;
}

/*ERROR*/

.inner-banner--error{
    background-image: url("../img/error.jpg");
    background-position: center center;
}

/*CONTACT*/

.inner-banner--contact{
    background-image: url("../img/contact.jpg");
    background-position: bottom center;
}
.contact{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}
.contact__label{
    width: fit-content;
    font-family: "Barlow";
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dark-green);
    padding: 5px 5px 10px 0px;
}
.contact__required{
    color: #e3a94b;
}
.contact__input{
    padding: 5px 10px;
    font-family: "Roboto";
    font-size: 0.8rem;
    border-radius: 10px;
    border: solid var(--dark-green) 2px;
    color: rgb(59, 64, 60)
}
.contact__input--textarea{
    height: 200px;
    padding: 10px;
    border-radius: 12px;
    resize: none;
}
.contact__btn{
    width: fit-content;
    margin: 20px auto 0px auto;
    background-color: var(--dark-green);
    color: white;
    font-family: "Barlow";
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    transition: 0.5s;
}
.contact__btn:active{
    transform: scale(90%);
}
.contact__btn:hover{
    background-color: var(--dark-green-hl);
}
.inner-content__ty{
    width: 100%;
    max-width: 400px;
    margin: auto;
    background-color: var(--dark-yellow);
    border-radius: 10px;
    padding: 10px 15px;
    font-family: "Barlow";
    color: var(--dark-green);
    margin: 0px;
    margin-top: 20px;
}

/*LIGHTBOX*/

.preview{
    display: flex;
    justify-content: space-between;
}
.preview__image-wrap{
    padding-bottom: 20px;
    position: relative;
}
.preview__image-wrap--r2{
    display: none;
}
.preview__image{
    height: 80px;
    width: 100px;
    border-radius: 10px;
    object-fit: cover;
    transition: 0.5s;
}
.preview__image:hover{
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.last-img-overlay{
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 100px;
    border-radius: 10px;
    z-index: 1;
    position: absolute;
    right: 0px;
    top: 0px;
    transition: 0.5s;
}
.overlay-circle{
    background-color: white;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin: 0px 3px;
}
.last-img-overlay:hover{
    box-shadow:  0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.modal{
    display: none;
    background-color: rgba(0, 0, 0, 0.85);
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 1;
    left: 0px;
    top: 0px;
    overflow: auto;
    justify-content: center;
    align-items: center;
}
.modal__content{
    position: relative;
    margin: auto;
    padding: 0px;
    width: fit-content;
    height: fit-content;
}
.modal__close{
    position: absolute;
    left: 20px;
    top: 20px;
}
.modal__bi{
    font-size: 38px;
    color: white;
}
.modal__close:hover{
    color: rgb(195, 195, 195);
    text-decoration: none;
    cursor: pointer;
}
.modal__slide{
    display: none;
}
.modal__counter{
    color: #f2f2f2;
    font-family: "Roboto";
    background-color: rgba(128, 128, 128, 0.6);
    border-bottom-right-radius: 2px;
    font-size: 12px;
    padding: 8px 8px;
    position: absolute;
    top: 0;
}
.modal__image{
    max-width: 85vw;
    max-height: 90vh;
}
.modal__arrow{
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.5s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
.modal__arrow--next{
    right: 0;
    border-radius: 3px 0 0 3px;
}
.modal__arrow:hover{
    background-color: rgba(0, 0, 0, 0.8);
}
.post-wrap{
    padding-right: 20px;
}



@media only screen and (max-width: 1000px){
    .footer-wrap__link:active{
        background-color: rgba(136, 198, 252, 0.5);
    }
    .mobile-nav__link:active{
        background-color: rgba(136, 198, 252, 0.5);
    }
}

@media only screen and (min-width: 400px) {
    .preview__image{
        width: 28vw;
        height: calc(28vw * 0.7);
    }
    .last-img-overlay{
        width: 28vw;
        height: calc(28vw * 0.7);
    }
}

@media only screen and (min-width: 500px){
    .index-title__h1{
        font-size: 1.8rem;
    }
    .mobile-hb{
        top: 30px;
        right: 30px;
    }
    .index-content{
       padding: 30px; 
    } 
    .index-content__banner{
        height: 340px;
        width: calc(100vw - 60px);
        margin-top: 30px;
        border-radius: 4px;
    }
    .index-content__banner--first{
        margin: 0px;
    }
    .index-content__image{
        height: 340px;
        width: calc(100vw - 60px);
        border-radius: 4px;
    }
    .footer-wrap{
        padding: 20px 30px;
    }
    .inner-header__logo-mobile{
        top: 30px;
        left: 30px;
    }
}

@media only screen and (min-width: 700px){
/*INDEX*/
    .index-title{
        height: 60px;
    }
    .index-title__h1{
        font-size: 2rem;
    }
    .mobile-hb{
        width: 66px;
        top: 40px;
        right: 40px;
    }
    .index-content{
        padding: 40px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .index-content__banner{
        height: 220px;
        width: 42vw;
        margin: 0px;
    }
    .index-content__banner--r2{
        margin-top: 40px
    }
    .index-content__image{
        height: 220px;
        width: 42vw;
    }
    .index-content__link:hover ~ .index-content__image{
        transform: translate(-50%, -50%) scale(1.2);        
    }
    .index-content__image:hover{
        transform: translate(-50%, -50%) scale(1.2);
    }
    .index-content__btn{
        width: 180px;
        height: 100px;
    }
    .footer-wrap{
        padding: 20px 40px;
    }

    /*INNER PAGE*/
    .inner-header__logo-mobile{
        width: 66px;
        top: 40px;
        left: 40px;
    }
    .inner-header__category{
        width: 50vw;
        right: 0px;
        border-top-left-radius: 5px;
        background-color: var(--dark-yellow-trans);
    }
    .preview__image{
        width: 20vw;
        height: calc( 20vw * 0.7);
    }
    .last-img-overlay{
        width: 20vw;
        height: calc( 20vw * 0.7);
    }
    .preview__image-wrap--r2{
        display: block;
    }
    .last-img-overlay--1{
        display: none;
    }
    .posts__wrap{
        width: 180px;
    }
    .posts__banner{
        height: 100px;
    }
    .posts__text{
        height: 80px;  
        font-size: 16px;
    } 
}

@media only screen and (min-width: 850px){
    /*INDEX*/
    .index-header{
        height: 350px;
    }
    .index-title{
        height: 80px;
        bottom: calc(50% - 40px);
    }
    .index-title__h1{
        font-size: 2.5rem;
    }
    .index-title__logo{
        width: 110px;
    }
    .index-nav{
        display: block;
        height: 100%;
        width: 20vw;
        background-color: rgba(255, 255, 255, 0.5);
        position: relative;
    }
    .index-nav__link-wrap{
        height: calc(50% - 40px);
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .index-nav__link-wrap--bot{
        position: absolute;
        bottom: 0px;
    }
    .index-nav__link{
        text-decoration: none;
        color: var(--dark-green);
        font-family: "army-clean";
        font-size: 1.2rem;
        padding: 0px 8px;
        margin-top: 15px;
        transition: 0.2s;
    }
    .index-nav__link--first{
        margin: 0px;
    }
    .index-nav__link--current{
        border-bottom: 3px solid var(--dark-yellow);
    }
    .index-nav__link:hover{
        border-bottom: 3px solid var(--dark-yellow);
        color: var(--dark-green-hl)
    }

    .index-content{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .index-content__banner{
        width: 43vw;
        height: 240px;
        margin: 0px;
    }

    .index-content__image{
        width: 43vw;
        height: 240px;
        margin: 0px;
    }
    .index-content__banner--r2{
        margin-top: 40px;
    }

    /*INNER PAGE*/ 
    .inner-header__category{
        width: 305px;
        padding: 0px 20px;
    }
    .inner-header__logo-mobile{
        display: none;
    }
    .inner-header__logo-desktop{
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.5);
        width: 150px;
        height: 100%;
    }
    .inner-header__logo{
        width: 80px;
    }
    .center-content{
        display: flex;
        height: fit-content;
    }
    .inner-nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 0px;
        width: 150px;
        height: auto;
        background-color: var(--light-green);
    }
    .inner-nav__link{
        font-family: "army-clean";
        color: var(--dark-green);
        font-size: 1rem;
        text-decoration: none;
        margin-bottom: 16px;
        padding: 0px 5px;
        transition: 0.2s;
    }
    .inner-nav__link--current{
        border-bottom: 3px solid var(--dark-yellow);
    }
    .inner-nav__link:hover{
        border-bottom: 3px solid var(--dark-yellow);
        color: var(--dark-green-hl)
    }
    .inner-content{
        width: calc(100% - 150px);
    }

    .preview__image{
        width: 17vw;
        height: calc( 17vw * 0.7);
    }
    .last-img-overlay{
        width: 17vw;
        height: calc( 17vw * 0.7);
    }


    /*MOBILE + FOOTER*/
    .mobile-hb{
        display: none;
    }
    .mobile-nav{
        display: none;
    }
    .footer-wrap__codinari-logo{
        height: 60px;
    }
}

@media only screen and (min-width: 1000px){
    .post-content{
        display: flex;
        flex-flow: row-reverse;
        align-items: flex-start;
    }
    .preview{
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        width: 300px;
    }
    .inner-banner{
        max-width: none;
        width: 300px;
        height: 180px;
    }
    .inner-banner--contact,  .inner-banner--error{
        width: 420px;
        height: 220px;
    }
    .inner-text{
        width: 100%;
    }
    .preview__image{
        width: 100px;
        height: 80px;
    }
    .preview__image-wrap--row{
        margin-top: 20px;
    }
    .last-img-overlay{
        width: 100px;
        height: 80px;
    }
    .preview__image-wrap{
        height: 80px;
    }
    .footer-wrap{
        align-items: flex-end;
    }
    .footer-wrap__link{
        display: inline;
        font-size: 1.1rem;
        margin: 0px;
        margin-right: 20px;
        padding: 0px;
    }
}

@media only screen and (min-width: 1280px){
    .index-header{
        background-position: 50% 25%;
        height: 400px;
    }
    .index-title{
        justify-content: flex-start;
        padding-left: 20vw;
        height: 90px
    }
    .index-title__h1{
        font-size: 3rem;
    }
    .index-title__logo{
        width: 180px;
    }
    .index-nav{
        width: 15vw;
    }
    .index-nav__link-wrap{
        width: 100%
    }
    .index-nav__link--current{
        border-bottom: 5px solid var(--dark-yellow);
    }
    .index-nav__link:hover{
        border-bottom: 5px solid var(--dark-yellow);
    }
    .index-content__banner{
        width: 22vw;
    }
    .index-content__image{
        width: 22vw;
    }
    .index-content__banner--r2{
        margin: 0px;
    }
    .index-content__btn{
        width: 200px;
        height: 100px;
    }

    /*INNER PAGE*/
    .inner-header__logo-desktop{
        width: 194px;
    }
    .inner-header__logo{
        width: 100px;
    }
    .inner-nav{
        width: 200px;
    }
    .inner-header__category{
        min-width: 445px;
    }
    .inner-content{
        padding: 40px;
    }
    .preview{
        width: 440px;
        min-height: 300px;
    }
    .inner-banner{
        width: 440px;
        height: 240px;
    }
    .inner-banner--contact, .inner-banner--error{
        width: 600px;
        height: 300px;
    }
    .preview__image{
        width: 160px;
        height: 120px;
    }
    .preview__image-wrap{
        height: 120px;
    }
    .last-img-overlay{
        width: 160px;
        height: 120px;
    }
    .inner-text__wrap{
        padding-right: 40px;
    }
    .posts__wrap{
        width: 240px;
    }
    .posts__banner{
        height: 140px;
    }
    .posts__text{
        height: 100px;  
        font-size: 20px;
    } 
    .posts__trip{
        margin-bottom: 10px;
    }
}

@media only screen and (min-width: 1280px) and (min-height: 800px){
    .index-header{
        height: 500px;
    }
    .index-content__image-wrap{
        height: 280px;
    }
}