/*==========================================================
  BIBLIOTECA MARÍTIMA
  biblioteca.css
  PARTE 1
==========================================================*/


/*==========================================================
  FONTE
==========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');


/*==========================================================
  VARIÁVEIS
==========================================================*/

:root{

    --oceano:#2E4875;

    --oceano-claro:#4C689B;

    --branco:#FFFFFF;

    --texto:#EDF3FF;

    --dourado:#D9B76A;

    --sombra:0 20px 45px rgba(0,0,0,.22);

}


/*==========================================================
  RESET
==========================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}


html{

    scroll-behavior:smooth;

}


body{

    font-family:"Instrument Sans",sans-serif;

    background:#2E4875;

    color:white;

    overflow-x:hidden;

}


/*==========================================================
  CONTAINER
==========================================================*/

.library{

    width:min(1450px,92%);

    margin:auto;

    padding-bottom:120px;

}


/*==========================================================
  HEADER
==========================================================*/

.hero{

    position:relative;

    width:100%;

    height:620px;

    border-radius:32px;

    overflow:hidden;

    margin-top:30px;

    box-shadow:var(--sombra);

}


/*==========================================================
  VÍDEO
==========================================================*/

.hero video{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

}


/*==========================================================
  CAMADA ESCURA
==========================================================*/

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        rgba(18,32,54,.20),

        rgba(18,32,54,.55)

    );

    z-index:1;

}


/*==========================================================
  CONTEÚDO
==========================================================*/

.hero-content{

    position:relative;

    z-index:2;

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:40px;

}


/*==========================================================
  BOTÃO VOLTAR
==========================================================*/

.back-home{

    position:absolute;

    left:35px;

    top:35px;

    text-decoration:none;

    color:white;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    padding:14px 24px;

    border-radius:40px;

    transition:.35s;

    font-weight:500;

}


.back-home:hover{

    background:white;

    color:#2E4875;

}


/*==========================================================
  TÍTULO
==========================================================*/

.hero-title{

    font-size:clamp(3.4rem,7vw,6rem);

    font-weight:700;

    letter-spacing:-3px;

    color:white;

    margin-bottom:18px;

}


/*==========================================================
  SUBTÍTULO
==========================================================*/

.hero-subtitle{

    max-width:720px;

    font-size:1.2rem;

    color:rgba(255,255,255,.92);

    line-height:2;

    font-weight:400;

}


/*==========================================================
  PEQUENO BRILHO
==========================================================*/

.hero-light{

    position:absolute;

    width:420px;

    height:420px;

    border-radius:50%;

    background:

    radial-gradient(

        rgba(255,255,255,.16),

        transparent 70%

    );

    top:-140px;

    right:-80px;

    z-index:1;

}


/*==========================================================
  TRANSIÇÃO PARA A ESTANTE
==========================================================*/

.hero-bottom{

    width:100%;

    height:120px;

    background:

    linear-gradient(

        transparent,

        #2E4875

    );

    position:absolute;

    bottom:0;

    left:0;

    z-index:2;

}


/*==========================================================
  RESPONSIVIDADE
==========================================================*/

@media(max-width:900px){

    .hero{

        height:500px;

    }

    .hero-title{

        font-size:3rem;

    }

    .hero-subtitle{

        font-size:1rem;

        line-height:1.8;

    }

}


@media(max-width:600px){

    .library{

        width:95%;

    }

    .hero{

        height:420px;

        border-radius:24px;

    }

    .back-home{

        left:18px;

        top:18px;

        padding:12px 18px;

        font-size:.9rem;

    }

    .hero-title{

        font-size:2.5rem;
    }

}
/*==========================================================
  ESTANTE
==========================================================*/

.bookshelf{

    margin:90px auto 70px;

    display:flex;

    justify-content:center;

    align-items:flex-end;

    gap:28px;

    flex-wrap:wrap;

}


/*==========================================================
  LIVROS
==========================================================*/

.book-item{

    position:relative;

    width:92px;

    height:330px;

    cursor:pointer;

    border-radius:8px;

    overflow:hidden;

    transition:.35s;

    box-shadow:

    0 15px 35px rgba(0,0,0,.25);

}

.book-item:hover{

    transform:

    translateY(-12px)

    rotate(-2deg)

    scale(1.04);

}


/*==========================================================
  CAPA
==========================================================*/

.book-cover{

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    padding:20px 12px;

    color:white;

}


/*==========================================================
  CRÔNICAS
==========================================================*/

.book-chronicles{

    background:

    linear-gradient(

        #09162A,

        #132C52

    );

}

.book-chronicles::before{

    content:"✦ ✦ ✦";

    opacity:.45;

    letter-spacing:6px;

    text-align:center;

}


/*==========================================================
  MANIFESTOS
==========================================================*/

.book-manifestos{

    background:

    linear-gradient(

        #18213C,

        #314F7E

    );

    border:2px solid rgba(217,183,106,.35);

}


/*==========================================================
  POESIAS
==========================================================*/

.book-poetry{

    background:

    linear-gradient(

        #304A73,

        #5474A8

    );

}


/*==========================================================
  INDICAÇÕES
==========================================================*/

.book-recommendations{

    background:

    linear-gradient(

        #14314A,

        #25597D

    );

}


/*==========================================================
  TÍTULO DOS LIVROS
==========================================================*/

