@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik";
    background-color: white;



}

.background {
    width: 100vw;
    height: 100vh;
    background-image: url(./images/Traffic.gif);
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.25;

}

h1 {
    width: 100vw;
    color: black;
    background-color: yellow;
    text-align: center;
    direction: rtl;
    border: 1px solid black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;


}

#frame {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: absolute;
    inset: 0;
    margin: auto auto;
    z-index: 1;

}

.buttons {
    width: 100%;
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;


}

button {
    width: 75px;
    height: 75px;
    background-color: silver;
    border-radius: 50%;
    box-shadow: 5px 5px 5px black;
}

button>img {
    width: 50px;
    height: 50px;
}


#black {
    width: 200px;
    height: 500px;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px;
    border-radius: 25px;
}

div>div>div {
    width: 125px;
    height: 150px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
}

#red {
    background-color: silver;
}

#yellow {
    background-color: silver;
}

#green {
    background-color: silver;
}


@media screen and (max-width: 1000px) {
    #black {
        width: 150px;
        height: 350px;
        gap: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    div>div>div {
        width: 100px;
        height: 100px;

    }

    .buttons {
        width: 100%;
        display: flex;
        gap: 25px;
        justify-content: center;
        align-items: center;


    }

    button {
        width: 50px;
        height: 50px;
        background-color: silver;
        border-radius: 50%;
        box-shadow: 5px 5px 5px black;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    button>img {
        width: 35px;
        height: 35px;
        overflow-x: hidden;

    }
}