*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    outline: none;
    text-transform: capitalize;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 9rem;
    overflow-x: hidden;
}

body {
    font-size: 2rem;
    font-family: "Lato", serif;
    font-weight: 500;
}

:root {

    --main-color: black;
    --black: #c3bca9;
    --bg-color: #d9d1bc;
    --white: #fff;
    --light-white: rgba(255, 255, 255, .8);
    --box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .3);
    --border: .2rem solid rgba(255, 255, 255, .1);
}

::-webkit-scrollbar {
    width: 1rem;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--white);
}

body {
    background: var(--black);
    font-family: "Lato", serif;
}

section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* header */
.btn {
    display: inline-block;
    margin-top: 1rem;
    color: var(--white);
    border-radius: .5rem;
    border: .2rem solid var(--white);
    font-size: 1.8rem;
    padding: 1rem 3rem;
    cursor: pointer;
    background: none;
    transition: .2s linear;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: var(--light-white);
    z-index: -1;
    transition: .2s linear;

}

.btn:hover::before {
    width: 100%;
    left: 0;
}

.btn:hover {
    color: var(--main-color);
    text-transform: uppercase;
}

.heading {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 4rem;

    color: var(--white);
}

.heading span {
    color: var(--main-color);
    text-transform: uppercase;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header.active {
    background: var(--bg-color);
    box-shadow: var(--box-shadow);
}

.header .flex {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .flex .logo {
    font-size: 2rem;
    color: var(--white);
}

.header .flex .logo i {
    margin-right: .5rem;
    color: var(--main-color);
}

.header .flex .navbar a {
    margin: 0 1.5rem;
    font-size: 1.8rem;
    color: var(--light-white)
}

.header .flex .navbar a:hover {
    color: var(--main-color);
}

.header .flex .btn {
    margin-top: 0;
}

#menu-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    background: var(--main-color);
    color: white;
    height: 4.5rem;
    width: 5rem;
    line-height: 4.4rem;
    font-size: 2rem;
    border-radius: .5rem;
    text-align: center;
    display: none;
}

/* home*/
.home {
    width: 100%;
    height: 90vh;
    margin-top: 7rem;
    background-position: center;
    background-size: cover;
    transition: background-image 1s ease-in-out; /* Smooth transition effect */
}

.home .flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 100vh;
    flex-wrap: wrap-reverse;
}

.home .flex .image {
    flex: 1 1 40rem;
}

.home .flex .image img {
    width: 100%;
}

.home .flex .content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home .flex .content h3 {
    font-size: 6rem;
    color: var(--white);
    text-transform: uppercase;
}

.home .flex .content h3 span {
    color: var(--main-color);
    text-transform: uppercase;
}

.home .flex .content p {
    font-size: 1.9rem;
    color: var(--light-white);
    padding: 1rem 0;
    line-height: 1.8;
    width: 77%;

}




/* features */

.features .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 35rem);
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;

    
}

.features .box-container .box {
    background-position: center !important;
    background-size: cover !important;
    text-align: center;
    padding: 6rem 3rem;
    box-shadow: var(--box-shadow);
    background: #ada796 !important;
}

.features .box-container .box img {
    height: 15rem;
    
    width: 100%;
    width: 15rem;
    object-fit: contain;
}

.features .box-container .box h3 {
    margin: 1.5rem 0;
    font-size: 3rem;
    color: var(--light-white);
}

.features .box-container .box p {
    line-height: 1.8;
    font-size: 1.6rem;
    color: var(--light-white);
}


/* game play */


