@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900');

@font-face {
    font-family: PixelOperator;
    src: url('https://casper-valentine.gay/Assets/PixelOperator.ttf');
}

@font-face {
    font-family: PixelOperator;
    src: url('https://casper-valentine.gay/Assets/PixelOperator-Bold.ttf');
    font-weight: bold;
}

/* PLACES TO CHANGE COLOURS */
#console {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineBox.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 350px;
    height: 500px;
    padding: 30px;
    transform: scale(.7);
}

.boxed {
    padding: 15x 20px 15px 20px;
    margin: 10px;
}

#banner {
    width: 100%;
    text-align: center;
    font-size: 50pt;
    font-weight: 900;
    color: #4cbbfc00; /* Change the colour of the machine title text*/
    padding: 0;
}

#window {
    position: relative;
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineWindow.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #320000;
    border-radius: 5px;
    width: 100%;
    height: 350px;
    padding: 15x 20px 15px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: 1s;
}

#claw-block {
    height: 35px;
    width: 80px;
    margin-bottom: 0;
    margin-top: -25px;
    z-index: 2;
    position: relative;
    background-color: #fc4c9b00; /* Change the colour of the block that is on the rope carrying the claw*/
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawBlock.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#drop {
    color: #54042c00;
    font-weight: 700;
    background-color: #4cbbfc00; /* If you want to make the drop button a different colour*/
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineButtonDrop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.btn {
    color: #54042c00;
    padding: 10px 30px 10px 30px;
    width:fit-content;  
    margin-left: auto;
    margin-right: auto;
    background-color:  #4cbbfc00; /* If you want to make the arrow buttons a different colour*/
}

#left-arrow {
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineButtonL.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#right-arrow {
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineButtonR.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#play-again {
    opacity: 0;
    transition: opacity 1s;
    background-color:  #4cbbfc00; /* If you want to make the arrow buttons a different colour*/
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineButtonReplay.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#download {
    opacity: 0;
    transition: opacity 1s;
    background-color:  #4cbbfc00; /* If you want to make the arrow buttons a different colour*/
    background-image: url('https://casper-valentine.gay/Assets/claw-machine/clawMachineButtonDownload.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* EVERYTHING ELSE */

body {
    font-family: 'PixelOperator', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    background-image: url('https://casper-valentine.gay/Assets/ArcadeBackground.png');
    background-repeat: repeat;
    background-size: auto;
}

#credit {
    color: #f9f3f0;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

#game-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#additional-box {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#main-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
}

#claw {
    transition: transform 0.5s;
}

#claw-rail {
    z-index: 0;
    padding: 0;
    margin: 25px 0 0 -1px;
    width: 101%;
    height: 102%;
    transform-origin: center center;
}

#claw-hands {
    width: 100px;
    margin-left: -245px;
    margin-top: -10px;
    transition: transform .7s;
    position: relative;
    transform-origin: top center;
}

#claw-rope {
    width: 90px;
    margin-left: -245px;
    margin-top: 0;
    transition: transform .7s;
    transform-origin: top center;
}

/* claw machine window content */
.content {
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#ball-front {
    width: 96%;
    margin-bottom: -175px;
    z-index: 10;
    position: relative;
}

/* control panel specific styles */
#controls {
    display: flex;
    flex-direction: row;
    font-size: 18pt;
    width: 100%;
    column-gap: 25px;
    justify-content: space-evenly;
    transition: 1s;
}

/* button hover effect */
@media (hover: hover) {
    .btn.boxed:hover {
        transform: translate(5px, 5px);
        box-shadow: 0px 0px 0px black;
        transition: transform .1s;
    }
}

/* results page */

#result-window {
    position: relative;
    width: 100%;
    height: 350px;
    padding: 15x 20px 15px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: 1s;
    transform: translateY(10px);
    text-align: center;
}

#result-image {
    width: 90%;
    padding-top: 8px;
    image-rendering: crisp-edges;
}

/*idk why the console seems to shrink weirdly on the results page so i did this sorry*/
#bandaid {
    width: 350px;
    content: "";
}