@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400..900&display=swap');

:root {
    --greenGrey: #93aaaa;
    --turquise: #99fffe;
    --whitePer: rgba(255,255,255,0.3);

    /* New */
    --black: #000;
    --white: #fff;
    --fontColor: #414141;
    --fontBoxColor: #d2d2d2;
    --mainBlue: #0F4C81;
    --mainLightBlue: #D8EDFF;
    --mainDarkBlue: #193A58;
    --mainBlueTrans: rgba(15, 76, 129, 0.8);
    --mainDarkBlueTrans: rgba(25, 58, 88, 0.8);
    --mainBlueComplement: #D7AA61;
}
/* General */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Fixed scroll button styles */
.scroll-down-btn-fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 6px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease, opacity 0.5s ease;
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
    display: block;
    animation: gentleBounce 3s ease-in-out infinite;
}

.scroll-down-btn-fixed img {
    width: 20px;
    height: auto;
    transition: transform 0.3s ease;
    opacity: .7;
    display: block;
}
@media (min-width: 768px) {
    .scroll-down-btn-fixed img {
        width: 30px;
    }
}

.scroll-down-btn-fixed:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down-btn-fixed:hover img {
    transform: scale(1.1);
}

/* <uniquifier>: Use a unique and descriptive class name */
/* <weight>: Use a value from 400 to 900 */
.tektur-400 {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
}

h1 {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
}
h1, h2 {
    color: var(--mainDarkBlue);
    margin-top: 15px;
    margin-bottom: 25px;
}
h3 {
    margin-bottom: 15px;
}
h2 , h3 {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
            "wdth" 100;
}
p {
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    color: var(--fontColor);
    margin-bottom: 15px;
}

/* Section */
section {
    padding-top: 30px;
    padding-bottom: 30px;
    @media (min-width: 768px) {
        padding-top: 85px;
        padding-bottom: 85px;
    }
}
/* Start Bootstrap overrides */
.btn {
    border-radius: 7px;
    transition: 0.5s;
    &.btn-primary {
        background-color: var(--greenGrey);
        border: 1px solid var(--greenGrey);
        color: var(--fontColor);
    }
    &.btn-outline-secondary {
        background-color: var(--mainLightBlue);
        border: 1px solid var(--mainLightBlue);
        color: var(--fontColor);
        &:hover {
            background-color: var(--greenGrey);
            color: var(--fontColor);
        }
    }
    &:hover {
        background-color: var(--mainLightBlue);
        border: 1px solid var(--greenGrey);
        color: var(--fontColor);
        border-radius: 0 7px;
    }
    &:active, &.active, &:first-child:active {
        background-color: var(--greenGrey);
        border: 1px solid var(--greenGrey);
    }
}
/* Nav */
.navbar-brand {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    color: var(--white);
    font-variation-settings:
            "wdth" 100;
    &:hover, &:focus {
        color: var(--fontBoxColor);
        text-decoration: underline;
    }
    img {
        width: 52px;
        height: auto;
        margin-right: 5px;
        transition: 1.0s;
        &:hover {
            transform: rotate(15deg);
        }
    }
}
.nav-link {
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    color: var(--white);
    &:hover, &:focus, &:active {
        color: var(--fontBoxColor);
        text-decoration: underline;
    }
}
.navbar-nav {
    .nav-link {
        &.active {
            color: var(--fontBoxColor);
            text-decoration: underline;
        }
        &.show {
            color: var(--fontBoxColor);
            text-decoration: underline;
        }
    }
}
.navbar.fixed-top.navbar-expand-lg {
    background-color: var(--mainBlueTrans);
}

.dropdown-menu {
    background-color: var(--mainLightBlue);
    border: 1px solid var(--mainLightBlue);
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: var(--mainLightBlue);
    color: var(--fontColor);
    text-shadow: 1px 1px 7px white;
    text-decoration: underline;
}
/* End Bootstrap overrides */

