*,
*::before,
*::after{
    box-sizing: border-box;
}

html{
    margin: 0;
    padding: 0;
}

body.main{
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: rgb(230, 231, 167);
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: start;
    font-family: 'Orbitron', sans-serif;
}

/* LEFT NAVBAR */
div.navbar{
    position: sticky;
    top: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background-color: rgb(230, 231, 167);
    border: 2px solid black;
    border-radius: 0 36px 36px 0;
    overflow: hidden;
    height: fit-content;
    z-index: 100;
}

button.navbar-button,
button.navbar-button-edge-left,
button.navbar-button-edge-right{
    background-color: black;
    color: rgb(230, 231, 167);
    border: 2px solid rgb(230, 231, 167);
    font-size: 1.5em;
    padding: 14px 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    width: 100%;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

button.navbar-button-edge-left{
    border-radius: 0 36px 0 0;
}

button.navbar-button-edge-right{
    border-radius: 0 0 36px 0;
}

button.navbar-button:hover,
button.navbar-button-edge-left:hover,
button.navbar-button-edge-right:hover{
    background-color: rgb(230, 231, 167);
    color: black;
    border: 3px solid black;
    transform: translateX(4px);
}

/* MAIN CONTENT AREA */
div.content{
    width: 100%;
    min-height: 100vh;
    padding: 20px 35px 35px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* TITLES */
div.title{
    font-size: 3em;
    color: black;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.1;
}

/* HOME PAGE */
div.home-layout{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

div.main-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* GAME PAGE */
div.game-selection{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

div.game-card{
    background-color: #35cf7a;
    border: 2px solid black;
    border-radius: 0 36px 0 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

div.game-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

div.game-title{
    font-size: 1.15em;
    color: black;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1.2;
}

img.game-image{
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 0 36px 0 0;
    border: 4px solid rgb(255, 255, 255);
}

/* SVG / GAME FRAMES */
svg{
    display: block;
    max-width: 100%;
    height: auto;
    border: 10px solid black;
    border-radius: 36px;
}

svg.game-area{
    background-color: rgb(253, 255, 115);
    border: 7px solid black;
    border-radius: 36px;
}

/* CONTACT PAGE */
.contact-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.contact-container{
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
}

.contact-card{
    background-color: black;
    border: 3px solid rgb(230, 231, 167);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    width: 100%;
    transition: background-color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.contact-card:hover{
    background-color: rgb(230, 231, 167);
    border: 3px solid black;
    transform: translateY(-4px);
}

.contact-label{
    font-size: 1.15em;
    color: rgb(230, 231, 167);
    margin-bottom: 8px;
    line-height: 1.2;
}

.contact-value{
    font-size: 1.35em;
    color: white;
    word-break: break-word;
    line-height: 1.25;
}

.contact-card:hover .contact-label,
.contact-card:hover .contact-value{
    color: black;
}

/* LINKS INSIDE CONTACTS */
.contact-card a{
    color: inherit;
    text-decoration: none;
}

.contact-card a:hover{
    text-decoration: underline;
}

/* GENERIC IMAGE SAFETY */
img{
    max-width: 100%;
    height: auto;
}

/* TABLET */
@media (max-width: 1000px){
    body.main{
        grid-template-columns: 260px 1fr;
    }

    div.navbar{
        width: 260px;
    }

    div.content{
        padding: 20px 24px 30px 24px;
    }

    div.title{
        font-size: 2.4em;
    }

    button.navbar-button,
    button.navbar-button-edge-left,
    button.navbar-button-edge-right{
        font-size: 1.2em;
        padding: 12px 8px;
    }

    div.game-selection{
        grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
        gap: 24px;
    }

    img.game-image{
        height: 160px;
    }

    .contact-value{
        font-size: 1.2em;
    }
}

/* MOBILE */
@media (max-width: 700px){
    body.main{
        display: flex;
        flex-direction: column;
    }

    div.navbar{
        position: relative;
        top: auto;
        width: 100%;
        border-radius: 0 0 36px 36px;
    }

    div.content{
        min-height: auto;
        padding: 20px 14px 30px 14px;
    }

    div.title{
        font-size: 2em;
        margin: 0 0 20px 0;
    }

    div.home-layout{
        justify-content: center;
    }

    div.main-card{
        gap: 16px;
    }

    div.game-selection{
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 18px;
        max-width: 500px;
    }

    div.game-card{
        padding: 14px;
    }

    div.game-title{
        font-size: 1.05em;
        margin-bottom: 12px;
    }

    img.game-image{
        height: 170px;
    }

    button.navbar-button,
    button.navbar-button-edge-left,
    button.navbar-button-edge-right{
        font-size: 1.05em;
        padding: 12px 8px;
    }

    button.navbar-button:hover,
    button.navbar-button-edge-left:hover,
    button.navbar-button-edge-right:hover{
        transform: none;
    }

    button.navbar-button-edge-left{
        border-radius: 0;
    }

    button.navbar-button-edge-right{
        border-radius: 0 0 36px 36px;
    }

    svg{
        border-width: 6px;
    }

    svg.game-area{
        border-width: 4px;
    }

    .contact-container{
        max-width: 100%;
        gap: 16px;
    }

    .contact-card{
        padding: 16px;
    }

    .contact-label{
        font-size: 1em;
    }

    .contact-value{
        font-size: 1.1em;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 450px){
    div.title{
        font-size: 1.6em;
    }

    img.game-image{
        height: 150px;
    }

    div.game-card{
        border-radius: 0 24px 0 0;
    }

    img.game-image{
        border-radius: 0 24px 0 0;
    }

    button.navbar-button,
    button.navbar-button-edge-left,
    button.navbar-button-edge-right{
        font-size: 0.95em;
    }
}