@import url('https://fonts.googleapis.com/css?family=Ubuntu:400,700&display=swap');

/* DISCLAIMER: This project has only been development and tested in Chrome */

/* For demo purposes only, don't do this in a real world application :) */
* {
  font-family: Ubuntu;
  font-weight: bold;
}

.m-b-4 {
  margin-bottom: 20px;
}

.m-b-2 {
  margin-bottom: 10px;
}

.radio-control {
  margin-bottom: 10px;
}

input[name="time"]:disabled + label {
  opacity: 0.5;
}

.timer.low {
  color: red;
}

.wrapper {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

#board {
  display: flex;
  flex-wrap: wrap;
  width: 640px;
  height: 640px;
  align-items: center;
  user-select: none;
}

.panel {
  flex: 0 0 250px;
  padding-right: 20px;
}

.panel-section {
  padding: 0 0 30px;
}

.player-info {
  padding: 15px;
  border-radius: 5px;
  background-color: #f4f4f4;
}

.player-info.active {
  background-color: #19afe8;
}

.player-info.winner {
  background-color: gold;
}

.marker {
  display: inline-block;
  width: 30px;
  margin-right: 10px;
  vertical-align: sub;
}

.tile {
  display: flex;
  flex: 0 0 12.5%;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80px;
  height: 80px;
  line-height: 80px;
  box-sizing: border-box;
  background-image: url('./assets/othello-tile.svg');
  text-align: center;
}

.tile.active {
  cursor: pointer;
  opacity: 0.9;
}

.tile > img {
  width: 60px;
  height: 60px;
}

.alert-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  border: 1px solid #ddd;
  opacity: 0;
  visibility: hidden;
  background-color: white;
  text-align: center;
  transition: opacity 150ms ease;
}

.alert-box.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 150ms ease;
}

.btn {
  width: 100%;
  height: 50px;
  font-size: 16px;
  padding: 10px 20px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  outline: 0;
  transition: background-color 150ms ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-main {
  background-color: burlywood;
  color: black;
}

.btn-main:hover {
  background-color: #d3a05f;
}

.btn-complement {
  background-color: #006633;
  color: white;
}

.btn-complement:enabled:hover {
  background-color: #004d26;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

.title {
  margin-bottom: 5px;
}

@keyframes show {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: skewX(-20deg);
  }
  30% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: skewX(0deg);
  }
} 