@keyframes moveBackground {
    0% {
      background-position: 50% 0%;
    }
    100% {
      background-position: 100% 0%;
    }
  }

html, body {
  font-family: Roboto, sans-serif;
  padding: 0;
  margin: 0;
  letter-spacing: 3px;
  color: rgb(212, 212, 212);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

html, .header-container, .footer, .hamburger-menu, .modal  {
  background-image: url(/static/media/background.png);
  background-repeat: repeat;
  animation: moveBackground 450s linear infinite alternate;
}

a {
  text-decoration: none;
  color: white;
  text-shadow: 0 0 10px white;
}

p {
  margin: 7px 0 7px 0;
}

a:hover, .close-button:hover, .hamburger:hover {
    transition: color 0.5s;
    text-shadow: 0 0 10px rgb(100, 113, 184), 0 0 20px rgb(255, 255, 255);
  }  

.header-container {
    position: fixed;
    font-size: large;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; 
    z-index: 100;
    display: flex;
    justify-content: space-between; 
    align-items: center; /* this is vertically */
}

#contactEnvSymbol {
  /* font-size: 20px;  */
  padding-right: 20px;
  cursor: pointer;
  font-weight: bold;
  flex-grow: 0;
  flex-shrink: 0;
}

#hamburger, #back {
    cursor: pointer;    
    padding: 20px 0 20px 30px; 
    color: white;
    align-items: center;
}

/* #hamburger { 
  font-size: 26px;
} */

.siteName, #menuItems li {
    flex: 1;
    /* font-size: large; */
    color: white;
    text-shadow: 0 0 15px white;
    letter-spacing: 0.5rem;    
    margin: 0 0 0 2rem;
    
    font-weight: bold;
    /* justify-content: flex-start; */
}
#menuItems li #last {
  justify-content: flex-end;
}

.hamburger-menu {
    flex: 0 0 10px;
    position: fixed;
    left: -100%; 
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 101;    
    transition: left 0.3s; 
}

.hamburger-menu.active {
  left: 0;
}

#menuItems {
  list-style-type: none;
}

#menuItems li {
  padding: 20px; 
  text-align: center;
}

.content {  
  flex: 1;
  box-sizing: border-box;
  /* padding-top: 65px;   */
  padding: 15px;
  margin: 65px auto 5px auto;  
  overflow-x: hidden;
  width: 100%;
  max-width: 750px;
  border-radius: 15px; 
  letter-spacing: 0.1rem;
  line-height: 1.5;  
  /* height: calc(100vh - 80px);   */
  background-color: rgba(71, 76, 100, 0.158);
  /* z-index: 1; */
  box-shadow: 0 0 10px #555555;    
  /* position: relative; */
}

#wordpress {
  max-width: 100%;
  width: 750px; 
  height:calc(100vh - 120px); /* to keep the wordpress cookies button in view */
  max-height: 100vh;  
  border:none;
}

#dashboard {
  max-width: 100%;
  width: 1230px; 
  height: calc(1230px/9*16);
  /* max-height: 100vh; */
  border:none;
}

.footer {
  color: white;
  padding: 20px;
  /* text-align: right; */
  display: flex;
  justify-content: space-between; 
  margin-top: auto;
  z-index: 1000;  
}

.footer small {
  cursor: pointer;
}

/* cookie bannner */
#consent-banner {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 0;
  /* width: 100%; */
  max-width: 750px;
  background: rgb(11, 13, 22);  
  box-shadow: 0 0 10px #555555;
  border-radius: 15px;
  padding-left: 25px;
  margin: 5px;
  text-align: center;
  z-index: 1000;
}

#consent-banner button {
  color: white;
  align-items: center;
  margin: 20px;
  padding: 10px 10px;    
  box-shadow: none;
  cursor: pointer; 
  background: none;
  /* border: none; */
  border-radius: 15px;
  font-size: 20px;

}

/* scrollbar */
::-webkit-scrollbar {
  width: 5px; 
}