.gameplay {

    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gameplay h2 {
    font-size: 6rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.gameplay h2 span {
    color: var(--main-color);

}

.vid-2 {
    width: 80%;
    background: red;
    object-fit: cover;
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
}

.flex {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* about*/

.about {
    background: url(../img/background7.png), linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3))no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

.about .flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about .flex .image {
    flex: 1 1 30rem;
}

.about .flex .image img {
    height: 25rem;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(var(--box-shadow));
}

.about .flex .content {
    flex: 1 1 30rem;
    text-align: center;
}

.about .flex .content h3 {
    font-size: 2.5rem;
    color: var(--white);
}

.about .flex .content p {
    padding: .5rem 0;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--light-white);
}

/* faq */

.faq {
    background: url(../img/backgroud6.png), no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.faq .box-container {
    display: grid;
    gap: 2rem;
}

.faq .box-container .box {
    border: var(--border);
    border-radius: .5rem;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    background:  #ada796;
}

.faq .box-container .box .title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    color: var(--white);
    font-size: 2rem;
}

.faq .box-container .box .title .fa-minus {
    transform: rotate(180deg);
    transform: .2s linear;
}

.faq .box-container .box .title .fa-plus {
    transform: rotate(90deg);
    transform: .2s linear;
}

.faq .box-container .box .content {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--light-white);
    transform-origin: top;
    transform: scaleY(0);
    height: 0;
}

.faq .box-container .box .content.active {
    transform: scaleY(1);
    height: auto;
    padding-top: 1rem;
    transition: .2 linear;
}




/* cards info */
.card-full {
    margin-top: 5rem;
    max-width: 100%;
    width: 100%;
    background: url(../img/background8.png), no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
}

.card-info {
    height: 60vh;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.flip-card {
    background-color: transparent;
   
    width: 25%;
    height: 34rem;
    perspective: 1000px;
    font-family: "Lato", serif;
}

.title {
    font-size: 2.4rem;
    font-weight: 900;
    text-align: center;
    margin: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: var(--border);
    border-radius: 1rem;
}
.card-text{
    margin-bottom: -5rem;
    
}
.card-img{
    margin-left: 1rem;
    width: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.card-img-ship{
    margin-top: 7rem;

    z-index: 1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.flip-card-front {
    
    background: #979283;
    color: white;
}

.flip-card-back {
    background: #979283;
    color: white;
    transform: rotateY(180deg);
}

/* form */


.contact .form {
    margin-top: 2rem;
    text-align: center;
}

.contact .form .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.input:hover {
    cursor: pointer;
}

.contact .form .flex .input {
    flex: 1 1 40rem;
}

.contact .form .input,
.contact .form textarea {
    background: none;
    color: var(--white);
    border: var(--border);
    border-radius: .5rem;
    padding: 1.4rem;
    font-size: 2rem;
    text-transform: none;
}

.contact .form .input:focus,
.contact .form textarea:focus {
    border-color: var(--main-color);
    transition: .2s linear;
}

.contact .form .input::placeholder,
.contact .form textarea::placeholder {
    text-transform: capitalize;
    color: var(--light-white);
}

.contact .form textarea {
    height: 20rem;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    resize: none;
}

.contact .form .btn:hover {
    background-color: var(--main-color);

}

/* taal */
.language-picker {
    position: relative;
    display: inline-block;
    font-family: "Lato", serif;
}

.language-picker__button {
    display: flex;
    align-items: center;
    background: #979283;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
    color: var(--white);
    gap: 1rem;
}

.language-picker__button:hover {
    background-color: #979283;
}

.language-picker__arrow {
    margin-left: 10px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.language-picker__dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
    z-index: 100;
    min-width: 150px;
    transition: visibility 0.2s, opacity 0.2s ease;
    color: var(--white);
    background: #979283;
}

.language-picker:hover .language-picker__dropdown {
    visibility: visible;
    opacity: 1;
}

.language-picker__dropdown li {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
    background: #979283;
}

.language-picker__dropdown li:hover {
    background-color: #979283;
}

.language-picker__dropdown li a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    width: 100%;
}

.language-picker__dropdown li a span {
    margin-left: 10px;
}

.language-picker__flag {
    width: 20px;
    height: 15px;
    background-size: cover;
    border-radius: 2px;
    display: inline-block;
}

.language-picker__flag--english {
    background-image: url('https://i.ebayimg.com/images/g/GC8AAOSwHWJbisRS/s-l1200.jpg');
    background-size: cover;
    background-position: center;
}

.language-picker__flag--sweden {
    background-image: url('https://upload.wikimedia.org/wikipedia/en/thumb/4/4c/Flag_of_Sweden.svg/1920px-Flag_of_Sweden.svg.png');
}

.language-picker__flag--netherlands {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Flag_of_the_Netherlands.svg/1920px-Flag_of_the_Netherlands.svg.png');
}

/* footer */


.footer {
    border-top: var(--border);
    background: url(wa)no-repeat;
    background-size: cover;
    background-position: center;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 30rem);
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
}

.footer .box-container .box:last-child {
    text-align: right;
}

.footer .box-container .box:nth-child(2) {
    text-align: center;
}

.footer .box-container .box h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer .box-container .box .link {
    padding: 1rem;
    font-size: 1.6rem;
    color: var(--light-white);
    display: block;
}

.footer .box-container .box .link:hover {
    text-decoration: underline;
    color: var(--white);
    text-underline-offset: .5rem;
}

.footer .box-container .box p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--light-white);
    padding: 1rem 0;
}

