@font-face {
    font-family: Rubik;
    src: url(../fonts/Rubik-Light.ttf);
}

@font-face {
    font-family: Rubik-Bold;
    src: url(../fonts/Rubik-SemiBold.ttf);
}

:root {
    --navbar-color-orange: #ff754c;
    --navbar-color-yellow: #ffc549;
    --text-font: Rubik;
    --text-font-bold: Rubik-Bold;
    --text-color: #352c3a;
}

::-moz-selection { /* Code for Firefox */
    color: #ffffff;
    background: var(--navbar-color-orange);
}
  
::selection {
    color: #ffffff;
    background: var(--navbar-color-orange);
}

h1 {
    font-family: var(--text-font);
    color: var(--text-color);
    font-size: 40px;
}

p {
    font-family: var(--text-font);
    color: var(--text-color);
    text-align: justify;
    font-size: 20px;
}

body {
    background-color: var(--navbar-color-yellow);
}

.orange-lines {
    background-color: var(--navbar-color-orange);
    width: 100%;
    height: 40px;
}

.navbar-and-content {
    display: flex;
}

.navbar-and-content .content {
    display: grid;
    width: calc(100% - 20%);
    padding: 40px 5%;
}

.content h1 {
    padding-bottom: 20px;
}

.pages {
    display: flex;
    flex-wrap: wrap;
}

.pages a {
    margin: 15px;
    display: grid;
}

.pages a .page-img {
    width: 300px;
    height: 300px;
    /*background-image: url(../img/normandia-desenata/SM\ 01.jpg);*/
    border: 5px solid var(--navbar-color-orange);
    /*background-color: red;*/
    transition: 300ms;
}

.pages a .text-link {
    width: 75%;
    height: fit-content;
    padding: 0 calc(25% / 2);
    transform: translateY(-50%);
}

.pages a .text-link div {
    background-color: var(--navbar-color-yellow);
    border: 5px solid var(--navbar-color-orange);
    transition: 300ms;
}

.pages a .text-link p {
    text-align: center;
    padding: 0 15px;
}

.pages a .text-link .title {
    padding-top: 10px;
}

.pages a .text-link .date {
    padding-bottom: 10px;
    font-size: 15px;
}

.pages a .text-link .single-title {
    padding: 10px 15px;
}

.pages a:hover > .page-img, .pages a:hover > .text-link div {
    box-shadow: 3px 3px 10px var(--text-color);
}

.pages a:hover > .page-img {
    transform: scale(1.1);
    background-size: 500px;
}

.pages a:nth-child(1) > .page-img{
    background-image: url(../img/normandia-desenata/SM\ 057.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 200%;
    background-position-x: 40%;
    background-position-y: 10%;
}

.pages a:nth-child(2) > .page-img{
    background-image: url(../img/ilustratii/SM\ 05.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 100%;
    background-position-x: 40%;
    background-position-y: 25%;
}

.pages a:nth-child(3) > .page-img{
    background-image: url(../img/picturi/SM\ 02.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 160%;
    background-position-x: 27%;
    background-position-y: 100%;
}

.pages a:nth-child(4) > .page-img{
    background-image: url(../img/tapiserie/SM\ 01.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 120%;
    background-position: center;
}

.pages a:nth-child(5) > .page-img{
    background-image: url(../img/asiatice/SM\ 01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 120%;
    background-position: center;
    background-position-y: 40%
}

/*.page-img #1 {
    background-image: url(../img/normandia-desenata/SM\ 011.webp);
    /*background-image: url(../img/normandia-desenata/SM\ 057.jpg);
}

.page-img #2 {
    background-image: url(../img/normandia-desenata/SM\ 057.jpg);
}

.page-img #3 {
    background-image: url(../img/normandia-desenata/SM\ 057.jpg);
}

.page-img #4 {
    background-image: url(../img/normandia-desenata/SM\ 057.jpg);
}*/

/*.pages-link-row1 a, .pages-link-row2 a {
    font-family: var(--text-font);
    padding: 10px;
    font-size: 20px;
    color: var(--text-color);
    border: 3px solid var(--navbar-color-orange);
    background-color: var(--navbar-color-yellow);
    transition: .2s;
}

.pages-link-row1 a:hover, .pages-link-row2 a:hover {
    border: 4px solid var(--navbar-color-orange);
    box-shadow: 5px 5px 15px var(--text-color);
}

.pages-link-row1, .pages-link-row2 {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.first-page {
    width: 250px;
    height: 250px;
    margin: 0 10px 10px 0;
}

.pages-link-row1 li, .pages-link-row2 li {
    margin: 0 10px 20px 0;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    flex-wrap: wrap;

}

.pages-link-row1 li:nth-child(1) {
    background-image: url(../img/normandia-desenata/SM\ 057.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 200%;
    background-position-x: 40%;
    background-position-y: 25%;
}

.pages-link-row1 li:nth-child(2) {
    background-image: url(../img/ilustratii/SM\ 05.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 100%;
    background-position-x: 40%;
    background-position-y: 25%;
}

.pages-link-row1 li:nth-child(3) {
    background-image: url(../img/picturi/SM\ 02.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 160%;
    background-position-x: 27%;
    background-position-y: 100%;
}

.pages-link-row2 li:nth-child(1) {
    background-image: url(../img/tapiserie/SM\ 01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-size: 120%;
    background-position: center;
}

.pages-link-row2 li:nth-child(2) {
    display: none;
}

.pages-link-row2 li:nth-child(3) {
    display: none;
}*/

@media only screen and (max-width: 800px) {
    
    .navbar-and-content {
        display: grid;
    }

    .navbar-and-content .content h1 {
        padding-left: 5%;
    }
    
    .pages {
        padding-left: calc(50% - 170px);
    }
    
    .navbar-and-content .content {
        width: 100%;
        height: 100%;
        padding: 0 0 5% 0;
        margin: 0;
    }

    #orange1 {
        display: none;
    }
}
