body {
  font-family: monospace;
  font-size: 1em;
  color: #000000;
  background: #ffffff;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin: 0; /* add margin to body if lines should NOT fly in at screen borders */

  /* Prevent scrollbars, must be in body not ticker-wrapper */
  overflow: hidden; 

  height: 100vh;
  width: 100vw;
}

a {
  color: #000000;
  text-decoration: none;
}

h1 {
  /* margin-bottom: 0.5em; */
  color: black;

  font-size: 3em;
}

button {
  font-family: monospace;
  font-weight: bold;
  background: white;
  color: black;
  border: none;

  /* border-radius: 25%; */
}

button:hover {
  background: black;
  color: white;
}

button:active {
  transition: background 0.2s, color 0.2s;
}

#logo img {
  min-width: 30px;
  max-width: 200px;
}

#logo button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    
    margin: 0.5em; /* space around the menu */

    flex-shrink: 0; /* Prevent shrinking on small screens */

    top: 0.5em;
}

#ticker-container {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center */
    align-items: center;     /* Horizontally center */
    width: 100%;
}



/* Speed control container - desktop centered */
#speedControlContainer {
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;

    top: 1em;
}

/* Mobile: stack menu elements */
@media (max-width: 768px) {
    #ticker-container {
      overflow: hidden;
    }

    #speedControlContainer {
      display: flex;
      flex-direction: row;
    }

    #logo img {
        /* min-width: 20px; */
        /* max-width: 100px; */
    }

    #menu {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      width: 100%;
      
      flex-direction: column;
    }
}


.ticker-wrapper {
  width: 100%;
  background: white;
  white-space: nowrap;
  box-sizing: border-box;
}

.ticker span {
  display: inline-block;
  /* padding-right: 50px; horizontal space between headlines */
  padding-top: 5px;
  padding-bottom: 5px;

  font-size: 2em;
}