/* Animations */
.animate-up {
    opacity: 0;
    transform:  translateY(50px);
    animation: moveUp 0.5s linear forwards;
}
@keyframes moveUp {
    100% {
        opacity: 1;
        transform:  translateY(0);
    }
}
.animate-hero-up {
    opacity: 0;
    /*transform:  translateY(50%);*/
    animation: moveHeroUp 0.5s linear forwards;
}
@keyframes moveHeroUp {
    100% {
        opacity: 1;
        transform:  translate(-50%, -50%);
    }
}

/* Gentle bounce animation for scroll button */
@keyframes gentleBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}
/* Hero */
.hero {
    width: 100%;
    height: 100vh;
    background-color: var(--mainBlue);
    /*background-image: url("../assets/back_img10.png");*/
    /*background-image: url("../assets/back_img.png");*/
    align-content: center;
    position: relative;
    overflow: hidden;
    .hero-text-box {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 30px rgba(255,255,255,20%);
        background-color: var(--mainDarkBlueTrans);
        border-radius: 7px;
        padding: 25px;
        z-index: 1;
        width: 100%;
        h1 {
            /*color: var(--fontColor);*/
            color: var(--fontBoxColor);
            animation-delay: 0.25s;
        }
        h2 {
            color: var(--fontBoxColor);
            font-size: 1.1em;
            animation-delay: 0.5s;
        }
        p {
            color: var(--fontBoxColor);
            animation-delay: 0.75s;
        }
        img {
            animation-delay: 1.0s;
        }
        @media (min-width: 768px) {
            background-color: var(--mainDarkBlue);
            transform: translate(-50%, -25%);
            width: auto;
        }
    }
    .product-device {
        position: absolute;
        right: 10%;
        bottom: -25%;
        width: 300px;
        height: 540px;
        background-color: #333;
        border-radius: 21px;
        transform: rotate(30deg);
        opacity: .3;
        &:before {
            position: absolute;
            top: 10%;
            right: 10px;
            bottom: 10%;
            left: 10px;
            content: "";
            background-color: var(--fontBoxColor);
            /*background-color: rgba(255, 255, 255, .1);*/
            border-radius: 5px;
        }
        @media (min-width: 768px) {
            opacity: 1.0;
        }
    }
    .product-device-2 {
        top: -30%;
        right: auto;
        bottom: 0;
        left: 5%;
        background-color: var(--black);
        &:before {
            position: absolute;
            top: 10%;
            right: 10px;
            bottom: 10%;
            left: 10px;
            content: "";
            background-color: var(--mainDarkBlue);
            /*background-color: rgba(255, 255, 255, .1);*/
            border-radius: 5px;
        }
    }
}

/* What have we done */
.what-have-we-done {
    /*height: 100vh;*/
    background-color: var(--mainLightBlue);
    align-content: center;
    > div.row {
        flex-direction: column;
        @media (min-width: 768px) {
            flex-direction: row;
        }
        > div.col-12 {
            padding: 35px;
            background-color: var(--mainBlue);
            h3 {
                color: var(--mainBlueComplement);
                text-shadow: 2px 2px 3px var(--fontColor);
            }
            p, h4 {
                color: var(--fontBoxColor);
            }
        }
        > div.col-12:nth-child(1) {
            margin-top: 10px;
            @media (min-width: 768px) {
                margin-right: 20px;
                border-radius: 40px 10px 10px 40px;
            }
        }
        > div.col-12:nth-child(2) {
            margin-top: 10px;
            @media (min-width: 768px) {
                margin-left: 20px;
                border-radius: 10px 40px 40px 10px;
            }
        }
    }
    .android-app-link {
        img {
            height: 50px;
        }
    }
}

