﻿

/*  declare the font using (Viking-font) */
@font-face {
    font-family: 'VikingNormal-36VL';
    src: url(../Fonts/viking-font/VikingNormal-36VL.otf) format('opentype');
   
}


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; 
    overflow-x: hidden; 
}

body {
    font-family: VikingNormal-36VL, cursive;
    background-color: #363636;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
    width: 100%;
    margin: 0;
    padding: 0;
}


/* Header styles */
.header {
    display: flex;
    align-items: center;
    padding: 0.9375rem 1.875rem;
    background: linear-gradient(#363636, #000);
    border-bottom: 0.0625rem solid #333;
    width: 100%;
}

main {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: content-box !important;
}


.Drengr_logo {
    width: 9.375rem !important;
    position: absolute;
    top: 1rem;
    left: 8rem;
    z-index: 10;
}

    .Drengr_logo img {
        max-width: 100%;
        height: auto;
      
    }
/* Burger Menu Styles */
.burger-menu {
    display: none; 
    position: fixed;
    top: 1.7rem;
    right: 1rem;
    z-index: 1000;
}

.burger-icon {
    background: #563673;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 2.5rem;
    height: 2.5rem;
    /* 3D effects */
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3), inset 0 0.125rem 0.1875rem rgba(255, 255, 255, 0.2);
    border-radius: 0.3125rem;
    transform: perspective(31.25rem) rotateX(10deg);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .burger-icon span {
        display: block;
        width: 1.875rem; 
        height: 0.15rem; 
        background: white;
        border-radius: 0.125rem; 
        transition: background 0.3s, transform 0.3s;
    }

    /* hover effect on the span */
    .burger-icon:hover span {
        background: #1DC6AC;
    }


    /* Active/pressed state */
    .burger-icon:active {
       
        transform: perspective(500px) rotateX(15deg) translateY(1px);
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.1);
    }

    .burger-icon  {
        transition: transform 0.3s ease;
    }

.burger-menu.active .burger-icon  {
    transform: rotate(90deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 25rem;
    height: 100vh;
    background-color: #363636;
    border-left: 0.25rem solid #1DC6AC;
    transition: right 0.3s ease;
    z-index: 999;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
}

.burger-menu.active .mobile-menu {
    right: 0;
}

.mobile-menu-item {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    position: relative;
}

.mobile-main-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    display: block;
    padding: 0.5rem 0;
    white-space: nowrap;
}

    .mobile-main-link:hover {
        color: #1DC6AC;
    }

.mobile-submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.mobile-menu-item.active .mobile-submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-submenu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
    white-space:nowrap;
}

    .mobile-submenu a:hover {
        color: #1DC6AC;
    }
/* Menu item container */
.menu-item {
    position: relative;
    display: inline-block;
}

/* Main navigation links */
.main-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
}

