:root {
  --changeSize: 12.5%;
  --carrier:#cc4444;
  --battleship:#4444cc;
  --cruiser:#cc8844;
  --submarine: #44cc44;
  --destroyer: #cc44cc;
}

a { 
  color: inherit; 
  text-decoration: none;
} 



* {
  box-sizing: border-box;
}

.select-carrier {
  color: var(--carrier);
}
.select-battleship {
  color: var(--battleship);
}
.select-cruiser {
  color: var(--cruiser);
}
.select-submarine {
  color: var(--submarine);
}
.select-destroyer {
  color: var(--destroyer);
}




html, body {
  margin: 0;
  height: 100vh;
  font-family: 'Anton', sans-serif;
  color: #333;
  background-color: #eee;
}

body{
  display: flex;
  flex-flow: column nowrap;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: 100%;
}

header {
  text-align: center;
  font-size: 4vw;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: #ddd;
  margin-top: 10px;
  
}

.game-selection {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
}

footer {
  display: flex;
  flex-flow: row-reverse;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: #ddd;
  margin: 0;
  padding: 10px 3px
}

h1 {
  padding: 0;
  margin: 0;
}

div.grid {
  width: 400px;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 30px;
}

.grid-item-competitor, .grid-item-player {
  width: var(--changeSize);
  height: var(--changeSize);
  border: 1px solid #aaa;
  cursor: crosshair;
}

.hover {
  background: grey;
}

.radio-country, .radio-gameSpeed {
  margin: 10px;
}

input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}


.radio-country label {
    display: inline-block;
    background-color: #ddd;
    padding: 10px 20px;
    border: 2px solid #444;
    border-radius: 4px;
}

.radio-country label:hover {
  background-color: #dfd;
}

input[type="radio"]:focus + label {
    border: 2px dashed #444;
}

input[type="radio"]:checked + label {
    background-color: #bfb;
    border-color: #4c4;
}

input[type='checkbox'] + label {
  color: #ccc;
  font-style: italic;
} 
input[type='checkbox']:checked + .soundLabel {
  color: #444;
} 

input[type='checkbox'] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.optionButton {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 10px;
  font-size: small;
  background-color: #bfb;
  border: #4c4 solid 1px;
  border-radius: 4px;
}

.radio-gameSpeed label {
  display: inline-block;
  background-color: #ddd;
  padding: 10px 20px;
  border: 2px solid #444;
  border-radius: 4px;
}

.radio-gameSpeed label:hover {
background-color: #dfd;
}

.radio-country, .radio-gameSpeed {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

input[type='submit'] {
    background: #0066A2;
    color: white;
    border-style: outset;
    border-color: #1b6189;
    border-radius: 4px;
    height: 50px;
    width: 100%;
    font-family: 'Anton', sans-serif;
    letter-spacing: 3px;
    font-size: 20px; 
    text-transform: uppercase;
}
.nameSelection {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 3px;
  font-size: 20px; 
}

.nameSelection * {
  margin: 0 10px;
}
.nameSelection input {
  flex: 1;
  padding: 10px;
  border-radius: 4px;
  background-color: #ddd;
  padding: 10px 20px;
  border: 2px solid #444;
  border-radius: 4px;
  font-family: 'Anton', sans-serif;
  letter-spacing: 3px;
  font-size: 20px; 
}

div.hidden {
  display: none;
}

.guide {
  font-size: 2vw;
  background-color: #ccc;
}

div[data-direction='vert'] {
  transform: rotate(90deg);
}

div[data-position='top'] {
  border-radius: 50% 0 0 50%;
  border: 1px solid transparent;
}

div[data-position='bottom'] {
  border-radius: 0 50% 50% 0;
  border: 1px solid transparent;
}

.carrier {
  background:var(--carrier);
}

.battleship {
  background: var(--battleship);
}

.cruiser {
  background: var(--cruiser);
}

.submarine {
  background: var(--submarine);
}

.destroyer {
  background: var(--destroyer);
}

#border {
  background-image: radial-gradient(transparent, transparent 20%, orange 20%, orange 50%, transparent 50%, transparent);
  background-size: cover;
  background-repeat: no-repeat;
  

}

.miss {
background-image: radial-gradient(transparent, transparent 20%, aqua 20%, aqua 50%, transparent 50%, transparent);
background-size: 40px 40px;
background-size: cover;
background-repeat: no-repeat;
}

.error {
background-image: radial-gradient(transparent, transparent 20%, red 20%, red 50%, transparent 50%, transparent);
background-size: 40px 40px;
background-size: cover;
background-repeat: no-repeat;
}

.player-selection * {
  letter-spacing: 3px;
  text-transform: uppercase; 
}