/* Careers */
.open-positions {
    background-color: var(--mainLightBlue);
}
.all-open-positions {
    background-color: var(--mainLightBlue);
}
.view-all-open-positions {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.open-position {
    border-bottom: 1px solid var(--mainLightBlue);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: space-between;
}
.open-position h3, .open-position p {
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .open-position {
        flex-direction: row;
        align-items: center;
        padding: 20px;
    }
    
    .open-position h3 {
        flex: 0 1 auto;
        margin-bottom: 0;
        min-width: 200px;
        align-content: flex-start;
    }
    
    .open-position p:first-of-type {
        flex: 0 1 auto;
        margin-bottom: 0;
        min-width: 100px;
    }
    
    .open-position p:last-of-type {
        flex: 0 1 auto;
        margin-bottom: 0;
        min-width: 150px;
        text-align: right;
    }
}
.open-position:first-child {
    border-top: 1px solid var(--mainLightBlue);
}

/* Top Page Adjust for No Hero */
.privacy-policy, .terms-and-conditions, .job-description {
    padding-top: 89px;
}
@media (min-width: 768px) {
    .privacy-policy, .terms-and-conditions, .job-description {
        padding-top: 80px;
    }
}

/* Job Description */
.job-description h1 {
    margin-bottom: 10px;
}
.job-description h2 {
    margin-top: 10px;
}
.job-description .job-description-content h2.job-strong {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Application Form Styles */
.application-form {
    background-color: var(--mainLightBlue);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--mainBlue);
    color: var(--white);
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title {
    font-family: "Tektur", sans-serif;
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: var(--mainDarkBlue);
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid var(--mainLightBlue);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--mainBlue);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.25);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

.form-text {
    color: var(--fontColor);
    font-size: 0.875em;
}

.alert-info {
    background-color: var(--mainLightBlue);
    border: 1px solid var(--mainBlue);
    color: var(--mainDarkBlue);
}

.modal-footer {
    border-top: 1px solid var(--mainLightBlue);
    padding: 20px;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
}
.job-description .btn-sm {
    margin-top: 20px;
}
.job-description-content {
    margin-top: 30px;
}

/* Game Page */
/* Features */
.features {
    background-color: var(--mainDarkBlue);
    h2 {
        color: var(--mainLightBlue);
    }
    h3 {
        color: var(--mainBlueComplement);
    }
    p {
        color: var(--fontBoxColor);
    }
    .feature-item {
        margin-top: 30px;
    }
}
/* How to Play */
.how-to-play {
    background-color: var(--mainLightBlue);
}
/* Screenshots */
.screenshots {
    background-color: var(--mainBlue);
    h2 {
        color: var(--mainLightBlue);
    }
}

/* Download Section */
.download-section {
    background-color: var(--mainLightBlue);
    img {
        margin-bottom: 20px;
    }
}

/* Contact Page */
/* Contact Form Section */
.contact-form {
    background-color: var(--mainLightBlue);
}

/* Social */
.social {
    /*height: 100vh;*/
    background-image: linear-gradient(180deg , var(--mainLightBlue) 25%, var(--mainBlue));
    /*background-color: var(--mainDarkBlue);*/
    align-content: center;
    .social-links {
        background-color: var(--mainDarkBlue);
        padding: 5px;
        border-radius: 40px 10px;
        a {
            transition: 1.0s;
            text-decoration: none;
            &.discord {
                padding: 8px 2px 10px 6px;
                &:hover {
                    background-color: var(--mainBlue);
                    width: 100%;
                    padding: 8px 2px 10px 6px;
                    border-radius: 5px;

                }
            }
            &.android {
                padding: 8px 3px 10px 4px;
                &:hover {
                    background-color: var(--mainBlue);
                    width: 100%;
                    padding: 8px 3px 10px 4px;
                    border-radius: 5px;
                }
            }
        }
        img {
            width: 35px;
            height: auto;
            transition: 1.0s;
            &:hover {
                transform: rotate(15deg);
            }
        }
    }
}

/* Footer */
.footer {
    background-color: var(--mainBlue);
    a {
        color: var(--mainLightBlue);
        &:link, &:focus, &:active {
            color: var(--mainLightBlue);
        }
    }
    p {
        color: var(--mainLightBlue);
    }
    img {
        transition: 1.0s;
        &:hover {
            transform: rotate(15deg);
        }
    }
}