@import
url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);

html {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #040408;
}

body {
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  padding: 0px;
  margin: 0px;
}


header{
  background: rgb(9, 9, 9);
}

.headline{
  position: relative;
  height: 600px;
  color: rgb(255 255 255);
  text-align: center;
  background: url('Det_photo.JPG')
  no-repeat center center;
  background-size: cover;
}
.headline:after{
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 9, 9, 0.5);
}

.inner{
  position: relative;
  top: 50%;
  left: 50%;
  opacity: 0;
  z-index: 10;
  transform: translate(-50%, -50%);
  animation: fade-in  0.75s 0.25s ease-in forwards;

}
.inner h1{
  margin: 0;
  font-size: 4em;
  line-height: 1.2em;
}

.navbar {
  position: fixed;
  width: 100%;
  height: 75px;
  z-index: 10;

}
.navbar.scrolled{
  background-color: rgba(9, 9, 9, 0.9);
}

.navbar ul{
  float: right;
  list-style: none;
  padding: 25px;
  margin: 0;
}
.navbar li{
  float: left;
}
.navbar a{
  font-size: 0.9em;
  color: rgb(255 255 255);
  text-decoration: none;
  margin-left: 20px;
} 

.navbar a:hover{
  color:   #e6e6e6; 
}

.navbar .logo{
  height: 25px;
  float:left;
}

.logo-image {
  height: 70px;
  width: auto;
  display: block;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.button {
  font-family: "Open sans", sans-serif;
}

/* Hover effect for all buttons */
button:hover {
  background-color: rgb(18, 45, 124);
}

.top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgb(144, 161, 238);
  padding: 10px;
  border-radius: 8px;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: -1;
}

.hidden {
  display: none;
}

.ranking-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 300px;
}

.ranking-list li {
  padding: 10px;
  margin: 5px 0;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: grab;
}

.ranking-list li.dragging {
  opacity: 0.5;
}

#results {
  margin-top: 30px;
  padding: 15px;
  border: 1px solid #ccc;
  background-color: #fafafa;
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.grid-square {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  word-wrap: break-word;
}
