@import url('https://fonts.googleapis.com/css?family=Roboto');

:root {
  --primary-color: #003699;
  --dark-color: #333333;
  --light-color: #f4f4f4;
  --lose-color: #dc3545;
  --win-color: #28a745;
  --modal-duration: 1s;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

.restart-btn {
  display: none;
  background: #333;
  color:var(--light-color) ;
  padding: 0.4rem 1.3rem;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  border: none;
  margin-bottom: 1rem;
}

.restart-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.header {
  text-align: center;
  margin: 1rem 0;
}

.header h1 {
  margin-bottom: 1rem;
}

h2{
  text-align: center;
}

.navbar{
  display: flex;
  justify-content: space-between;
  padding: 20px 10px;
  background: rgb(243, 243, 243);
  box-shadow:2px 5px 10px 1px rgb(192, 192, 192)
}

a{
  text-decoration: none;
  color: #000;
  font-size: 18px;
  padding: 5px 8px;
  border:1px solid #444;
  border-radius:5px;
}
a:hover{
  background-color: #444;
  color: #fff;
}



.score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 1.1rem;
  color: #fff;
}

.score p:first-child {
  background: var(--primary-color);
}

.score p:nth-child(2){
  background-color: rgb(173, 175, 177);
  color: black;
}

.score p:last-child {
  background: var(--dark-color);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.choice {
  cursor: pointer;
}

.choice:hover {
  color: var(--primary-color);
}

.text-win {
  color: var(--win-color);
}

.text-lose {
  color: var(--lose-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  text-align: center;
  margin: 10% auto;
  width: 350px;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
}

.modal-content h1 {
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/** Register **/

.form{
  width: 50%;
  margin: 0 auto;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.form input{
  border:none;
  outline: none;
  border:1px solid rgb(206, 205, 205);
  padding: 10px 6px;
  margin: 5px 0;
  font-size: 16px;
  border-radius:4px;
  font-style: italic;
}

.btn-submit{
  width: 50%;
  margin: 0 auto;
  text-align: end;
}

.btn-submit .btn{
  border:none;
  outline: none;
  padding: 8px 12px;
  font-size: 16px;
  border:1px solid rgb(156, 156, 156);
  border-radius:4px;
  background-color: #28a745;
  color: #fff;
}
.btn-submit .btn:hover{
  cursor: pointer;
  background-color: #fff;
  color: #28a745;
}

table{
  width: 100%;
  margin:50px 0;
  text-align: center;
}
table tr th, table tr td {
  text-align: center;
  border: 1px solid;
  border-collapse:collapse;
}

@media (max-width: 700px) {
  .choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
    transform: scale(0.7);
    display: flex;
    justify-content: center;
  }
  .choices i{
    margin-bottom: 30px;
  }
  .choices i:nth-child(2){
    margin: 0 40px;
  }
  .modal-content {
    background: #fff;
    text-align: center;
    margin: 10% auto;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 8px 0 rgb(0 0 0 / 20%), 0 7px 20px 0 rgb(0 0 0 / 17%);
    animation-name: modalopen;
    animation-duration: var(--modal-duration);
}
}

@media (max-width: 500px) {
  .container {
    padding: 0 10px;
}
  .choices {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin-top: -50px;
    transform: scale(0.7);
  }
  .choices i{
    margin-bottom: 30px;
  }
  .modal-content {
    background: #fff;
    text-align: center;
    margin: 10% auto;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 8px 0 rgb(0 0 0 / 20%), 0 7px 20px 0 rgb(0 0 0 / 17%);
    animation-name: modalopen;
    animation-duration: var(--modal-duration);
}



}