.footer .box-container .box .share-links {
    margin-top: 1rem;
}

.footer .box-container .box .share-links a {
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.4rem;
    border-radius: 50%;
    font-size: 2rem;
    background-color: var(--white);
    color: var(--black);
    margin-right: 0 .5rem;
}

.footer .box-container .box .share-links a:hover {
    background-color: var(--main-color);
    color: var(--white);
}

.footer .credit {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 2rem;
    border-top: var(--border);
    color: var(--light-white);
}

.footer .credit span {
    color: var(--main-color);
}



.flip-card-front{
    width: 100%;
}
.card-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}






/* media */
@media (max-width:991px) {
    html {
        font-size: 55%;
    }
    .card-img{
     
    }
    .card-img-ship{
        margin-top: 7rem;
    
    }
}

@media (max-width:768px) {
    #menu-btn {
        display: inline-block;
    }
  
    .card-img{
        
        
        width: 50%;
    
    }
    .card-img-ship{
        margin-top: 3rem;
        width: 30%;
    }
   
    .flip-card-front{
        display: flex;
        align-items: center;
    }
    .header .flex .navbar {
        position: fixed;
        top: 0;
        left: -120%;
        height: 100%;
        width: 100%;
        z-index: 2000;
        background: var(--black);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        flex-flow: column;
        transition: .2s linear;
    }

    .header .flex .navbar.active {
        left: 0;
    }

    .header .flex .navbar a {
        font-size: 4rem;
    }

    .home .flex .content h3 {
        font-size: 3.5rem;
    }

    .footer .credit {
        justify-content: center;
        text-align: center;
    }

    .vid-2 {
        height: 80%;
    }

    .card-info {
        flex-direction: row;
        height: 100vh;
    }

    .flip-card {
        width: 80%;
        height: 50%;
    }
    .leaderboard{
        font-size: 1.6rem;
    }
    .card-img{
        
        margin-top: 1rem;
        width: 100%;
    
    }
    .card-img-ship{
        
        margin-top: 9rem;
        width: 100%;
    
    }
}


@media (max-width:450px) {
    html {
        font-size: 50%;
    }
   
    .home-text{
        width: 190% !important;
    }
    .card-full{
        height: 180vh;
    }
    .card-info{
        display: flex;
        flex-wrap: wrap;
        
    }
    .player-name{
        font-size: 2rem !important;
    }
   

}

.leaderboard-full {
    margin-top: -5rem;
    font-family: sans-serif;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    color: #fff;
   
}


.leaderboard {
    background: transparent;
    border-radius: 20px;
    width: 90%;
    height: 100%;
    padding: 20px;
   

}

.leaderboard-header {
    background: transparent;
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}
.leaderboard-header span{
    color: var(--main-color);
    text-transform: uppercase;
}

.leaderboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #939496;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 10px;
    height: 5rem;
    width: 70%;
    box-shadow: var(--box-shadow);
}

