﻿@font-face {
    font-family: Vazir;
    src: url('/fonts/Vazir.eot');
    src: url('/fonts/Vazir.eot?#iefix') format('embedded-opentype'), url('/fonts/Vazir.woff2') format('woff2'), url('/fonts/Vazir.woff') format('woff'), url('/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: Vazir;
    src: url('/fonts/Vazir-Bold.eot');
    src: url('/fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'), url('/fonts/Vazir-Bold.woff2') format('woff2'), url('/fonts/Vazir-Bold.woff') format('woff'), url('/fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: Vazir;
    src: url('/fonts/Vazir-Light.eot');
    src: url('/fonts/Vazir-Light.eot?#iefix') format('embedded-opentype'), url('/fonts/Vazir-Light.woff2') format('woff2'), url('/fonts/Vazir-Light.woff') format('woff'), url('/fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: Vazir;
    src: url('/fonts/Vazir-Medium.eot');
    src: url('/fonts/Vazir-Medium.eot?#iefix') format('embedded-opentype'), url('/fonts/Vazir-Medium.woff2') format('woff2'), url('/fonts/Vazir-Medium.woff') format('woff'), url('/fonts/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: Vazir;
    src: url('/fonts/Vazir-Thin.eot');
    src: url('/fonts/Vazir-Thin.eot?#iefix') format('embedded-opentype'), url('/fonts/Vazir-Thin.woff2') format('woff2'), url('/fonts/Vazir-Thin.woff') format('woff'), url('/fonts/Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
}

@font-face {
    font-family: Vazir;
    src: url('/fonts/Vazir-Black.eot');
    src: url('/fonts/Vazir-Black.eot?#iefix') format('embedded-opentype'), url('/fonts/Vazir-Black.woff2') format('woff2'), url('/fonts/Vazir-Black.woff') format('woff'), url('/fonts/Vazir-Black.ttf') format('truetype');
    font-weight: 900;
}
:root {
    --stark-light-blue: #00fffc;
    --stark-med-blue: #00a4a2;
}

* {
    box-sizing: border-box;
}
body {
    font-family: 'Vazir', sans-serif;
    direction:rtl;
}

html {
    background: #000;
    background-size: cover;
    font-size: 10px;
    height: 100%;
    overflow: hidden;
    position: absolute;
    text-align: center;
    width: 100%;
}

/* =========================================
Stark Industries Logo
========================================= */

#logo {
    animation: logo-entry 2s ease-in;
    width: 500px;
    margin: 0 auto;
    position: relative;
    margin-top: 5%;
    z-index: 40;
}

h1 {
    animation: text-glow 1s ease-out infinite alternate;
    color: var(--stark-med-blue);
    font-size: 3.8rem;
    font-weight: bold;
    position: absolute;
    text-shadow: 0 0 10px #000, 0 0 20px #000, 0 0 30px #000, 0 0 40px #000, 0 0 50px #000, 0 0 60px #000, 0 0 70px #000;
    top: 30px;
    right:30px;
}

    h1:before {
        animation: before-glow 1s ease-out infinite alternate;
        border-left: 535px solid transparent;
        border-bottom: 10px solid var(--stark-med-blue);
        content: ' ';
        height: 0;
        position: absolute;
        right: -60px;
        top: -10px;
        width: 0;
    }

    h1:after {
        animation: after-glow 1s ease-out infinite alternate;
        border-left: 100px solid transparent;
        border-top: 16px solid var(--stark-med-blue);
        content: ' ';
        height: 0;
        position: absolute;
        right: -70px;
        top: 25px;
        transform: rotate(-47deg);
        width: 0;
    }

/* =========================================
Log in form
========================================= */

#fade-box {
    animation: input-entry 5s ease-in;
    z-index: 4;
}

.stark-login {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 100%;
    text-align: center;
}

    .stark-login form {
        animation: form-entry 5s ease-in-out;
        background: #111;
        background: linear-gradient(#004746, #111);
        border: 6px solid var(--stark-med-blue);
        box-shadow: 0 0 15px var(--stark-light-blue);
        border-radius: 5px;
        display: inline-block;
        min-height: 260px;
        margin: 0 auto;
        padding: 20px;
        position: relative;
        width: 500px;
        transition: 1s all;
    }

        .stark-login form:hover {
            border: 6px solid var(--stark-light-blue);
            box-shadow: 0 0 25px var(--stark-light-blue);
        }

    .stark-login input {
        background: #222;
        background: linear-gradient(#333, #222);
        border: 1px solid #444;
        border-radius: 5px;
        box-shadow: 0 2px 0 #000;
        color: #888;
        display: block;
        font-size: 1.3rem;
        height: 40px;
        margin: 20px auto 10px;
        padding: 0 10px;
        text-shadow: 0 -1px 0 #000;
        width: 400px;
    }

        .stark-login input:focus {
            animation: box-glow 1s ease-out infinite alternate;
            background: #0b4252;
            background: linear-gradient(#333933, #222922);
            border-color: var(--stark-light-blue);
            box-shadow: 0 0 5px rgba(0, 255, 253, 0.2), inset 0 0 5px rgba(0, 255, 253, 0.1), 0 2px 0 #000;
            color: #efe;
            outline: none;
        }

        .stark-login input:invalid {
            border: 2px solid red;
            box-shadow: 0 0 5px rgba(255, 0, 0, 0.2), inset 0 0 5px rgba(255, 0, 0, 0.1), 0 2px 0 #000;
        }

    .stark-login button,
    .stark-login a {
        animation: input-entry 3s ease-in;
        background: #222;
        background: linear-gradient(#333, #222);
        border: 1px solid #444;
        border-radius: 5px;
        box-shadow: 0 2px 0 #000;
        color: #fff;
        display: inline-block; /* Change to inline-block for both */
        font-size: 1.3rem;
        height: 40px;
        line-height: 40px;
        margin: 20px 10px; /* Add horizontal margin */
        padding: 0 20px; /* Add horizontal padding for the link */
        text-shadow: 0 -1px 0 #000;
        text-decoration: none; /* Remove underline from the link */
        width: auto; /* Set width to auto for both */
        cursor: pointer; /* Change cursor to pointer for both */
        transition: 1s all;
    }

        .stark-login button:hover,
        .stark-login button:focus,
        .stark-login a:hover,
        .stark-login a:focus {
            background: #0c6125; /* Change background on hover */
            background: linear-gradient(#393939, #292929); /* Change background on hover */
            color: var(--stark-light-blue); /* Change text color on hover */
        }

        .stark-login button:active,
        .stark-login a:active {
            background: #292929; /* Active background for button and link */
            background: linear-gradient(#393939, #292929); /* Active background for button and link */
            box-shadow: 0 1px 0 #000, inset 1px 0 1px #222;
            top: 1px;
        }

/* =========================================
Spinner
========================================= */
#circle1 {
    animation: circle1 4s linear infinite, circle-entry 1s ease-in-out;
    background: #000;
    border: 10px solid var(--stark-med-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 2px black, 0 0 0 6px var(--stark-light-blue);
    height: 500px;
    width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    opacity: 0.4;
    z-index: -3;
}

#inner-cirlce1 {
    background: #000;
    border-radius: 50%;
    border: 36px solid var(--stark-light-blue);
    height: 460px;
    width: 460px;
    margin: 10px;
    &:before

{
    content: ' ';
    width: 240px;
    height: 480px;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
}
&:after {
    content: ' ';
    width: 480px;
    height: 240px;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
}
}



/* =========================================
Hexagon Mesh
========================================= */

.hexagons {
    animation: logo-entry 2s ease-in;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: absolute;
    top: 35em;
    left: 50%;
    transform: translate(-50%, -50%) perspective(600px) rotateX(60deg) scale(1.4);
    z-index: -3;
    animation: logo-entry 4s ease-in;
    opacity: 0.4;
}

.hexagon {
    position: relative;
    width: 100px; /* Adjust size as needed */
    height: 57.74px; /* Height for hexagon */
    margin: 5px; /* Space between hexagons */
    background-color: #00a4a2; /* Hexagon color */
    border: 5px solid red;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.hexagon:hover {
    transform: scale(1.1); /* Scale effect on hover */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}
/* =========================================
Animation Keyframes
========================================= */

@keyframes logo-entry {
    0% {
        opacity: 0;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes circle-entry {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 0.4;
    }
}

@keyframes input-entry {
    0% {
        opacity: 0;
    }

    90% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes form-entry {
    0% {
        height: 0;
        width: 0;
        opacity: 0;
        padding: 0;
    }

    20% {
        height: 0;
        border: 1px solid var(--stark-med-blue);
        width: 0;
        opacity: 0;
        padding: 0;
    }

    40% {
        width: 0;
        height: 220px;
        border: 6px solid var(--stark-med-blue);
        opacity: 1;
        padding: 0;
    }

    100% {
        height: 220px;
        width: 500px;
    }
}

@keyframes box-glow {
    0% {
        border-color: #00b8b6;
        box-shadow: 0 0 5px rgba(0, 255, 253, 0.2), inset 0 0 5px rgba(0, 255, 253, 0.1), 0 2px 0 #000;
    }

    100% {
        border-color: var(--stark-light-blue);
        box-shadow: 0 0 20px rgba(0, 255, 253, 0.6), inset 0 0 10px rgba(0, 255, 253, 0.4), 0 2px 0 #000;
    }
}

@keyframes text-glow {
    0% {
        color: var(--stark-med-blue);
        text-shadow: 0 0 10px #000, 0 0 20px #000, 0 0 30px #000, 0 0 40px #000, 0 0 50px #000, 0 0 60px #000, 0 0 70px #000;
    }

    100% {
        color: var(--stark-light-blue);
        text-shadow: 0 0 20px rgba(0, 255, 253, 0.6), 0 0 10px rgba(0, 255, 253, 0.4), 0 2px 0 #000;
    }
}

@keyframes before-glow {
    0% {
        border-bottom: 10px solid var(--stark-med-blue);
    }

    100% {
        border-bottom: 10px solid var(--stark-light-blue);
    }
}

@keyframes after-glow {
    0% {
        border-top: 16px solid var(--stark-med-blue);
    }

    100% {
        border-top: 16px solid var(--stark-light-blue);
    }
}

@keyframes circle1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



@media (max-width: 768px) {
    h1 {
        font-size: 3.1rem;
    }

    #logo {
    }

    .stark-login form {
        width: 80%;
    }

    .stark-login input,
    .stark-login button {
        width: 80%;
    }

    #circle1 {
        height: 250px;
        width: 250px;
    }

    #inner-cirlce1 {
        height: 210px;
        width: 210px;
    }
}
