/* open-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/open-sans-v40-latin-regular.eot'); 
    src: url('../fonts/open-sans-v40-latin-regular.eot?#iefix') format('embedded-opentype'), 
         url('../fonts/open-sans-v40-latin-regular.woff2') format('woff2'),
         url('../fonts/open-sans-v40-latin-regular.woff') format('woff'),
         url('../fonts/open-sans-v40-latin-regular.ttf') format('truetype'),
         url('../fonts/open-sans-v40-latin-regular.svg#OpenSans') format('svg'); 
}

/* Reset */
html,
body {
    margin: 0;
    padding: 0;
}

/* General Body Styling */
body {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    padding: 2rem;
    background-color: #141414;
    color: #C0C0C0;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 600px;
    margin: 2rem auto 1rem auto;
    background: #1A1A1A;
    padding: 1rem 2rem 2rem 2rem;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(150, 150, 150, 0.1);
    border: 2px solid #2E2E2E;
}

/* h1 */

h1 {
    margin: 0 0 1rem 0;
    width: 100%;
    min-height: 300px; /* Default height for desktops */
    background: url('../img/nato-alphabet.png') center/cover no-repeat;
    text-indent: -9999px; /* Hide text while keeping accessibility */
    overflow: hidden;
    display: block;
    border-radius: 8px; /* Adds a subtle rounded effect */
    position: relative;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) { 
    h1 {
      min-height: 200px; /* Slightly smaller for tablets */
    }
  }
  
  @media (max-width: 480px) { 
    h1 {
      min-height: 150px; /* Adjust for mobile screens */
      background-size: contain; /* Ensures the full image is visible */
    }
  }
  


/* Uniform Inputs, Buttons, and Selects */

input {
    min-height: 80px;
}
input, button, select {
    margin: 10px 0;
    padding: 1rem 1rem;
    box-sizing: border-box;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    /*text-transform: uppercase;*/
    border: 2px solid #3B3B3B;
}

option span {
    font-size: 116px !important;
}



/* Input and Select Fields */
input, select {
    background-color: #1F1F1F;
    color: #C0C0C0;
}

/* Buttons */
button {
    background: #303030;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

button:hover {
    background: #454545;
    box-shadow: 0px 0px 10px rgba(150, 150, 150, 0.2);
}

/* Translation Output */
#output {
    margin-top: 20px;
    box-sizing: border-box;
    font-size: .9rem;
    font-weight: bold;
    /*text-transform: uppercase;*/
    padding: 1rem;
    color: #E0E0E0;
    background-color: #151515;
    border: 2px solid #3B3B3B;
    display: inline-block;
    width: 100%;
    border-radius: 5px;
    box-shadow: 0px 0px 12px rgba(150, 150, 150, 0.15);
}

/* Footer */
footer {
    margin:0;
    padding: 1rem;
    color: #A0A0A0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-icon {
    margin: 0 auto;
    max-width: 25px;
    height: auto;
}

footer a {
    color: #C0C0C0;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 85%;
        padding: 1.5rem;
    }

    input, button, select, #output {
        width: 100%;
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5vw;
    }

    .container {
        width: 80%;
        padding: 1rem;
    }

    input, button, select, #output {
        font-size: 0.9rem;
        padding: 10px;
    }

    footer {
        font-size: 0.8rem;
    }
}
