@import url('https://fonts.googleapis.com/css?family=Playfair+Display');

@-webkit-keyframes slideInFromBottom {
    0% {
      -webkit-transform: translateY(2%);
              transform: translateY(2%);
      opacity: 0.7;
    }
    50% {
      -webkit-transform: translateY(-1%);
              transform: translateY(-1%);
      opacity: 0.9;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }

@keyframes slideInFromBottom {
    0% {
      -webkit-transform: translateY(2%);
              transform: translateY(2%);
      opacity: 0.5;
    }
    50% {
      -webkit-transform: translateY(-1%);
              transform: translateY(-1%);
      opacity: 0.8;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }


body{
    background-color: #f9f7f1;
}
.giornale{
    position: relative;
    font-family: 'Droid Serif', serif;
    font-size: 14px;
    color: #2f2f2f;
    width: 100%;
    min-height: 100vh;
    text-align: center;
}
.footer-news{
    color: #2f2f2f;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
header{
    margin-top: 40px;
    padding: 10px;
    font-family: serif;
    font-weight: 900;
    font-size: 110px;
    text-transform: uppercase;
    line-height: 6rem;
    letter-spacing: -0.5rem;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    border-top: 2px solid #2f2f2f;
    border-bottom: 2px solid #2f2f2f;
    width: 80vw;
}
.giornale h4{
    margin-top: 2em;
    margin-bottom: 3.5em;
    font-family: serif;
}
.articoli{
    margin-top: 5%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.carta{
    margin: 30px;
    padding: 10px;
    width: 310px;
    height: 550px;
    background: inherit;
    border-radius: 15px;
    -webkit-transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    -o-transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    /*
    border-right: 1px solid #2f2f2f;
    border-left: 1px solid #2f2f2f;*/
}
.carta:hover {
    -webkit-box-shadow: inset 0 0 100px #e6ddc183;
            box-shadow: inset 0 0 100px #e6ddc183;
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
        transform: scale(1.03);
}

.titolo{
    height: 70px;
    font-size: 30px;
    font-style: italic;
    font-weight: 300;
    line-height: 35px;
}
.slika{
    margin-top: 10px;
    height: 180px;
    width: 280px;
    -o-object-fit: cover;
       object-fit: cover;
    -webkit-filter: grayscale(85%);
            filter: grayscale(85%);
    border-radius: 3px;
}
.artikl{
    height: 130px;
    padding: 10px;
    margin-top: 10px;
    font-size: 19px;
    margin-bottom: 10px;
}
.date{
    font-size: 15px;
    margin: 20px;
}
.presImg{
    position: relative;
}



a.povekje{
    position: absolute;
    color: white;
    top: 10px;
    left: 5px;
    height: 180px;
    width: 280px;
    border-radius: 3px;
    background-color: #1a1919de;
    text-decoration: none;
    display: none;
}

.slideM{
    -webkit-animation: 0.7s ease-out slideInFromBottom;
            animation: 0.7s ease-out slideInFromBottom;
  }



@media all and (min-width: 768px) and (max-width: 1023px){
    header{
        font-size: 55px;
        letter-spacing: -0.2rem;
        line-height: 3.2rem;
    }
}
@media all and (max-width: 767px){
    header{
        font-size: 40px;
        line-height: 2.3rem;
        letter-spacing: normal;
    }
    .giornale h4{
        margin-top: 2em;
        margin-bottom: 3em;
        font-family: serif;
        font-size: 1.5em;
    }
    .carta{
        -webkit-box-shadow: inset 0 0 100px #e6ddc183;
                box-shadow: inset 0 0 100px #e6ddc183;
    }
    .carta:hover{
        transform: none;
    }
}
@media all and (max-width: 330px){
    header{
        font-size: 35px;
        line-height: 2rem;
    }
}