@font-face {
    font-family: "VCR_OSD_MONO";
    src: url("https://isat.ballonlea.net/assets/vcr_osd_mono.woff") format('truetype');
}

::selection {
	background: gray;
}

html {
    background-color: black;

    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
}

p {
    padding: 0;
    margin: 0;
    line-height: 1.3;
}

#grayText {
    color: gray;
    flex: 1;
}

body {
    font-family: "VCR_OSD_MONO";
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 1.7rem;
    color: white;
    width: 100vw;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mainMenu {
    width: 816px;
    height: 624px;
    display: grid;
    background-color: black;
    grid-template-columns: 40% 60%;
    grid-template-rows: 11.3% 88.7%;
}

a {
	background: #A1A1A1;
	padding: 2px;
	border-bottom: 2px solid white;
	color: #1B1B1B;
	text-decoration: none;
}

a:hover, a:focus{
	background: #393939;
	padding: 2px;
	border-bottom: 2px solid #5B5B5B;
	color: white;
	text-decoration: none;
}


.uiButton {
    position: relative;
    width: 219px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 10px;
  text-align: left;
	background: none;
	color: inherit;
	border: transparent 2px solid;
  border-radius: 2px;
	font: inherit;
	cursor: pointer;
	outline: inherit;

}

.uiButton.active,
.uiButton:hover,
.uiButton:focus {
    border: white 2px solid;
}

#cornerUIUpLeft {
    position: absolute;

    left: 1px;
    top: 1px;
}

#cornerUIUpRight {
    position: absolute;

    right: 1px;
    top: 1px;
}

#cornerUIDownLeft {
    position: absolute;

    bottom: 1px;
    left: 1px;
}

#cornerUIDownRight {
    position: absolute;

    bottom: 1px;
    right: 1px;
}

#topUIBar {
    background-color: white;

    position: absolute;

    top: 2px;
    left: 12px;
    margin: 0 auto;

    width: calc(100% - 24px);
    height: 4px;
}

#leftUIBar {
    background-color: white;

    position: absolute;

    top: 12px;
    left: 2px;
    margin: auto 0;

    height: calc(100% - 24px);
    width: 4px;
}

#bottomUIBar {
    background-color: white;

    position: absolute;

    bottom: 2px;
    left: 12px;
    margin: 0 auto;

    width: calc(100% - 24px);
    height: 4px;
}

#rightUIBar {
    background-color: white;

    position: absolute;

    top: 12px;
    right: 2px;
    margin: auto 0;

    height: calc(100% - 24px);
    width: 4px;
}

#topEndBarLeft {
    position: absolute;

    top: 2px;
    left: 8px;
}

#topEndBarRight {
    position: absolute;

    top: 2px;
    right: 8px;

    transform: scaleX(-1);
}

#bottomEndBarLeft {
    position: absolute;

    bottom: 2px;
    left: 8px;
}

#bottomEndBarRight {
    position: absolute;

    bottom: 2px;
    right: 8px;

    transform: scaleX(-1);
}

#leftEndBarTop {
    position: absolute;

    top: 8px;
    left: 2px;

    transform: rotate(90deg);
}

#leftEndBarBottom {
    position: absolute;

    bottom: 8px;
    left: 2px;

    transform: rotate(270deg);
}

#rightEndBarTop {
    position: absolute;

    top: 8px;
    right: 2px;

    transform: rotate(90deg);
}

#rightEndBarBottom {
    position: absolute;

    bottom: 8px;
    right: 2px;

    transform: rotate(270deg);
}

#cornerUpLeft, #cornerUpRight, #cornerDownLeft, #cornerDownRight {
    display: none;
}

.uiButton.active #cornerUpLeft,
.uiButton:hover #cornerUpLeft,
.uiButton:focus #cornerUpLeft {
    display: block;
    position: absolute;
    top: -10px;
    left: -10px;
    animation: moveupleft 0.5s infinite linear alternate;
}

.uiButton.active #cornerUpRight,
.uiButton:hover #cornerUpRight,
.uiButton:focus #cornerUpRight {
    display: block;
    position: absolute;
    top: -10px;
    right: -10px;
    transform: scale(-1);
    animation: moveupright 0.5s infinite linear alternate;
}

.uiButton.active #cornerDownLeft,
.uiButton:hover #cornerDownLeft,
.uiButton:focus #cornerDownLeft {
    display: block;
    position: absolute;
    bottom: -10px;
    left: -10px;
    animation: movedownleft 0.5s infinite linear alternate;
}

.uiButton.active #cornerDownRight,
.uiButton:hover #cornerDownRight,
.uiButton:focus #cornerDownRight {
    display: block;
    position: absolute;
    bottom: -10px;
    right: -10px;
    transform: scale(-1);
    animation: movedownright 0.5s infinite linear alternate;
}

#arrowUI {
    position: absolute;
    margin: auto 0;
    bottom: 0;

    animation-name: arrowanimation;
    animation-iteration-count: infinite;
    animation-duration: 0.7s;
}

@keyframes moveupleft {
    0% {
        top: -10px;
        left: -10px;
    }
    
    100% {
        top: -20px;
        left: -20px;
    }
}

@keyframes moveupright {
    0% {
        top: -10px;
        right: -10px;
    }
    
    100% {
        top: -20px;
        right: -20px;
    }
}
    
@keyframes movedownleft {
    0% {
        bottom: -10px;
        left: -10px;
    }
    
    100% {
        bottom: -20px;
        left: -20px;
    }
}

@keyframes movedownright {
    0% {
        bottom: -10px;
        right: -10px;
    }
    
    100% {
        bottom: -20px;
        right: -20px;
    }
}

@keyframes arrowanimation {
    0% {
        bottom: 4px;
    }

    49% {
        bottom: 4px;
    }

    50% {
        bottom: 0px;
    }

    100% {
        bottom: 0px;
  }
}