/* Submenu styling */
.submenu {
    position: absolute;
    display: none;
    background-color: #363636;
    min-width: 20rem; 
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    z-index: 20;
    border: 0.125rem solid #1DC6AC;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Show submenu on hover */
.menu-item:hover .submenu {
    display: block;
    animation-delay: 0.1s;
}

.menu-item:after {
    content: '';
    position: absolute;
    height: 1.25rem; 
    width: 100%;
    bottom: -1.188rem;
    left: 0;
}

/* Submenu links */
.submenu a {
    color: #fff !important;
    padding: 1rem 1.5rem; 
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.9rem; 
    letter-spacing: 0.125rem;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap; 
}

    /* Submenu hover effect */
    .submenu a:hover {
        background-color: #363636;
        color: #1DC6AC !important;
    }



.menu-item .main-link {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem;
    vertical-align: middle;
}


.nav_menu {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

    .nav_menu .main-link {
        color: #fff;
        text-decoration: none;
        font-size: 3rem;
        letter-spacing: 0.125rem;
        text-transform: uppercase;
        transition: color 0.3s;
    }

        .nav_menu .main-link:hover {
            color: #1DC6AC;
        }

/* Container section  */
.big_img_container {
    width: 100vw;
    height: 25rem; 
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big_img {
    width: 100%;
    height: 25rem; 
    object-fit: cover; 
    display: block;
}
    /* Section title games */
.section_title_games {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
 /*   font-size: 4rem;*/
    font-size: clamp(2rem, 4vw, 4rem);
    padding: 1.25rem 0;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    margin: 0;
  
}


.game_showcase {
    background: linear-gradient(#363636, #393939, #464646);
    width: 100%;
    /*   height: 10rem;*/
    display: flex;
    justify-content: center;
    align-items: center;

}


.carousel {
    position: relative;
    margin-left: calc(-50vw + 50%);
    width: 100vw;
     padding: 1.875rem 0;
    gap: 0.625rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110vh;
 /*   height: 100vh;*/
    overflow: hidden;
    background: linear-gradient(to bottom, black, #444444);
}

/* Game container positioning adjustments */
.game_container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; 
}

    .game_pic_1, .game_pic_2, .game_pic_3 {
    position: absolute;
    overflow: hidden;
    border: 0.125rem solid #333;
    transition: transform 0.3s, border-color 0.3s;
    border:0.2rem solid #fff;
  
}



.game_pic_1, .game_pic_3 {
    width: 32.5rem; 
    height: 19rem;
    z-index: 1;
}

.game_pic_1 {
    left: 5rem; 
    margin-top: -18rem;
}

.game_pic_2 {
    width: 48rem;
    height: 24rem;
    margin-top: -11rem;
    position: absolute;
    overflow: hidden;
    border: 0.125rem solid #333;
    transition: transform 0.3s, border-color 0.3s;
    border: 0.2rem solid #fff;
    z-index: 5; 
}

.game_pic_3 {
    right: 5rem; 
    margin-top: -18rem;
}

    .game_pic_1 img, .game_pic_2 img, .game_pic_3 img {
        width: 100%;
        height: 100%; 
        object-fit: cover;
    }

.show_only_mobile {
    display: none;
    text-align: center;
    margin-top: 0.5rem;
}
    
/* Banner with game names */
.banner {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9375rem 2rem;
    background-color: #363636;
    border-top: 0.0625rem solid #333;
    border-bottom: 0.0625rem solid #333;
    border: 0.25rem outset #363636;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

.nav_item {
    text-align: center;
    padding: 0 2.5rem;
    font-size: 1.125rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.0625rem;
    line-height: 1.2;
}
/* Emblem buttons */
.emblem_button {
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.emblem_button_left {
    margin-left: 2rem;
   
}
.emblem_button_right {
    margin-right: 2rem;
 
}

  .emblem_button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* About Us Section */
.about_us_section {
    text-align: center;
    font-size: 3rem;
    padding: 2rem 0 1rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    width: 100%;
}

.about_section_container {
    padding: 3rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    background: linear-gradient(to bottom, #563673 0%, #2b1a3a 35%, #000000 45%);
    
}

.about_content {
    width: 100%;
    /*height: 30rem;*/
    padding: 1rem 0 2rem;
}

.about_text {
    color: #d0d0d0;
    font-size: 1.3rem;
    line-height: 1.8;
    letter-spacing: 2px;
    text-align: center;
    font-weight: 400;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    /*-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);*/
/*    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 140%);*/
}

.dark_landscape {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
    line-height: 0;
    max-height: 20rem; /* Limita l'altezza massima del contenitore */
}

    .dark_landscape img {
        width: 100%;
        height: auto; /
        display: block;
        object-fit: cover; 
    }


/*.dark_landscape {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
    line-height: 0;*/
/*    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 107%);*/
/*}
}

    .dark_landscape img {
        width: 100%;
        height: 20rem;
        object-fit: cover;
        display: block; 
    }*/

.link_footer {
    position: absolute;
    bottom: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;

    gap: 1rem;
}

    .link_footer a {
        color: #1DC6AC;
        text-decoration: none;
        margin: 0.625rem;
    }

.impressum {
    padding: 3rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    background-image: url('../Content/Images/NordicLandscape.png');
}
h1 {
    margin-top: 0;
}

p {
    margin: 1.25rem 0;
}
.impressum a {
    color: #1DC6AC;
    text-decoration: none;
}

    .show_only_mobile {
        display: none;
    }

/* Responsive adjustments */

/* Large screens (Laptops & Desktops) */
@media (max-width: 1440px) {
    .nav_menu a {
        font-size: 2.5rem;
    }

    .carousel {
        height: 90vh;
        padding: 1.5rem 0;
    }

    .game_pic_1, .game_pic_3 {
        width: 28rem;
        height: 18rem;
        margin-top: -16rem;
    }

    .game_pic_2 {
        width: 42rem;
        height: 22rem;
        margin-top: -10rem;
    }

    .section_title_games {
        font-size: 3.5rem;
    }
}

/* Medium screens (Small laptops & tablets) */
@media (max-width: 1200px) {
    .Drengr_logo {
        left: 2rem;
        width: 7rem !important;
    }

    .nav_menu .main-link {
        font-size: 2rem;
    }

    .submenu a {
        font-size: 1.2rem !important;
    }

    .carousel {
        height: 65vh;
        padding: 1.25rem 0;
    }

    .game_pic_1, .game_pic_3 {
        width: 24rem;
        height: 16rem;
        margin-top: -14rem;
    }

    .game_pic_2 {
        width: 36rem;
        height: 20rem;
        margin-top: -8rem;
    }

    .about_us_section {
        font-size: 2.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {

    .Drengr_logo {
        left: 1.5rem;
        width: 6rem !important;
    }

    .nav_menu .main-link {
        font-size: 1.8rem;
    }

    .submenu a {
        font-size: 1rem !important;
    }

    .carousel {
        height: 35vh;
        padding: 1rem 0;
    }

    .game_pic_1, .game_pic_3 {
        width: 20rem;
        height: 14rem;
        margin-top: -12rem;
    }

    .game_pic_2 {
        width: 30rem;
        height: 18rem;
        margin-top: -7rem;
    }

    .about_us_section {
        font-size: 2.2rem;
    }
}
/* Small tablets and large phones */
@media (max-width: 768px) {


    /* Add padding to header to accommodate fixed logo */
    .header {
        padding-top: 1rem;
        padding-left: 6rem;
    }

    .show_only_mobile {
        display: block; 
        text-align: center;
        margin-top: 1rem; 
        position: relative;
        
    }

    .carousel {
        height: auto;
        padding: 2rem 0;
    }

    .game_container {
        display: flex;
        flex-direction: column;
        align-items: center; 
        margin-bottom: 1.5rem; 
    }

    .burger-menu {
        display: block;
    }

    .nav_menu {
        display: none;
    }

    /* Fix Drengr logo position to left corner */
        .Drengr_logo {
        position: fixed;
        left: 1rem;
        top: 1rem;
        transform: none;
        width: 5rem !important;
        z-index: 990;
    }
    



    .menu-item {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .submenu {
        position: relative;
        width: 100%;
        margin-top: 0.25rem;
        box-shadow: none;
        border: none;
        background-color: #363636;
    }

    .menu-item:hover .submenu {
        display: flex;
        flex-direction: column;
    }

    .nav_menu {
        flex-direction: column;
        width: 100%;
    }

    .big_img_container, .big_img {
        height: 18rem;
    }

    .carousel {
        flex-direction: column;
        height: auto;
        padding: 3rem 0;
    }

    .game_pic_1, .game_pic_2, .game_pic_3 {
        display:flex;
        flex-direction:column;
        align-items: center;
        position: relative;
        margin: 1rem auto;
        left: auto;
        right: auto;
        width: 90%;
        height: auto;
        aspect-ratio: 16/10;
    }

    .game_pic_1 {
        margin-bottom: 1rem;
        order: 1;
        z-index:1
    }

    .game_pic_2 {
        margin-top: 1rem;
        margin-bottom: 1rem;
        order: 2;
        z-index: 5;
    }

    .game_pic_3 {
        margin-bottom: 1rem;
        order: 3;
        z-index: 1
    }

    .game_showcase {
        height: 7rem;
    }

    .section_title_games {
        font-size: 2.5rem;
        top: 1rem;
        padding: 0.75rem 0;
    }

    .about_us_section {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }

    .about_text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .banner {
      display: none;
    }

    .emblem_button_left, .emblem_button_right {
        margin: 0.5rem;
    }

    .nav_item {
        padding: 0.5rem;
    }
}

/* Phones */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .Drengr_logo {
        width: 5rem !important;
    }

    .nav_menu {
        margin-top: 3.5rem;
    }

        .nav_menu a {
            font-size: 1rem;
            letter-spacing: 0.05rem;
        }

    .big_img_container, .big_img {
        height: 12rem;
    }
    .banner {
        display: none;
    }

    .section_title_games {
        font-size: 2rem;
        top: 0.8rem;
        letter-spacing: 0.15rem;
        
    }

    .game_showcase {
        height: 6rem;
    }

    .game_pic_1, .game_pic_2, .game_pic_3 {
        border-width: 0.1rem;
    }

    .about_us_section {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
        padding: 1.5rem 0 0.5rem;
    }

    .about_text {
        font-size: 0.9rem;
        letter-spacing: 1px;
        padding: 0 1rem;
    }

    .dark_landscape img {
        height: 15rem;
    }

    .about_content {
        height: auto;
        padding: 1rem 0;
    }

    .footer {
        flex-direction: column;
        gap: 0.5rem;
    }

        .footer a {
            margin: 0.25rem;
        }
}

/* Very small phones */
@media (max-width: 375px) {
    .Drengr_logo {
        width: 4rem !important;
    }

    .header {
        padding-left: 5rem;
    }

    .nav_menu a {
        font-size: 0.9rem;
    }

    .banner {
        display: none;
    }

    .game_showcase {
        height: 5rem;
    }

    .section_title_games {
        font-size: 1.8rem;
        top: 0.5rem;
        letter-spacing: 0.1rem;
    }

    .about_us_section {
        font-size: 1.2rem;
    }
}

@media (min-width: 1201px) {
    .game_pic_1, .game_pic_3 {
        width: 36rem;
        height: 21rem;
        margin-top: -20rem;
    }

    .game_pic_2 {
        width: 54rem;
        height: 30rem;
        margin-top: -12rem;
    }
}

@media (min-width: 1800px) {
    .carousel {
        height: 110vh;
        padding: 2rem 0;
    }

    .game_pic_1, .game_pic_3 {
        width: 42rem;
        height: 24rem;
        margin-top: -22rem;
        left: 8rem;
    }

    .game_pic_3 {
        right: 8rem;
        left: auto;
    }

    .game_pic_2 {
        width: 64rem;
        height: 36rem;
        margin-top: -14rem;
    }

    .section_title_games {
        font-size: 4.5rem;
    }

    .nav_menu {
        gap: 4rem;
    }

        .nav_menu .main-link {
            font-size: 3.5rem;
        }
}
/* Specific media query for 2500x1200 resolution with z-index enforcement */
@media (min-width: 2500px) and (min-height: 1200px) {
    .carousel {
        height: 100vh;
        padding: 0;
        gap: 0;
        position: relative;
    }

    /* Adjust the game container to take up more space */
    .game_container {
        position: relative;
    }

    .game_pic_1, .game_pic_3 {
        width: 58rem;
        height: 34rem;
        margin-top: -26rem;
        z-index: 1;
        position: absolute;
    }
    /*
    .game_pic_1, .game_pic_3, .game_pic_2 {
        position: absolute; 
    }*/

    .game_pic_1 {
        left: 12rem;
    }

    .game_pic_3 {
        right: 12rem;
    }

    .game_pic_2 {
        width: 90rem;
        height: 50rem;
        margin-top: -16rem;
        position: absolute;
        z-index: 10;
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Specific media query for 2500x1200 resolution with z-index enforcement */
/*@media (min-width: 2500px) and (min-height: 1200px) {
    .carousel {
        height: 100vh;
        padding: 0;
        gap: 0;
        position: relative;
    }*/

    /* Adjust the game container to take up more space */
    /*.game_container {

        position: relative; 
    
    }

    .game_pic_1, .game_pic_3 {
        width: 58rem;
        height: 34rem;
        margin-top: -26rem;
        z-index: 1; 
        position: absolute;
    }*/
/*
    .game_pic_1, .game_pic_3, .game_pic_2 {
        position: absolute; 
    }*/

    /*.game_pic_1 {
        left: 12rem;
    }

    .game_pic_3 {
        right: 12rem;
    }

    .game_pic_2 {
        width: 90rem;
        height: 50rem;
        margin-top: -16rem;
        position: absolute;
        z-index: 10; 
        left: 50%;
        transform: translateX(-50%);
    }
}*/




