$primary: #1a1a1a87;
$secondary: #242424;
$tertiary: #fdc418;

$button-primary: #ffffff !default;
$button-primary-fg: #ffffff !default;
$button-secondary: #282828 !default;
$button-secondary-fg: #dadada !default;
$button-size: 45px;

HUD {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    font-family: Tahoma;
    font-weight: bold;
    transition: all 0.1s linear;
    font-family: Poppins;
    color: white;
    text-shadow: 1px 1px 2px black;
    z-index: 100;

    .items {
        position: absolute;
        right: 12px;
        padding-bottom: 12px;
        width: 300px;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;

        .item {
            height: 40px;
            width: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            font-size: 20px;
            align-items: center;
            justify-content: center;
            transition: opacity 0.1s ease-out;
            transition: height 0.1s ease-in;

            .slot-number {
                height: 100%;
                margin-right: 8px;
                width: 34px;
                text-align: center;
                align-items: center;
                justify-content: center;
                font-weight: bold;
            }

            .slot-text {
                flex-grow: 1;
                align-items: center;
                padding-left: 10px;
            }

            .slot-ammo {
                height: 100%;
                width: 100px;
                align-items: center;
                justify-content: center;
                font-weight: bold;
            }

            &.active {
                height: 60px;
                background: linear-gradient(90deg, rgb(60, 60, 60) 0%, rgba(255, 255, 255, 0) 60%);
            }

            &:first-child {
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;

                .slot-number {
                    border-top-left-radius: 10px;
                }
            }

            &:last-child {
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;

                .slot-number {
                    border-bottom-left-radius: 10px;
                }
            }
        }
    }

    > .score {
        position: absolute;
        top: 32px;
        left: 32px;
        font-size: 42px;
        color: white;
        filter: drop-shadow(0 0 10px rgba(black, 0.7));
    }

    .crosshair {
        position: absolute;
        border-radius: 50%;
        background-color: white;
        opacity: 0.3;
        width: 4px;
        height: 4px;
    }

    .spawntip1 {
        position: absolute;
        bottom: 100px;
        left: 12px;
        width: 300px;
        height: 100px;
        align-items: center;
        filter: drop-shadow(0 0 10px rgba(black, 0.7));
        bottom: 15%;

        .tip-text {
            font-size: 20px;
        }

        .tip-button {
            width: 40px;
            height: 40px;
            position: relative;
        }
    }

    .spawntip2 {
        position: absolute;
        bottom: 140px;
        left: 12px;
        width: 300px;
        height: 100px;
        align-items: center;
        filter: drop-shadow(0 0 10px rgba(black, 0.7));
        bottom: 20%;

        .tip-text {
            font-size: 20px;
        }

        .tip-button {
            width: 40px;
            height: 40px;
            position: relative;
        }
    }

    .balltip {
        position: absolute;
        width: 400px;
        align-items: center;
        height: 50px;
        filter: drop-shadow(0 0 10px rgba(black, 0.7));

        .tip-text {
            font-size: 20px;
        }

        .image {
            width: 60px;
            height: 60px;
            position: relative;
            background-repeat: no-repeat;
            background-position: center;
            background-size: 80%;
            gap: 10px;
        }
    }

    .ability {
        position: absolute;
        bottom: 72px;
        left: 12px;
        width: 300px;
        height: 40px;
        background-color: rgba(0, 145, 164, 0.4);

        .health {
            width: 300px;
            align-items: center;
            background-color: rgba(0, 145, 164, 0.4);
            position: relative;
            padding: 6px;

            .propbar {
                border-radius: 4 0 0 4px;
                font-size: 20px;
                font-weight: bold;
                background-color: rgba(0, 0, 0, 0.7);
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                width: 60%;
                height: 100%;
                position: relative;
            }

            .propbar-fill {
                position: absolute;
                border-radius: 4 0 0 4;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 0;
            }

            .propbar label {
                position: relative;
                z-index: 1;
                color: rgb(255, 255, 255);
                filter: drop-shadow(0 0 10px rgba(black, 0.7));
            }

            .number {
                width: 40%;
                height: 100%;
                border-radius: 0 4 4 0;
                font-size: 20px;
                align-items: center;
                justify-content: space-evenly;
                flex-shrink: 0;
                background-color: $primary;
                filter: drop-shadow(0 0 10px rgba(black, 0.7));
            }
        }
    }

    .proplimit {
        position: absolute;
        bottom: 113px;
        left: 12px;
        width: 300px;
        height: 40px;

        .health {
            width: 300px;
            align-items: center;
            background-color: rgba(0, 145, 164, 0.4);
            position: relative;
            padding: 6px;
            border-radius: 10 10 0 0;

            .propbar {
                border-radius: 4 0 0 4px;
                font-size: 20px;
                font-weight: bold;
                background-color: rgba(0, 0, 0, 0.7);
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                width: 60%;
                height: 100%;
                position: relative;
            }

            .propbar-fill {
                position: absolute;
                border-radius: 4 0 0 4;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 0;
            }

            .propbar label {
                position: relative;
                z-index: 1;
                color: rgb(255, 255, 255);
                filter: drop-shadow(0 0 10px rgba(black, 0.7));
            }

            .number {
                width: 40%;
                height: 100%;
                border-radius: 0 4 4 0;
                font-size: 20px;
                align-items: center;
                justify-content: space-evenly;
                flex-shrink: 0;
                background-color: $primary;
                filter: drop-shadow(0 0 10px rgba(black, 0.7));
            }
        }
    }

    .healthholder {
        position: absolute;
        bottom: 12px;
        left: 12px;
        width: 300px;
        height: 60px;

        .health {
            width: 300px;
            align-items: center;
            background-color: rgba(0, 0, 0, 0.4);
            position: relative;
            padding: 6px;
            border-radius: 0 0 10 10;

            .healthbar {
                border-radius: 4 0 0 4px;
                font-size: 30px;
                font-weight: bold;
                background-color: rgba(0, 0, 0, 0.7);
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                width: 60%;
                height: 100%;
                position: relative;
            }

            .healthbar-fill {
                position: absolute;
                border-radius: 4 0 0 4;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 0;
            }

            .healthholder label {
                position: relative;
                z-index: 1;
                color: rgb(255, 255, 255);
            }

            .number {
                width: 40%;
                height: 100%;
                border-radius: 0 4 4 0;
                font-size: 30px;
                font-weight: bold;
                align-items: center;
                justify-content: space-evenly;
                flex-shrink: 0;
                background-color: $primary;
            }
        }
    }

    .timer {
        position: absolute;
        top: 0;
        flex-direction: column;
        font-size: 20px;
        font-weight: bold;
        width: 150px;
        height: 80px;
        border-radius: 0 0 10 10;
        align-items: center;
        justify-content: center;
        background-color: #1e1e1ee2;
        flex-wrap: wrap;
        flex-direction: row;

        .status {
            position: relative;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            text-align: center;
            flex-shrink: 0;
            border-radius: 0 0 10 10;
            transition: width 0.1s ease-out;
        }

        .time {
            width: 100px;
            height: 40px;
            align-items: center;
            justify-content: center;
            background-color: #7b7b7bad;
            flex-wrap: wrap;
            border-radius: 0 0 10 10;
            transition: width 0.1s ease-out;
            font-size: 24px;
        }
    }

    .main-tips-holder {
        position: absolute;
        bottom: 12px;
        width: 90%;
        max-width: 1200px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        // gap: 20px;
        background-color: rgba(0, 0, 0, 0.13);
        border-radius: 10px;
        filter: drop-shadow(0 0 10px rgba(rgba(0, 0, 0, 0.454), 0.7));
        z-index: 50;

        .tip-item {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(255, 255, 255, 0);
            border-radius: 6px;
            min-width: 150px;

            .tip-button {
                width: 36px;
                height: 36px;
                flex-shrink: 0;
                opacity: 0.8;
                background-repeat: no-repeat;
                background-position: center;
            }
            
            .tip-button-wide {
                width: 50px;
                height: 36px;
                flex-shrink: 0;
                opacity: 0.8;
                background-repeat: no-repeat;
                background-position: center;
            }


            .tip-text {
                font-size: 20px;
                font-weight: 500;
                padding-left: 12px;
                color: white;
                text-shadow: 1px 1px 2px black;
            }
        }
    }

    .about {
        width: 700px;
        height: 600px;
        background-color: $primary;
        flex-direction: column;
        border-radius: 4px;
        padding: 24px;
        border-radius: 4px;
        pointer-events: all;
        gap: 21px;
        font-size: 26px;
        overflow-y: scroll;
        overflow-x: hidden;
        align-items: flex-start;
        justify-content: center;

        > label {
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            filter: drop-shadow(0 0 10px rgba(black, 0.7));
        }
    }
}
