/* 
Author: Orleidy Fermín Marante
Content: Sheet Styles Developers
Proyect: The Legend of Zelda Web
*/

/* ----------------------------------------------------------------------------
                            COLOR ROOT AND FONTS
 ---------------------------------------------------------------------------- */

:root {
    --color-green: #477238;
    --color-cream: #F7DFB6;
    --color-cream-soft: #FCF1DD;
    --color-brown: #9A4F00; 
    --color-lightgreen: #7ce907;
    --color-red:#d12816; 
}

@font-face {
    font-family:'nintendo-nes';
    src: url('./Resources/Fonts/nintendo-nes-font.ttf') format('truetype');
}

@font-face {
    font-family: 'mono';
    src: url('./Resources/Fonts/SpaceMono-Regular.ttf') format('truetype');
}


@font-face {
    font-family: 'zelda-subtitulos';
    src: url('./Resources/Fonts/ReturnofGanon.ttf') format('truetype');
}

@font-face {
    font-family: 'zelda-minishcap';
    src: url('./Resources/Fonts/minishcap.ttf') format('truetype');
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    background: var(--color-green);
    text-align: center;
}

body {
    width: 100%;
    overflow-x: hidden;
    position:relative;
}

.top_container{
    width: calc(100% - 200px);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ----------------------------------------------------------------------------
                            SECTION NAVEGATION
 ---------------------------------------------------------------------------- */
.menu{
    position:fixed;
    left:0px;
    top:-200px;
    z-index: 6;

    width:100%;
    padding:10px;
    text-align:center;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    
    font-family:'nintendo-nes';
    font-size:12pt;
    color:white;
    background-color:var(--color-cream);
    box-shadow: 0px 2px 5px rgba(84, 84, 84, 0.6);
    
    /* transition */
    transition:top 1s;
    -webkit-transition:top 1s;
}

.menu a {
    text-decoration: none;
    margin-left:30px;
    color: var(--color-green);
}

/* SPAN OF SPAN */
.menu span {
    margin:0 10px;
}

.menu span a:hover {
    color:#af0c0c;  
}

.menu-home-img img {
    height: 30px;
    width: 80px;
    display: inline-block;
}

.menu-home-img {
    justify-content: center;
    align-items: center;
}

.button {
    position: fixed;
    bottom: 50px;       
    right: 5px;        
    z-index: 15;      
    transition: transform 0.3s ease;
}

.button img {
    width: 80px;        
    height: auto;
}

/* mouse hover */
.button:hover {
    transform: scale(1.2); 
}

.border-left, .border-right {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-cream-soft);
    z-index: 4;
}

.border-left  { left: 100px; }
.border-right { right: 100px; }


.parallax {

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}


.hr-title{
    border: none;
    border-top: 1px solid white;
    width: 60%;
    margin: 0 0;
}

.hr-developers{
    border: none;
    border-top: 1px solid white;
    width: 100%;
}

.hr-top{
    border: none;
    border-top: 1px solid white;
    margin-top: 110px;
    width: 100%;
}


.parallax h1 {
    font-family: 'nintendo-nes';
    font-size: 60pt;
    color: var(--color-cream);
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
}

.parallax h3 {
    font-family: 'nintendo-nes';
    font-size: 130pt;
    color: var(--color-cream);
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
}

.parallax h2 {
    font-family: 'mono';
    font-size: 30px;
    color: var(--color-cream-soft);
    letter-spacing: 5pt;
    text-transform: uppercase;
    margin-top: 18px;
    text-align: center;
}

.developers_container {
    position: relative;
    padding: 100px 40px;
    display: grid;
    grid-template-columns: auto auto;
    align-items:first baseline;
    justify-content:  center;
    gap: 20px 150px;
}

.card {
    height: 280px;
    max-width: 350px;
    margin: 20px 20px;
    background: black;
    transition: 0.4s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.card:hover {
    height: auto;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.card .img {
    height: 200px;
    width: 100%;
}

.card .img img {
    height: 100%;
    width: 100%;
    object-fit:cover;
}

.card .top-text {
    padding: 5px;
    
}

.card .top-text .developer_name {
    font-family: 'zelda-subtitulos';
    font-size: 25pt;
    padding-top: 5px;
    font-weight: 600;
    color: var(--color-cream-soft)
}

.card .top-text p {
    font-family: 'mono';
    font-size: 12pt;
    font-weight: 600;
    color: var(--color-lightgreen);
    line-height: 10px;
    padding-top: 5px;
}

.card .bottom-text {
    padding: 0 20px 10px 20px;
    margin-top: 5px;
    background: black;
    opacity: 0;
    visibility: hidden;
    transition: 0.1s;
}

.card:hover .bottom-text {
    opacity: 1;
    visibility: visible;
}

.card .bottom-text .text {
    font-family: 'mono';
    text-align: center;
    color: white;
    padding: 5px 5px 5px 5px;
}

footer{
    position: fixed;
    bottom: 0;
    z-index: 10;
    background-color: var(--color-cream);
    width: 100%;
    min-height: 40px;
    margin-top: auto;
    font-family: 'mono';
    font-size: 9pt;
    text-align: center;
    padding: 15px;
}


.privacy-policy{

  color: var(--color-green);
  text-decoration: none;
}

.privacy-policy :hover{

  color: var(--color-brown);
}


@media only screen and (min-width: 481px) and (max-width: 959px) {
    .border-left  { left: 40px; }
    .border-right { right: 40px; }

    .parallax {
        min-height: 100vh;
        padding: 80px 24px 40px;
        background-attachment: scroll;
    }

    .hr-top {
        margin-top: 0px;
    }

    .parallax h1 {
        font-size: 50pt;
    }

    .parallax h3 {
        font-size: 100pt;
    }

    .parallax h2 {
        font-size: 18px;
        letter-spacing: 3pt;
        line-height: 1.6;
    }

    .developers_container {
        padding: 90px 30px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        height: 350px;
        max-width: 100%;
        margin: 10px 30px;
    }

    .card:hover {
        height: auto;
    }

    .card .img {
        height: 260px;
    }

    .card .top-text .developer_name {
        font-size: 20pt;
    }

    .card .top-text p {
        font-size: 11pt;
        line-height: 1.4;
    }

    .card .bottom-text {
        opacity: 1;
        visibility:hidden;
        padding: 0 18px 18px;
    }

    .card:hover .bottom-text {
        opacity: 1;
        visibility: visible;
    }
}

@media only screen and (max-width: 480px) {
    
    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 11pt;
    }

    .menu span {
        display: block;
        margin: 0;
    }

    .menu a {
        display: block;
        margin: 0;
    }
    
    .border-left,
    .border-right {
        display: none;
    }

    .parallax {
        min-height: auto;
        padding: 56px 16px 32px;
        background-attachment: scroll;
    }

    .hr-top {
        margin-top: 24px;
    }

    .parallax h1 {
        font-size: 26pt;
    }

    .parallax h3 {
        font-size: 46pt;
    }

    .parallax h2 {
        font-size: 13px;
        letter-spacing: 2px;
        line-height: 1.5;
        margin-top: 12px;
    }

    .developers_container {
        grid-template-columns: 1fr;
    }

    .card {
        height: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .card .img {
        height: 220px;
    }

    .card .top-text .developer_name {
        font-size: 16pt;
    }

    .card .top-text p {
        font-size: 10pt;
        line-height: 1.4;
    }

    .card .bottom-text {
        opacity: 1;
        visibility: visible;
        padding: 0 14px 16px;
    }

    .card .bottom-text .text {
        font-size: 10pt;
        line-height: 1.55;
    }
}
