/* 
Înlocuiți simbolurile ? cu valori potrivite pentru 
a completa regulile CSS de mai jos.
*/
body{
  background-color:#38383B;
  margin: 0px;
}

.topnav { 
  position:fixed;
  width: 100%;
  background-color: #38383B;
  overflow: hidden;
}
.topnav a.active{
  float:left;
  color: #f2f2f2;
  text-align:center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.topnav a.active:hover{
  animation-name:culoare_nume;
  animation-duration: 300ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes culoare_nume{
  from {background-color: rgb(11, 96, 39);}
  to {background-color:rgb(12, 169, 30);}
}

.topnav a.normal{
  float:right;
  color: #f2f2f2;
  text-align:center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.topnav a.normal:hover{
  animation-name:culoare_navigatie;
  animation-duration: 300ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
@keyframes culoare_navigatie{
  from {background-color: rgb(110, 118, 113);}
  to {background-color:rgb(244, 248, 245);}
}

.botnav {
  display:flex;
  justify-content:center;
  width: 100%;
  overflow:hidden;
}

.botnav a{
  color: #f2f2f2;
  text-align:center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.botnav a:hover {
  background-color: #ddd;
  color: black;
}


.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active{
  text-align:left;
  background-color: #04AA6D;
  color:white;
}
.topnav a.active:hover{
  background-color: #045437;
  color:white;
}

body {
  display: grid;
  margin: 0;
  grid-template-rows: 100% 10%;
  /* grid-template-rows:  ? 5fr ?;
  grid-template-areas: ? 
                   ?
                       ?; */
}

.articol p{
  font-size:2rem;
  padding-bottom: 5%;
}
descrieri{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
  descrieri materie{
      font-size: 1rem;
      font-weight:bold;
      text-align:center;
  }
  descrieri concursuri ul{
      list-style-type: none;
      font-size: 1.2rem;
      padding: 0px;
      margin: 0px;
      padding-bottom: 5%;
  }
.main {
  padding-top: 10vh;
  display: grid;
  grid-template-columns: 1fr 10fr 1fr;
  /* grid-template-columns: ? 4fr ?;
  grid-template-areas: "? ? ?" */
}

.main > .nav, 
.main > .aside {
  background: #38383B;
}

header {
  background: #38383B;
}

.articol2048{
  color:#FFFFFF;
  background: #38383B;
  display:flex;
  align-items:center;
  justify-content:center;
}

.articol {
  color:#FFFFFF;
  background: #38383B;
}

footer {
  height:10%;
  background: #38383B;
}

header, footer, .articol, .nav, .aside {
  padding: 1em;
}
.center {
  padding-bottom:5%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  height:auto;
}

/* Style inputs with type="text", select elements and textareas */
input[type=name], select, textarea {
  background-color:#DDDD;
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}


input[type=email],[type=textarea] select, textarea {
  background-color:#DDDD;
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #45a049;
}

/* Add a background color and some padding around the form */
.container {
  border-radius: 5px;
  background-color: #38383B;
  padding: 20px;
}

#board{
  background-color: #cdc1b5;
  box-sizing:content-box;

  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#game-over{
  background-color: yellow;

  color:black;
  font-size: 40px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}



.tile{
  border: 5px solid #bbada0;
  padding: 0;
  margin: 0;

  font-size: 40px;
  font-weight: bold;
  display: flex;
  justify-content:center;
  align-items:center;
}
.x2 {
  background-color: #eee4da;
  color: rgb(40, 39, 39);
}

.x4 {
  background-color: #ece0ca;
  color: white;
}

.x8 {
  background-color: #f4b17a;
  color: white;
}

.x16{
  background-color: #f59575;
  color: white;
}

.x32{
  background-color: #f57c5f;
  color: white;
}

.x64{
  background-color: #f65d3b;
  color: white;
}

.x128{
  background-color: #edce71;
  color: white;
}

.x256{
  background-color: #edcc63;
  color: white;
}

.x512{
  background-color: #edc651;
  color: white;
}

.x1024{
  background-color: #eec744;
  color: white;
}

.x2048{
  background-color: #ecc230;
  color: white;
}

.x4096 {
  background-color: #fe3d3d;
  color: white;
}

.x8192 {
  background-color: #ff2020;
  color: white;
}