::-webkit-scrollbar-track {
  background: rgb(20, 20, 46);  
}

::-webkit-scrollbar-thumb {
  background: #272727; 
  border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a7a7a; 
  width: 25px; 
}

/* popups*/
.modal {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); 
  width: 80%; 
  height: 80%; 
  max-width: 650px;
  z-index: 1001; 
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 15px;
}

.modal-content {  
  margin: 20px;
  padding: 20px;
  height: 70%;
  line-height: 1.5;
  max-width: 600px;
}

.modal-content h1, .modal-content h2 {
  text-shadow: none;
}

.modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); 
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Close button more modal */
.close-button {
  box-shadow: none;
  color: white;
  position: fixed; 
  top: 10px;
  left: 10px;
  cursor: pointer; 
  background: none;
  border: none;
  font-size: 20px;
  padding: 5px;  
}

/* tiles */
.tiles {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tile {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  height: 200px;
  transition: transform 0.3s ease;
  border: #555555 solid 1px;
}

.tile:hover {
  transform: scale(1.02);
  box-shadow: 2px 2px 2px #555555;
}

.tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  margin: 15px 15px 0px 5px;
  border-radius: 5px;  
}

.tiles-header h1, .tiles-header h2, .tiles-header p {  
  padding: 7px 10px 7px 10px;
  margin: 7px 0;
}

.tile-text p {
  font-size: small;
  margin: 0;  
}

.tile-intro-text {
  padding: 0 10px;  
}

.tile-intro-text h2 {  
  margin: 7px 0;
}


  
.flash {
  color: white;
  margin: 1em 0;
  padding: 1em;
  /* background: #000000; */
  border: 1px solid #9e9e9e;
}

/* #topic, #text, #topic p, #text p {
  letter-spacing: 0.1rem;
  line-height: 1.5;
}

#text, #chatBody {
  flex-direction: column;
  margin: 0;
  padding: 0;  
} */

/* ai blog text input */
.input-container {
  display: flex;
  justify-content: space-between; 
  border: none;
  border-radius: 15px;
  padding: 5px;
  margin: 5px; 
  font-size: 16px;
  height: 90%;
  /* flex: 1 0 80%; */
  
}

.input-container textarea {
  border: none;
  font-size: 0.85em; 
  border-radius: 5px;
  box-sizing: border-box;
  outline: none;
  background-color: rgba(255, 255, 255, 0.055);
  margin: 0;
  padding: 10px;
  width: 100%;
  color: rgb(212, 212, 212);
  resize:none;
}

.input-container button {
  flex: 0 0 1rem;
  background-color: transparent;
  color: rgb(255, 255, 255);
  border: none;
  cursor: pointer;
  outline: none;
  font-size: 20px; 
  text-align: center; 
}

.input-container button:hover {
  /* box-shadow: none; */
  background-color: rgba(255, 255, 255, 0.021);
  text-shadow: 0 0 5px white,0 0 20px white, 0 0 50px white;
}


.input-container textarea:focus, .input-container textarea:active {
  background-color: rgba(255, 255, 255, 0.062);
  box-shadow: 0 0 10px white;
}

/* Large screens */
@media (min-width: 900px) {
  .hamburger-menu.active {
    left: 0;
  }
}

@media (max-width: 750px) {
  .content {
    margin: 65px 10px 5px 10px; 
    width: calc(100% - 20px); 
  } 
}

@media (max-width: 600px) {
  .tiles {    
    grid-template-columns: 1fr;
  }

  @keyframes moveBackground {
    0% {
      background-position: 50% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
  }
  .modal {
    width: 90%; 
  }
  .modal-content {  
    margin: 10px; /* Margin from the edges */
    padding: 10px;
    letter-spacing: 1.5px; 
    line-height: 1.2;
  }
  html, .header-container, .footer, .hamburger-menu, .modal  {
    background-image: url(/static/media/background_small.png);
    background-repeat: repeat;
    animation: moveBackground 450s linear infinite alternate;
  }
}
