* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
}

body {
    background-color: #000517;
    font-family: sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;  
    background-image: url("images/20250507-DSC_0130-Enhanced-NR.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px; 
    align-self: center;
}

.main-content {
    width: auto;
    background-color: #00112b;
    padding: 20px;
    text-align: center;
    border: 1px solid #004080;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    -webkit-text-stroke: 2px black;
    font-family: Tahoma, sans-serif;
    text-align: center;
    color: white;   
}   

h2 {
    font-size: 1.75rem;
    font-weight: bold;
    -webkit-text-stroke: 1px black;
    font-family: Tahoma, sans-serif;
    text-align: center;
    color: white;
}

p {
    font-size: 1.2rem;
    text-align: center;
    font-family: Tahoma, sans-serif;
    color: white;
}

.photo-card {
    display: flex;
    flex-direction: column;
    background: #001b3a;
    padding: 20px;
    margin-top: 20px;
    align-items: center;
    border: 1px solid #003366;
    border-radius: 8px;
}

.photo-image img {
    width: 100%;
    height: auto;
    border: 2px solid white;
    border-radius: 8px;
}

.photo-text {
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    color: white;
}

.stats-card {
    background: #001b3a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #003366;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    -webkit-text-stroke: 1px black;
    font-family: Tahoma, sans-serif;
    text-align: center;
    color: white;   
    background-color: #002244;
    border: 3px solid #003366;
    border-radius: 5px;
    margin: 10px;
}

.navbar {
    width: auto;
    text-align: center;
    padding: 10px 10px;
    background-color: #002244;
    border: 3px solid #003366;
    border-radius: 5px;
}

.navbar a {
    display: inline-block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: sans-serif;
    font-weight: bold;
    margin: 0 10px;
    cursor: pointer;
    background-color: #002244;
    border-radius: 5px;
}

.navbar a:hover,
.navbar a.active {
    background-color: white;
    color: #000b26;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    background-color: #002244;
    color: white;
    padding: 14px 16px;
    font-size: 17px;
    font-family: sans-serif;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #003366;
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    align-self: center;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 5px;
    margin: 3px;
}

.dropdown-content a:hover {
    background-color: white;
    color: #000b26;
}

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

.dropdown:hover .dropbtn {
    background-color: white;
    color: #000b26;
}


.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}
  
.column {
    padding: 0 4px;
    display: flex;
    justify-content: center;
    align-items: center;   
}
  
.column img {
    margin-top: 8px;
    height: auto;
    width: fit-content;
    max-width: 50%;
}

#hint {
    font-size: 1.2rem;
    text-align: center;
    font-family: Tahoma, sans-serif;
    color: white;
}

.mode-selection {
    margin-top: 20px;
    font-size: 1rem;
    color: white;
}

.mode-selection label {
    margin-right: 15px;
    cursor: pointer;
    user-select: none;
}

.mode-selection input[type="radio"] {
    margin-right: 5px;
    accent-color: #0055aa;
}

input#guessInput {
    padding: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 2px solid #004080;
    background-color: #001d3d;
    color: white;
    margin-top: 10px;
    width: 80%;
    max-width: 300px;
}

input#guessInput::placeholder {
    color: #bbbbbb;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #003366;
    color: white;
    font-weight: bold;
    border: 2px solid #004080;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0055aa;
}

.hidden {
    display: none !important;
}

.multiple-choice {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.multiple-choice button {
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #003366;
    color: white;
    border: 2px solid #004080;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.multiple-choice button:hover {
    background-color: #0055aa;
}
#resultMessage {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px black;
}

#guessContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

#guessContainer div {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

#guessContainer div div {
    width: 45px;
    height: 45px;
    background-color: #002244;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #004080;
    border-radius: 5px;
    text-transform: uppercase;
}

#guessContainer div div.correct {
    background-color: #4caf50;
    border-color: #4caf50;
    color: white;
}

#guessContainer div div.partial {
    background-color: #c9b458;
    border-color: #c9b458;
    color: white;
}

#guessContainer div div.wrong {
    background-color: #444;
    border-color: #333;
    color: white;
}

#wordLengthDisplay {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffcc00;
}

.album-container {
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: 1.2rem;
    font-family: sans-serif;
    margin: 10px auto;
    background-color: #003366;
    box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    outline: 0;
    overflow: hidden;
    padding: 1rem;
    pointer-events: auto;
    position: relative;
    text-align: center;
    touch-action: manipulation;
    user-select: none;
    vertical-align: top;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
}

.album-container img {
    width: 150%;
    height: auto;
    padding-top: 5px;
    object-fit: cover;
}

.album-container:hover {
    background: #0055aa;
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

.guess-row {
    display: flex;
    margin-bottom: 5px;
    justify-content: center;
}

.guess-tile {
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    margin: 2px;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    text-transform: uppercase;
    background-color: white;
    min-width: 40px;
    min-height: 40px;
    padding: 5px;
    user-select: none;
    cursor: pointer;
}

.correct {
    background-color: #6aaa64;
    color: white;
}

.partial {
    background-color: #c9b458;
    color: white;
}

.wrong {
    background-color: #787c7e;
    color: white;
}

@media (max-width: 600px) {
    #resultMessage {
        font-size: 1rem;
        text-align: center;
    }

    #guessContainer div {
        align-items: center;
    }

    #guessContainer div div {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 1px; 
    }

    input#guessInput {
        width: 90%;
        font-size: 1.2rem; 
    }

    button {
        width: 90%;
        font-size: 1.1rem;
    }
    .guess-row {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
    }

    .guess-tile {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 1px;
    }
}



@media (max-width: 400px) {
    #guessContainer div div {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    #guessContainer div div {
        font-size: 1.4rem;
        width: 42px;
        height: 42px;
    }
}

#onScreenKeyboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  user-select: none;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 8px;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.key-button {
  flex: 1 1 auto;
  min-width: 28px;
  max-width: 50px;
  padding: 10px 8px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  cursor: pointer;
  text-transform: uppercase;
  user-select: none;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
  
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


@media (max-width: 600px) {
  .key-button {
    font-size: 1.4rem;
    padding: 12px 8px;
    min-width: 28px;
    max-width: 45px;
  }
  .special-row .key-button {
    min-width: 60px;
    max-width: 90px;
  }
}



#guessContainer {
    max-width: 100%;
    overflow-x: auto;
    padding: 0 10px;
}
.photo-text p {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px black;
    color: #ffcc00;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .sidebar,
    .main-content {
        width: 100%;
        min-height: auto;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 3px;
    }

    .navbar a {
        display: inline-block;
        flex: 1 1 auto;
        text-align: center;
        padding: 10px;
        margin: 5px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .photo-card,
    .stats-card {
        width: 90%;
    }

    .column {
        flex: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.9rem;
    }

    .photo-card,
    .stats-card {
        width: 100%;
        padding: 15px;
    }

    .photo-text {
        padding: 10px;
    }
}

.track {
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  user-select: none;
}
