<style type="text/css">

* {
margin: 0;
padding: 0;
}

/* render html5 elements as block */
principal, quadTopo, menuTopo, logo, quadCorpo, nav, quadMobil, quadBorda, section, footer {
display: block;
}

body, html{
line-height: 38px;
background-color: #4682b4;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* Codigo responsivo */
* 
img, picture, video, embed {
 max-width:100% !important;
 height:auto !important;
}

/* header */
header {
 height: auto;
 margin: 0px;
}

/* Envolve tudo */
.principal{
  max-width: 900px;
  min-width: auto;
  background: #086a87;
  margin: 0 auto;
  padding: 5px;
  border-radius: 6px;
  clear: both;
}

/* Jogo de dados */
/* Estilos do Jogo de Dados */
   .card-container { width: 90%; max-width: 900px; background-color: #ddd; padding: 5px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); display: flex; margin: 12px auto; overflow: hidden;}
   .card-section { flex: 1; padding:24px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; transition: 0.3s; }
   .left-section { background-color: #e3f2fd; font-size: 25px; font-weight: bold; color: #555;}
   .right-section { background-color: #ffffcc; font-size: 25px; font-weight: bold; color: #555;}
    /* Controle */
   .controles { margin-top: 15px; display: flex; gap: 10px; justify-content: center; }
   .button-jogar { center; background-color: blue; padding: 18px; border-radius: 8px; font-size: 25px; font-weight: bold; color: white; cursor: pointer; transition: 0.3s; border: none; }
   .button-jogar:hover { background-color: purple; }
   .button-jogar:disabled { background-color: #999; cursor: not-allowed; }
   .button-zerar { background-color: #808080; padding: 18px; border-radius: 8px; font-size: 25px; font-weight: bold; color: white; cursor: pointer; transition: 0.3s; border: none; }
    #rola-dados { max-width: 900px; margin: 2px auto; font-size: 23px; text-align: left; padding: 0 1.3em; }
   .vencedor { padding: 10px; font-size: 28px; font-weight: bold; color: #555; height: 20px; }
   .resultado { font-size: 50px; font-weight: bold; padding: 15px; background-color: #90ee90; border-radius: 10px; margin: 15px; display: inline-block; min-width: 60px; transition: transform 0.1s; }
    /* Responsividade: para telas menores, o card fica vertical */
    .agitando { transform: scale(1.1) rotate(5deg); color: #2980b9; }
    @media (max-width: 768px) {
      .card-container { flex-direction: column; }
      .left-section { border-right: none; border-bottom: 1px solid #ccc; }
    }

/* ***** Cards section ***** */
.card-section h2 {
  margin-top: 0;
  color: #333;
}
.card-section p {
  color: #666;
}

/* Jogo da velha */
/* Estilos do Jogo da Velha */

.jogo {
    text-align: center;
}
.tabuleiro {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-gap: 5px;
    margin-top: 20px;
}
.celula {
    width: 100px;
    height: 100px;
    background-color: #ddd;
    border: 2px solid #333;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.celula:hover {
    background-color: #eee;
}
.celula.vencedor {
    background-color: #aaffaa;
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}
#status {
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
}

</style>

