body {
  font-size: 2em;
  font-family: "Avenir Next", "Avenir", sans-serif;
}

.container {
  max-width: 1200px;
}

.topnav {
  overflow: hidden;
  background-color: #ccc;
  position: relative;
}

.topnav #myLinks {
  display: none;
}

.topnav a {
  color: black;
  text-decoration: none;
  display: block;
}

.responsive {
  max-width: 100%;
  height: auto;
  align-self: flex-start;
}

.odd {
  background-color: #ccc;
}

.center {
  margin-left: auto;
  margin-right: auto;
  margin-top: 3px;
  margin-bottom: 3px;
  text-align: center;
  display: flex;
  justify-content: center;
}

 /* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #ccc; /* Black background color */
  color: black;
  text-align: center; /* Centered text */
  border-radius: 8px; /* Rounded borders */
  padding-top: 16px; /* Padding */
  padding-bottom: 16px;
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #232323;
    color: #cdcdcd;
  }
  img {
    filter: grayscale(30%);
  }
  .burger {
    background: #cdcdcd;
  }
  button, input[type="submit"] {
    color: #cdcdcd;
  }
  button:hover, input[type="submit"]:hover {
    color: #cdcdcd;
  }
  input[type="text"] {
    background: #232323;
    color: #cdcdcd; 
  }
  .odd {
    background-color: #333;
    color: #cdcdcd; 
  }
  .topnav {
    background-color: #333;
  }
  .topnav a {
    color: #cdcdcd;
  }
  #snackbar {
    background-color: #333; /* Black background color */
    color: #cdcdcd; /* White text color */
  }
}

@media (max-width: 640px) {
  .navigation {
    display: none;
  }
}

@media (min-width: 641px) {
  .mobile-navigation {
    display: none;
  }
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.loader {
  border: 3px solid #cdcdcd; /* Light grey */
  border-top: 3px solid #333; /* Dark grey */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* For devices larger than 370px */
@media (min-width: 370px) {
  .container {
    width: 95%;
    padding: 0; }
  .column,
  .columns {
    margin-left: 4%; }
  .column:first-child,
  .columns:first-child {
    margin-left: 0; }  
  .one.column,
  .one.columns                    { width: 4.66666666667%; }
  .two.columns                    { width: 13.3333333333%; }
  .three.columns                  { width: 22%;            }
  .four.columns                   { width: 30.6666666667%; }
  .five.columns                   { width: 39.3333333333%; }
  .six.columns                    { width: 48%;            }
  .seven.columns                  { width: 56.6666666667%; }
  .eight.columns                  { width: 65.3333333333%; }
  .nine.columns                   { width: 74.0%;          }
  .ten.columns                    { width: 82.6666666667%; }
  .eleven.columns                 { width: 91.3333333333%; }
  .twelve.columns                 { width: 100%; margin-left: 0; }  
  .one-third.column               { width: 30.6666666667%; }
  .two-thirds.column              { width: 65.3333333333%; }  
  .one-half.column                { width: 48%; }  
  /* Offsets */
  .offset-by-one.column,
  .offset-by-one.columns          { margin-left: 8.66666666667%; }
  .offset-by-two.column,
  .offset-by-two.columns          { margin-left: 17.3333333333%; }
  .offset-by-three.column,
  .offset-by-three.columns        { margin-left: 26%;            }
  .offset-by-four.column,
  .offset-by-four.columns         { margin-left: 34.6666666667%; }
  .offset-by-five.column,
  .offset-by-five.columns         { margin-left: 43.3333333333%; }
  .offset-by-six.column,
  .offset-by-six.columns          { margin-left: 52%;            }
  .offset-by-seven.column,
  .offset-by-seven.columns        { margin-left: 60.6666666667%; }
  .offset-by-eight.column,
  .offset-by-eight.columns        { margin-left: 69.3333333333%; }
  .offset-by-nine.column,
  .offset-by-nine.columns         { margin-left: 78.0%;          }
  .offset-by-ten.column,
  .offset-by-ten.columns          { margin-left: 86.6666666667%; }
  .offset-by-eleven.column,
  .offset-by-eleven.columns       { margin-left: 95.3333333333%; }  
  .offset-by-one-third.column,
  .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
  .offset-by-two-thirds.column,
  .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }  
  .offset-by-one-half.column,
  .offset-by-one-half.columns     { margin-left: 52%; }
}


