﻿@import "/UI/Styles/styles.scss";

MenuHud {
    width: 100%;
    height: 100%;
    font-family: $font-primary;
    pointer-events: all;
    cursor: none;
    transition: opacity 0.25s;

    .discord {
        font-size: 20px;
        position: absolute;
        width: 415px;
        height: 100px;
        color: $text-primary-color;
        bottom: 6%;
        right: 3%;
        gap: 20px;
        opacity: 0.3;
        background-color: grey;
        border-radius: 8px;
        padding: 20px;
        transition: background-color 0.3s ease;

        &:hover {
            opacity: 0.6;
            background-color: #f46424;
            animation: dance 2s infinite;
            transition: background-color 0.3s ease;
        }

        .text {
            flex-direction: column;

            .title {
                font-weight: bold;
                font-size: 28px;
            }
        }

        > img {
            background-size: contain;
            background-repeat: no-repeat;
            width: 80px;
            height: 80px;
        }
    }

    &.hide {
        opacity: 0;
    }

    .left {
        position: absolute;
        top: 18%;
        left: 15%;
        flex-direction: column;
    }

    .right {
        pointer-events: none;
        position: absolute;
        width: 35%;
        height: 100%;
        right: 15%;

        .container {
            position: relative;
            height: 100%;
            align-items: center;
        }
    }

    .title {
        > img {
            width: 400px;
            height: 200px;
            background-size: contain;
            background-repeat: no-repeat;
        }
    }

    .menu {
        flex-direction: column;
        gap: 16px;
        margin-top: 48px;

        .menu-button {
            align-items: center;
            justify-content: center;
            width: 400px;
            height: 102px;
            opacity: 1;

            &:intro {
                opacity: 0;
            }

            &.selected {
                animation: dance 2s infinite;
            }

            &:hover {
                animation: dance 2s infinite;
            }
        }

        .menu-button-image {
            background-image: url("textures/ui/menu_shape_1.png");
            background-size: cover;
            background-repeat: no-repeat;
            width: 100%;
            height: 100%;
        }

        .menu-button-label {
            position: absolute;
            align-self: center;
            font-size: 32px;
            margin-top: 8px;
            color: $text-primary-color;
        }

        .rotate-180 {
            transform: rotate(180deg);
        }
    }

    .menu-hud {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: transparent;
    }

    .black {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: black;
        z-index: 5;
        opacity: 1;
        transition: opacity 1s;

        &.hide {
            opacity: 0;
        }
    }

    .video-hud {
        opacity: 1;
        transition: opacity 1s;
        z-index: 10;

        &.hide {
            opacity: 0;
        }
    }
}

@keyframes dance {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}