html, body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

/* Container principal */
.main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Seletor no topo */
.seletor {
  flex: 0 0 auto;              /* ocupa só o espaço necessário */
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  width: 100%;
  padding: 10px;
  gap: 10px;                   /* Espaço entre os itens */
  flex-wrap: wrap;             /* Quebra linha se necessário */
}

/* Em telas menores (ex: celulares) */
@media (max-width: 600px) {
  .seletor {
    flex-direction: column;    /* Empilha os itens na vertical */
    justify-content: left;
    align-items: center;
  }
}

.main iframe {
    flex: 1 1 0;
    display: block;
    border: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 0;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Fonte título */
.fontetitulo {
  font-family: Arial, Helvetica, sans-serif;
  background-color: black;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  width: auto;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px 4px 10px;
  flex-direction: row;
  position: relative;
}

a {
  text-decoration: none;
}

/* Fonte do seletor */
.fonte {
  font-family: Arial, Helvetica, sans-serif;
  color: black;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  height: 2vw;
  display: flex;
  align-items: center;
  justify-content: center; /* Centraliza o texto */
  position: relative;
  padding: 0 10px; /* Espaço interno */
}

/* Setas */
.seta-left,
.seta-right {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 0 0 8px 8px;
  padding: 6px;
  box-shadow: 2px -2px 0 1px #000 inset;
  transition: transform 0.3s ease;
}

.seta-left {
  transform: rotate(45deg);
  margin-right: 10px;
}

.seta-right {
  transform: rotate(225deg);
  margin-left: 10px;
}

/* Efeito hover */
.fonte:hover .seta-left {
  transform: rotate(45deg) scale(1.2);
}

.fonte:hover .seta-right {
  transform: rotate(225deg) scale(1.2);
}

.seletor { display:flex; align-items:center; justify-content:space-between; padding:5px 10px; }
.fontetitulo { font-weight:bold; font-size:1.2em; }
.cronometro {
    display:flex;
    align-items:center;
    gap:10px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-right: 50px;
}
#cronometro_display {
    font-weight:bold;
    font-size:1.5em;
    width:80px;
    height:30px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:8px;
    color: black;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 60px;height:30px;
    text-align: center;
    -moz-appearance: textfield; /* Firefox */
    font-size:1.2em;
    background: white;
    border: 0;
    border-radius:8px;}

.campo_duracao::-webkit-inner-spin-button,
.campo_duracao::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;}
button {
    padding:5px 10px;
    background:black;
    color: white;
    border: 0;
    height:30px;
    border-radius:8px;
}

.alerta { background: yellow !important; color:black !important; animation: piscar 3s infinite; }
@keyframes piscar { 0%,50%,50%{opacity:1;}25%,25%{opacity:0;} }