.book-name{

    writing-mode:vertical-rl;

    transform:rotate(180deg);

    font-size:1rem;

    font-weight:600;

    letter-spacing:1px;

    text-align:center;

}


/*==========================================================
  AUTOR
==========================================================*/

.book-description{

    font-size:.8rem;

    opacity:.75;

    text-align:center;

}


/*==========================================================
  ÁREA DO LIVRO ABERTO
==========================================================*/

.reader{

    margin-top:80px;

    display:none;

}


/*==========================================================
  LIVRO ABERTO
==========================================================*/

.reader-book{

    display:grid;

    grid-template-columns:1fr 1fr;

    background:#F8F2E8;

    border-radius:18px;

    overflow:hidden;

    box-shadow:

    0 25px 50px rgba(0,0,0,.22);

}


/*==========================================================
  PÁGINAS
==========================================================*/

.reader-page{

    min-height:650px;

    padding:50px;

    background:#FFFDF9;

}


.reader-page:first-child{

    border-right:1px solid rgba(0,0,0,.08);

}


/*==========================================================
  TEXTO
==========================================================*/

.reader-page h2{

    color:#2E4875;

    font-size:2rem;

    margin-bottom:25px;

}


.reader-page p{

    color:#505050;

    line-height:2;

    font-size:1rem;

}


/*==========================================================
  CONTROLES
==========================================================*/

.reader-controls{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:30px;

}


/*==========================================================
  BOTÕES
==========================================================*/

.page-button{

    border:none;

    background:#2E4875;

    color:white;

    padding:14px 26px;

    border-radius:40px;

    cursor:pointer;

    font-family:inherit;

    transition:.3s;

}

.page-button:hover{

    background:#4A6AA4;

}


/*==========================================================
  LIKE
==========================================================*/

.book-reactions{

    display:flex;

    gap:18px;

}


.book-reactions button{

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    font-size:1.2rem;

    transition:.3s;

}


.book-reactions button:hover{

    transform:scale(1.12);

}


/*==========================================================
  RESPONSIVO
==========================================================*/

@media(max-width:900px){

    .reader-book{

        grid-template-columns:1fr;

    }

    .reader-page:first-child{

        border-right:none;

        border-bottom:1px solid rgba(0,0,0,.08);

    }

}


@media(max-width:600px){

    .bookshelf{

        gap:18px;

    }

    .book-item{

        width:72px;

        height:255px;

    }

    .reader-page{

        padding:28px;

        min-height:auto;

    }

}
/*==========================================================
  MAPA NÁUTICO
==========================================================*/

.nautical-section{

    margin:120px auto;

    text-align:center;

}


.nautical-title{

    font-size:2.5rem;

    color:#FFFFFF;

    margin-bottom:20px;

    font-weight:700;

}


.nautical-text{

    color:rgba(255,255,255,.82);

    max-width:700px;

    margin:0 auto 50px;

    line-height:1.9;

}


/*==========================================================
  BÚSSOLA
==========================================================*/

.compass-area{

    display:flex;

    justify-content:center;

    margin-bottom:40px;

}


.compass{

    width:120px;

    height:120px;

    cursor:pointer;

    transition:.4s;

    animation:rotateCompass 24s linear infinite;

}


.compass:hover{

    transform:scale(1.08);

}


/*==========================================================
  MAPA
==========================================================*/

.nautical-map{

    width:min(1100px,100%);

    margin:auto;

    border-radius:24px;

    overflow:hidden;

    box-shadow:

    0 25px 45px rgba(0,0,0,.22);

}


.nautical-map img{

    width:100%;

    display:block;

}


/*==========================================================
  RODAPÉ
==========================================================*/

.site-footer{

    position:relative;

    margin-top:140px;

    overflow:hidden;

    border-radius:30px 30px 0 0;

    min-height:280px;

    display:flex;

    align-items:center;

    justify-content:center;

}


.footer-video{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:.22;

}


.footer-overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        rgba(24,38,65,.78),

        rgba(24,38,65,.92)

    );

}


.footer-content{

    position:relative;

    z-index:2;

    text-align:center;

    width:min(760px,90%);

}


.footer-title{

    font-size:2.2rem;

    margin-bottom:18px;

    color:#FFFFFF;

    font-weight:700;

}


.footer-text{

    color:rgba(255,255,255,.82);

    line-height:2;

    font-size:1rem;

}


/*==========================================================
  ANIMAÇÕES
==========================================================*/

@keyframes rotateCompass{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}


/*==========================================================
  TABLETS
==========================================================*/

@media (max-width:900px){

    .nautical-section{

        margin:90px auto;

    }

    .nautical-title{

        font-size:2rem;

    }

    .compass{

        width:95px;

        height:95px;

    }

}


/*==========================================================
  CELULARES
==========================================================*/

@media (max-width:600px){

    .nautical-title{

        font-size:1.8rem;

    }

    .nautical-text{

        font-size:.95rem;

    }

    .site-footer{

        min-height:230px;

        border-radius:22px 22px 0 0;

    }

    .footer-title{

        font-size:1.7rem;

    }

}


/*==========================================================
  DESKTOP GRANDE
==========================================================*/

@media (min-width:1600px){

    .bookshelf{

        gap:42px;

    }

    .book-item{

        width:110px;

        height:380px;

    }

    .hero{

        height:720px;

    }

}

    }

}