*{
    padding:0px;
    margin:0px;
    border:0px;
}


.rubik {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body{
    position:relative;
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    width:100vw;
    min-height:100vh;
}

#board{
    position:relative;
    background-color:rgb(224, 230, 232);
    border-radius:10px;
}

.block{
    border-radius:10px;
    position:absolute;
    transition: top 0.1s ease, left 0.1s ease;
    touch-action:none;
    cursor:grab;
}

.target{
    position:absolute;
    border-radius: 12px;
    border: 8px solid black;
    background-color: transparent;
    z-index: 2;
    pointer-events: none;
}

#wrapper{
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
}

#counter{
    width: 30%;
    text-align: left;
}

#timer{
    width: 40%;
    text-align: center;
}

#resetwrapper{
    width:30%;
    display: flex;
    align-items: center;
    justify-content: right;
}

#reset{
    padding:10px;
    border-radius: 10px;
    background-color: black;
    color: white;
    cursor: pointer;
}

#externals{
    height:50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#help{
    padding:10px;
    width:37px;
    font-size: 16px;
    border-radius: 10px;
    background-color: black;
    color: white;
    cursor: pointer;
}

#viewResults{
    padding:10px;
    border-radius: 10px;
    color:rgb(115, 115, 115);
    background-color: white;
    border: 2px solid rgb(150, 150, 150);
}
#viewResults.active{
    background-color: black;
    border:none;
    color: white;
    cursor: pointer;
}

.popup{
    position:fixed;
    transition: all 0.5s;
    z-index: 3;
    left: 50%;
    top: 200%;
    transform: translate(-50%,-50%);
}

.popup.activePopup{
    left:50%;
    top:50%;
}

.close-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  top:10px;
  right:10px;
  border: none;
  background: none;
  cursor: pointer;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgb(173,173,173);
  transform-origin: center;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover{
    transform:scale(1.1);
}

#victoryPopup{
    width:360px;
    height:540px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    display:flex;
    align-items: center;
    justify-content: center;
}

#helpPopup{
    width:360px;
    height:540px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    display:flex;
    align-items: center;
    justify-content: center;
}

.interior{
    width:80%;
    height:90%;
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.heading{
    font-size: 25px;
}

.colourKey{
    width: 100%;
    display:flex;
    align-items: center;
    justify-content: left;
}

.littlePiece{
    width:20px;
    height:20px;
    border-radius: 4px;
}

#grey{
    background-color: #ada9ba;
}
#green{
    background-color: #6ae617;
}
#darkGrey{
    background-color: #524f5e;
}
#purple{
    background-color: #a417e6;
}
#blue{
    background-color: #1752e6;
}
#yellow{
    background-color: #FBEB62;
}
#red{
    background-color: #e6174b;
}

.desc{
    margin-left: 15px;
    max-width: 85%;
}

.minitarget{
    display:inline-block;
    border-radius: 6px;
    width:12px;
    height:12px;
    border: 4px solid black;
    background-color: transparent;
    z-index: 2;
    margin-right: 4px;
    vertical-align: middle;
}

#vicbox{
    width:80%;
    height:90%;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#trophy{
    width: 180px;
    height: 180px;
}

#congrats{
    font-weight: 800;
    font-size: 30px;
}

#results{
    width: 100%;
}

.result{
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.big{
    font-size: 20px;
    padding: 10px;
}

#sharebutton{
    width: 100px;
    height: 40px;
    font-size: 17px;
    text-align: center;
    background-color: black;
    color: white;
    border-radius: 20px;
}

#inspire{
    width: 100%;
    height: 50px;
    border-top: 1px solid #d6d6d6;
    padding-top: 20px;
    text-align: center;
}