.leaderboard-item.rank-1 {
    background: #F6931E;
    height: 8rem;
    width: 100%;
    box-shadow: var(--box-shadow);
}

.leaderboard-item.rank-2 {
    background: #BCBDBF;
    height: 6rem;
    width: 90%;
    box-shadow: var(--box-shadow);
}

.leaderboard-item.rank-3 {
    background: #C07428;
    height: 5.5rem;
    width: 80%;

    box-shadow: var(--box-shadow);
}

.rank {
    font-size: 3rem;
    font-weight: bold;
    margin-right: 15px;
}

.player-name {
    font-size: 3rem;
    font-weight: bold;
}

.player-score {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}


.image-vic{
   
    width: 100% !important;
 
}

/* Add these styles to fix the card flip issue on mobile */
.flip-card {
    background-color: transparent;
    width: 25%;
    height: 34rem;
    perspective: 1000px;
    font-family: "Lato", serif;
    /* Ensure proper overflow handling */
    overflow: visible;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:active .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: var(--border);
    border-radius: 1rem;
}

.flip-card-back {
    background: #979283;
    color: white;
    transform: rotateY(180deg);
    /* Ensure the back content is properly shown */
    z-index: 1;
}

/* Media query adjustments */
@media (max-width: 768px) {
    .flip-card {
        width: 80%;
        height: 50%;
    }
    
    /* Ensure images don't interfere with the flip */
    .card-img, .card-img-ship, .card-img-brood {
        position: relative;
        z-index: 0;
    }
    
    /* Add touch support for mobile */
    .flip-card:active .flip-card-inner {
        transform: rotateY(180deg);
    }
    .card-img-brood{
        width: 150%;
    }
}

@media (max-width: 450px) {
    .card-info {
        display: flex;
        flex-wrap: wrap;
        height: auto;
        padding: 2rem 0;
    }
    .img-phone{
        display: none;
    }
    
    .flip-card {
        margin-bottom: 2rem;
        height: 30rem;
    }
}

/* Enhanced mobile responsiveness for flip cards */
.card-full {
    margin-top: 5rem;
    width: 100%;
    background: url(../img/background8.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem 0;
}

.card-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.flip-card {
    background-color: transparent;
    width: 25%;
    height: 34rem;
    perspective: 1000px;
    font-family: "Lato", serif;
    overflow: visible;
    margin-bottom: 2rem;
}

.title {
    font-size: 2.4rem;
    font-weight: 900;
    text-align: center;
    margin: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: var(--border);
    border-radius: 1rem;
}

.card-text {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.card-img, .card-img-ship, .card-img-brood {
    width: 60%;
    max-height: 60%;
    object-fit: contain;
    margin: 0 auto;
}

.flip-card-front {
    background: #979283;
    color: white;
    z-index: 1;
}

.flip-card-back {
    background: #979283;
    color: white;
    transform: rotateY(180deg);
    z-index: 2;
    padding: 1.5rem;
}

/* Custom class for flipped state */
.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Media queries with significant improvements for mobile */
@media (max-width: 991px) {
    .flip-card {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .card-info {
        flex-direction: column;
        height: auto;
        gap: 3rem;
    }

    .flip-card {
        width: 80%;
        height: 25rem;
    }

    .card-img, .card-img-ship, .card-img-brood {
        max-height: 50%;
        max-width: 50%;
    }
}

@media (max-width: 450px) {
    .card-full {
        height: auto;
        padding-bottom: 3rem;
    }
    
    .card-info {
        height: auto;
        padding: 1rem 0;
        gap: 2rem;
    }
    
    .flip-card {
        width: 90%;
        height: 22rem;
        margin-bottom: 1rem;
    }
    
    .card-img, .card-img-ship, .card-img-brood {
        max-height: 75%;
        max-width: 75%;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .card-text {
        font-size: 1.6rem;
    }
    
    .flip-card-back {
        padding: 1rem;
    }
}