* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif; /* use a Google font? */
  font-size: 20px;
  line-height: 1.2;
  color: #333;
}

button {
  border-radius: 10px;
  padding: 5px;
  border-color: black;
  border-width: 1px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  background-color: #333;
  user-select:none;
  text-align: center;
  text-decoration: none;
  transition-duration: 0.4s;
  box-shadow: 0px 5px 10px #111;
  border-bottom: 1px solid #222;
  max-width: 30vw;
  flex: 1;
}

button:hover {
  transition-duration: 0.1s;
  box-shadow: 0px 15px 25px -5px #111;
  transform: scale(1.05);
}

button:active {
  box-shadow: 0px 4px 8px #222;
  transform: scale(.98);
}

header {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  width: 100vw;
}

header h1 {
  font-size: 20px;
  text-transform: uppercase;
  font-family: 'Gambetta', serif;
  font-variation-settings: "wght" 311;
  outline: none;
  text-align: center;
}

header .logo a {
  color: #fff;
}

header .logo a img {
  height: 4vh;
  border-radius: 4px;
  margin: 2vw;
}

header nav ul {
  display: flex;
  list-style: none;
}

header nav li {
  margin-right: 20px;
}

header nav a {
  color: #fff;
  text-decoration: none;
}

.border {
  border-color: red;
  border-style: solid;
}

.main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
  height: 92vh;
  width: 100vw;
}

.left-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 2vh;
  gap: 5vw;
  height: 13vh;
}

.middle-section {
  flex: 1;
  background-color: #fff;
  text-align: center;
}

.middle-section h1 {
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: bold;
}

.middle-section p {
  font-size: 16px;
  line-height: 1.5;
  color: #777;
}

#field-img {
  /* hockey field is officially 91,40 x 55m: ratio of 1,66 */
  /* image is 390 x 636px: ratio of 1,63 */
  /* do 80% to create space for subs */ 
  width: calc(100vw * 0.8);
  height: calc(163vw * 0.8);
  float: left;

  margin-top: 1vh;
}

.lower-main {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  width: 100vw;
  margin-bottom: 10vh;
  margin-top: 6vh;
}

.lower-main p {
  margin-left: 10vw;
  margin-right: 10vw;
}

.about {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact p {
  margin-bottom: 27px;
}

a {
  color: #0066cc;
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.footer {
  flex: 0 0 100%;
  display: flex;
}

.player {
  cursor: move;
  /* use 80% to size consistently with the field */
  width: calc(20vw * 0.8);
  height: calc(11vh * 0.8);
  float: left;
}

.jersey {
  display: block;
  margin: auto;
  height: 8vh;
  background-image: url('jersey3.svg');
  background-repeat: no-repeat;
  background-position: center;
}

.player-name {
  display: block;
  font-weight: bold;
  color: #fff;
  background-color: #3b3b3b;
  border-color: black;
  border-width: 1px;
  padding: 0 1%;
  white-space: break-spaces;
  /* use 80% to size consistently with the field */
  font-size: calc(1.7vh * 0.8);
}

.player-name-edit {
  display: none;
  margin: auto;
  width: 100%;
  text-align: center;
  /* use 80% to size consistently with the field */
  font-size: 1.7vh;
  /* font-size: calc(1.7vh * 0.8); */
  line-height: 1.2;
}

.player > .delete-button {
  position: absolute;
  top: 0px; 
  right: 0px;
  cursor: pointer;
  color: rgba(223, 61, 61, 0.9);
  font-size: 14px;
  font-weight: bold;
  height: 10px;
  line-height: 2px;
  padding: 0;
  width: 10px;
}  

.footer > * {
  flex: 1 1 50%;
}

#tikkie {
  max-width: 230px;
  max-height: 300px;
}

#tikkie .container {
  left: 1%;
  max-width: 230px;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

#tikkie h1 {
  font-size: 20px;
  text-transform: uppercase;
  font-family: 'Gambetta', serif;
  letter-spacing: -2px;
  transition: 700ms ease;
  font-variation-settings: "wght" 311;
  margin-bottom: 0.8rem;
  outline: none;
  text-align: center;
}

#tikkie h1:hover {
  font-variation-settings: "wght" 582;
  letter-spacing: 2px;
}

#tikkie img {
  margin: auto;
  max-width: 100px;
}

#attributions ul {
  list-style: none;
}


/* media queries for bigger screens than iPhone 12 */

@media (min-width: 1000px) {
  #field-img {
    width: calc(100vw * 0.6);
    height: calc(163vw * 0.6);
  }

  .main {
    flex-direction: row;
    height: calc(163vw * 0.6);
  }

  .left-section {
    flex-direction: column;
    width: 20%;
    height: 100%;
    align-items: center;
  }

  button {
    width: 12vw;
  }

  .player {
    width: 12vw;
  }

  .jersey {
    height: 11vh;
  }

  .player-name {
    font-size: 1.7vh;
  }

  .player-name-edit {
    font-size: 1.7vh;
  }
}
