@font-face {
    font-family: SpaceMono;
    src: url(./../assets/SpaceMono-Regular.woff2);
}

@font-face {
    font-family: SpaceMonoItalic;
    src: url(./../assets/SpaceMono-Italic.woff2);
}

@font-face {
    font-family: SpaceMonoBold;
    src: url(./../assets/SpaceMono-Bold.woff2);
}


html {
    margin: 0;
    height: 100%;
    background-color: #252525;
    overflow: hidden;
    color: white;
    
    font-family: SpaceMono;
}

body {
    margin: auto;
    height: 100%;
}

p {
    margin-block-start: 0em;
    margin-block-end: 0em;
}

img.piece-417db {
    cursor: grab;
}

#fen {
    display: none;
}

#myBoard {
    width: 75%;
    max-width: 800px;

    background-color: #3EB2FD;
    background-image: linear-gradient(1deg, #4F58FD, #149BF3 99%);
    padding: 20px;
    border-width: 4px;
    border-radius: 12px;
    border-color: #454545;
    border-style: solid;

}

#myBoard_parent {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

#interface {
    position: absolute;
    margin: auto;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#button-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;

}

#header-container {
    font-family: SpaceMonoBold;
    font-size: 2rem;
    text-align: center;
}

#engineType {
    align-items: center;
  /* appearance: none; */
  background-color: #3EB2FD;
  background-image: linear-gradient(1deg, #4F58FD, #149BF3 99%);
  background-size: calc(100% + 20px) calc(100% + 20px);
  border-radius: 100px;
  border-width: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  width: 200px;
  height: auto;
  justify-content: center;
  line-height: 1.5;
  padding: 6px 0px;
  position: relative;
  margin: 15px 10px 0px 10px;

  font-family: SpaceMono;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s,background-position .2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.white-1e1d7{
    background-color:#b0b9b4;
}

.black-3c85d{
    background-color:#558498;
}


.button {
  align-items: center;
  /* appearance: none; */
  background-color: #3EB2FD;
  background-image: linear-gradient(1deg, #4F58FD, #149BF3 99%);
  background-size: calc(100% + 20px) calc(100% + 20px);
  border-radius: 100px;
  border-width: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  width: 200px;
  height: auto;
  justify-content: center;
  line-height: 1.5;
  padding: 6px 20px;
  position: relative;
  margin: 15px 10px 0px 10px;

  font-family: SpaceMono;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s,background-position .2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.button:active,
.button:focus {
  outline: none;
}

.button:hover {
  background-position: -20px -20px;
}

.button:focus:not(:active) {
  box-shadow: rgba(40, 170, 255, 0.25) 0 0 0 .125em;
}

@media screen and (max-width: 660px) {
    #header {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 760px) and (min-height: 520px) {
    #interface {
        width: 85%;
    }

    #myBoard {
        padding: 5px;
    }

    #button-row {
        flex-direction: column;
        align-items: center;
    }

}


@media screen and (max-height: 760px) and (max-width: 630px) {
    #myBoard_parent {
        width: 90%;
    }

    #interface {
        width: 100%;
    }

}

@media screen and (max-height: 700px) {
    #myBoard_parent {
        width: 65%;
    }
}

@media screen and (max-width: 500px){
    #myBoard_parent {
        width: 90%;
    }
}
