/* Main Page */
header {
  position: relative;
  z-index: 10; 
}

body {
  background-color: #0f1115;
}

nav {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: 100%;
  background-color: #121212;
  position: relative;
  z-index: 10;
}


ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  position: relative;
  border-radius: 8px; 
}


.nav-right {
  margin-left: auto; 
}

li {
  display: inline;
  position: relative;
  margin: 0.3rem; 
}

a {
  text-decoration: none;
  color: #f0f0f0; 
  font-size: clamp(1rem, 2vw, 1.5rem);
  padding: 0.3rem 0.8rem; 
  display: inline-block; 
  border-radius: 4px; 
  transition: all 0.3s ease; 
  margin: 0; 
  height: 100%;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
  padding: 0;
  min-width: 150px;
  background-color: #1a1a1a;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  padding: 0.5rem;
  white-space: nowrap;
}


.dropdown:hover .dropdown-menu {
  display: block;
}


.dropdown-menu a:hover {
  background-color: #1e90ff;
}


a:hover {
  background-color: #1e90ff; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

.dropdown-menu li {
  display: block;
  border-bottom: 1px solid rgb(90, 82, 82); 
}

.dropdown-menu li:last-child {
  border-bottom: none; 
}

/* Banner Image */

.banner {
  position: relative;
  z-index: 1; 
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-options {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.banner-btn {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.5); /* optional glow */
  transition: background-color 0.3s;
}

.banner-btn:hover {
  background-color: #1e90ff;
  color: white;
}


/* Logo */
.logo-container {
  position: absolute;
  top: 0px; 
  left: -80px; 
  z-index: 10; 
}

.logo {
  width: 120px; 
  height: auto;
}

.logo-container {
  position: absolute;
  top: 10px; 
  left: 55px;
  z-index: 20; 
}

.logo {
  width: clamp(350px, 20vw, 300px); 
  height: auto;
}

/* Player Count */

.player-count {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #cce7ff;
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
}


/* Intro (Main Page) */

.intro-section {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.intro-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #dad1d1;
  line-height: 1.6;
}

/* News and Updates */

#news-updates {
  padding: 3rem 1rem;
  color: #e0e0e0;
}

.news-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

.news-item {
  margin-bottom: 2rem;
}

.news-image {
  background-size: cover;
  background-position: center;
  height: 250px;
  position: relative;
  transition: 0.3s ease-in-out;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.news-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay always visible */
  transition: background-color 0.3s ease-in-out;
}

.news-content {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  opacity: 1; /* Always visible */
  color: #cce7ff;
  z-index: 2;
}

.news-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.news-content p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.news-content span {
  font-size: 0.85rem;
  color: #b0c4de;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #88c9ff;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 2rem 1rem;
  font-size: 0.75rem; 
  text-align: center;
  line-height: 1.6;
}

.site-footer *,
.site-footer a,
.site-footer span,
.site-footer p {
  font-size: inherit; 
  color: inherit;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-note {
  margin-top: 1rem;
}

/* Media querie for smaller screens */



@media (max-width: 768px) {

  nav {
    display: block;
  }

  .logo-container,
  .banner-buttons {
    display: none; 
  }

  ul.active {
    display: flex;
  }

  .news-image {
    height: 200px;
  }

  .player-count {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .translucent-form {
    width: 100%;
    max-width: 400px; 
    padding: 1.5
  }
  
  .rowcolumns {
    width: 100%; 
    margin-bottom: 1rem; 
  }

  label {
    font-size: 1rem; 
  }

  input, select, button {
    width: 90%; 
    padding: 1rem; 
    font-size: 1rem; 
  }

  .submit-button button {
    font-size: 1.2rem; 
    padding: 1rem; 
  }

  .password-requirements {
    font-size: 0.9rem; 
  }

  img2 {
    max-width: 100%;
    max-height: 100%;
  }
}

/* Media querie for larger screens */

@media (min-width: 1024px) {
  input, select, button {
    width: 50%; 
  }
}

  .news-item {
    flex: 1 1 400px; 
}

  .banner-actions {
    flex-direction: row;
    justify-content: center;
  }

  .players-online {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  
  /*Roadmap media*/
  
  .roadmap {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3rem;
  }
  
  .roadmap-banner-image {
    flex: 1 1 30%;
    min-height: 250px;
  }
  
  #roadmap-t1 {
    font-size: 3.5rem;
  }

/*RoadMap*/
 
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 1rem; 
  padding: 2rem;
}

.update-row {
  background-color: #222; 
  border-radius: 8px;
  padding: 5rem;
  color: white; 
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.update-row:hover {
  background-color: #333; 
}

.show-default {
  font-weight: bold;
  font-size: 1.2rem;
}

.show-on-hover {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #ccc;
}

.update-row:hover .show-on-hover {
  display: block;
}

.release-date {
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
  color: #aaa;
}

.row-sailing { background-color: #2e3b4e; }
.row-yama { background-color: #3a2e4e; }
.row-varlamore { background-color: #4e2e2e; }
.row-basic { background-color: #2e4e3a; }
.row-sailing-two { background-color: #2e3b4e; }
.row-deadman { background-color: #4e3a2e; }
.row-blood-moon { background-color: #4e2e4e; }
.row-zanaris { background-color: #2e4e4e; }


/*Background*/

.roadmap-wrapper {
  background-image: url("../images/roadmapback.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: auto;
  padding: 2rem;
  border-radius: 10px;
}

.road-banner-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Table */
#roadmap-t1 {
  text-align: center;
  font-size: 2.5rem;
  color: rgb(255, 255, 255);
  margin: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}


/* row backgrounds */
.row-sailing {
  background-image: url("../images/sailing-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-sailing-two {
  background-image: url("../images/sailing2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-blood-moon{
  background-image: url("../images/blood-moon-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-yama {
  background-image: url("../images/yama.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-deadman {
  background-image: url("../images/deadman-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-zanaris {
  background-image: url("../images/zanaris-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-varlamore {
  background-image: url("../images/varlamore-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.row-basic{
  background-image: url("../images/basic-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* I looked up how to create this effect */
.show-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
}

.show-on-hover {
  font-size: 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.update-row:hover .show-default {
  display: none;
}

.update-row:hover .show-on-hover {
  display: flex;
}

.update-row {
  transition: background 0.3s ease;
  cursor: pointer;
  padding: 1rem;
}

.update-row:hover {
  background-color: #f0e8d6;
}


  /* Sign-In page css below */

  .sign-in-page {
    display: flex;
    flex-direction: column;
    min-height: 100%; 
    margin: 0;
  }

  /* Sign-In Banner Styles */

    .banner {
      position: relative;
      z-index: 1; /* Fixed z-index value */
      bottom: -30px
    }



  /* Sign-In page img styles */
  #img3{
    display: none;
  }

  #img3 
  .active {
    width: 425px;
    height: auto; /* Maintain aspect ratio */
    position: absolute;
  }
  
  #img2 {
    width: 50em; /* target / content = 10% / 100% = 10% */
    height: auto; /* Maintain aspect ratio */
    position: absolute;
    top: 0;
    left: -8%;
    left: -5em;
    z-index: -1; /* Behind other elements */
  }

  #img1 {
    width: 50em; /* target / content = 10% / 100% = 10% */
    height: auto; /* Maintain aspect ratio */
    position: absolute;
    top: 0;
    right: 0%;
    z-index: -1; /* Behind other elements */
  }



  /* Sign In transparent form overlay */
  .translucent-form-overlay {
    width: 100%; 
    height: 30%; 
    margin: auto;
    position: absolute;
    top: 250px; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: rgba(1, 13, 72, 0.1); 
    padding: 1rem; 
    border-radius: 10px; 
  }

  .translucent-form-overlay .columns.row {
    display: block;
  }

  .translucent-form-overlay h3, .translucent-form-overlay label {
    color: #fefefe;
  }

  .translucent-form-overlay input, .translucent-form-overlay select {
    color: #000000;
  }

  .translucent-form-overlay input::-webkit-input-placeholder {
    color: #8a8a8a;
  }

  translucent-form-overlay input:-ms-input-placeholder {
    color: #8a8a8a;
  }

  .translucent-form-overlay input::placeholder {
    color: #8a8a8a;
  }

  button:hover {
    background: hsl(56, 71%, 64%);
    box-shadow: 0 0 30px hsl(56, 100%, 68%);
  }

  /*Sign-In page row design */
  .rowcolumns {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
    padding: 0.5rem;
    margin: 1em;
    background-color: #7f7fb6;
    box-shadow: #000000 1px 10px 1px 1px;
    border-radius: 10%1.666666666666667em; /* 50 / 30 = 1.666666666666667 */
  }

  label {
    font-style: italic;
    font-size: 1.2em;  /* 60 / 50 = 1.2em */
    color: #fefefe;
    margin-right: 3.6em; /* Space between label and input */
  }

  .active {
    border: 2px solid hsl(56, 71%, 64%);
    background-color: rgba(255, 255, 0, 0.2); /* Optional highlight */
}


  /*Sign-In page Button styles */
  .submit-button {

    margin-left: 40%; /* 50 / 1.33 = 37.46153846153846em */
    margin-top: -2%; /* 50 / 5 = 10em */
    color: #fff;
    border: none;
    padding: 10px; /* Added 'px' unit */
    font-size: 1.2em;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  button {
    width: 90px; /* target / content = 100% / 1.11 = 90px */
    height: 90px; /* target / content = 100% / 1.11 = 90px */
    border-radius: 50%; /* 50% of height */
    display: flex; /* this is being used to center the text inside the button */
    justify-content: center; /* this is being used to center the text inside the button */
    align-items: center; /* this is being used to center the text inside the button */
    border: none; /* No border */
    background-color: #877b32; /* Background color */
    color: #fff;  /* Text color */
    font-size: 1rem; /* Font size */ 
    cursor: pointer; /* Pointer cursor on hover */ 
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transition effect for background color and box shadow */
  }

  button:hover {
    background: hsl(56, 71%, 64%);
    box-shadow: 0 0 30px hsl(56, 100%, 68%);
  }

  /* Sign-In page input styles */
  input {
    text-align: center; /* Center text horizontally */
    vertical-align: middle; /* Align text vertically */
}