* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #111111;
    color: #DDDDDD;
}

body > header {
    height: 16rem;
    background: url('./countries.png') no-repeat;
    background-size: cover;
    position: relative;
}

header h1 {
    margin: 0;
    position: absolute;
    top: 11rem;
    left: 2rem;
}

table {
    border: 1px solid darkgreen;
    width: 80rem;
    max-width: 100%;
    margin: 1rem auto;
    border-collapse: collapse;
}

table caption {
    text-align: left;
    font-size: 2rem;
    padding: .5rem;
    background: darkgreen;
    position: sticky;
    height: 4rem;
    top: 0;
}

thead {
    position: sticky;
    top: 4rem;
}

th, td {
    padding: .3rem .5rem;
}

th {
    text-align: left;
    background-color: darkgreen;
    color: lightgreen;
}

td:first-child {
    width: 5rem;
}

td:last-child {
    width: 8rem;
}

tr:nth-child(odd) {
    background-color: #00ff0011;
}

button {
    border: 1px solid lightgreen;
    color: white;
    background-color: green;
    padding: .5rem 1.5rem;
    cursor: pointer;
    transition: all ease .8s;
}

button:hover {
    background-color: darkcyan;
    border-radius: .5rem;
}

/* MODAL */

#modal {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF99;
    margin: auto;
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

  #modal > article {
    border: 1px solid yellow;
    box-shadow: 0 0 10rem 0 darkgreen;
    width: 50rem;
    height: 60rem;
    margin: 16rem auto;
    background-color: darkgreen;
    color: yellow;
    padding: 1rem;
    /*overflow-y: scroll;*/
  }

  #modal > article header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF33;
    padding: .1rem 1rem;
  }

  #modal h2, #modal h3 {
    margin: 0;
    padding: .5rem 1rem;
  }

  #modal ul {
    text-align: left;
  }

  #modal button.fermer {
    display: block;
    width: 100%;
    background-color: darkred;
    color: white;
  }

  #modal .addVille {
    padding: 1rem;
    text-align: left;
  }

  #modal input[type="text"] {
    border: 1px solid lightgreen;
    color: white;
    background-color: green;
    padding: .5rem 1.5rem;
  }