@font-face {
    font-family: 'Minecraft';
    src: url('fonts/UAMinecraft.ttf');
}

 /* Global reset for better responsive layout */
 *, *::before, *::after { box-sizing: border-box; }
 html, body { height: 100%; }

.centered{
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    
    justify-content: center;
     
    
    gap: clamp(16px, 6vh, 64px);
    padding: clamp(12px, 3vmin, 40px);

     
 }

body{
    display: flex;
    align-items: center;
    flex-direction: column;
    
    background: url(images/dirt.png) center/cover repeat;

    font-family: 'Minecraft', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

 }

ul{
    list-style: none;
    padding: 0;
    margin: 0;
}


.main-menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 2.5vmin, 28px);
    width: 100%;
    max-width: 1200px;
}

.minecraft-title{
 width: min(92vw, 920px);
 height: auto;
 image-rendering: pixelated;
 display: block;
}


.main-menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: clamp(120px, 22vw, 220px);
    height: clamp(120px, 22vw, 220px);
    aspect-ratio: 1 / 1;
    image-rendering: pixelated;
    background-image: url(images/button.png);
    background-size: cover;
    background-position: center;
    padding: 1rem;
    border: 0.1rem rgba(29, 28, 28, 0.5) solid;
    box-shadow: 0 0 0.2rem rgba(0, 0, 0, 1);
    color: white;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}



.main-menu-btn:hover {
    cursor: pointer;
    text-shadow: 2px 2px #202013CC;
   

}
.main-menu-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.main-menu-btn:active {
    box-shadow: inset -0.8rem -0.8rem #0004, inset 0.8rem 0.8rem #0004;
    transform: translateY(1px);
}





.main-menu-btn p {
    margin: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-size: clamp(14px, 1rem + 0.8vw, 24px);
    color: white;
    font-family: 'Minecraft';
    line-height: 1.2;
    text-align: center;
}




.server-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-image: url('https://i.ibb.co/rb2TWXL/bgbtn.png');
    image-rendering: pixelated;
    background-size: 100%;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.295);
    box-shadow: inset -2px -4px #0006, inset 2px 2px #FFF7;
    text-shadow: 2px 2px #000A;
    padding: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
    transition: all 0.3s ease;
    box-sizing: border-box;
}



.name {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.ip {
    color: #64b5f6;
    padding: 0.4rem 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ip:hover {
    color: #90caf9;
    text-decoration: underline;
}

.players {
    padding: 0.5rem 1rem;
    border-radius: 0.1rem;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.server-status.online .players {
    background-color: #4CAF50; /* Green for online status */
}

.server-status.offline .players {
    background-color: #f44336; /* Red for offline status */
}

.server-status img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    
    border: 2px solid rgba(255, 255, 255, 0.1);
}
/* Small phones: make buttons larger relative to width */
@media (max-width: 768px) {
    .server-status {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .server-status img {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .ip {
        padding: 0.2rem 0;
    }
    
    .players {
        margin: 0.5rem auto 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .minecraft-title { width: 86vw; }
    .main-menu-btn {
        width: 42vw;
        height: 42vw;
    }
    
    .server-status {
        padding: 0.8rem;
    }
    
    .players {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 1rem;
}

.login-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Minecraft', sans-serif;
    text-shadow: 2px 2px #000;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mc-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #555;
    background: #222;
    color: #fff;
    font-family: 'Minecraft', sans-serif;
    border-radius: 4px;
}

.mc-button {
    padding: 0.75rem 1.5rem;
    background: #4CAF50;
    border: 2px solid #45a049;
    color: white;
    font-family: 'Minecraft', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.mc-button:hover {
    background: #45a049;
}

.login-message {
    color: #ff6b6b;
    min-height: 1.5rem;
}

/* App Styles */
.hidden {
    display: none !important;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-family: 'Minecraft', sans-serif;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #555;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: #555;
    border: 2px solid #333;
    color: white;
    font-family: 'Minecraft', sans-serif;
    cursor: pointer;
    border-radius: 4px;
}

.nav-btn:hover {
    background: #666;
}

#logout-btn {
    background: #f44336;
    border-color: #d32f2f;
}

#logout-btn:hover {
    background: #d32f2f;
}

.page-content {
    margin-top: 70px;
    padding: 1rem;
    color: white;
    font-family: 'Minecraft', sans-serif;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Short landscape screens (e.g., phones sideways) */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        gap: clamp(8px, 4vh, 24px);
        padding: clamp(8px, 2vmin, 24px);
    }
    .minecraft-title { width: min(60vw, 700px); }
}




/* about us */
.about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: clamp(1rem, 5vmin, 4rem) clamp(1rem, 5vmin, 4rem) 4rem;
    gap: clamp(2rem, 6vmin, 4rem);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mc-box {
    background: #999 url('https://i.ibb.co/rb2TWXL/bgbtn.png');
    image-rendering: pixelated;
    background-size: 100%;
    
    border: 2px solid #000;
    box-shadow: inset -2px -4px #0006, inset 2px 2px #FFF7;
    text-shadow: 2px 2px #000A;
    width: 100%;
    max-width: 1200px;
}

.title {
    padding: clamp(0.5rem, 2vmin, 1.5rem);
    color: white;
    text-align: center;
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin: 0;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
    text-shadow: 2px 2px #000A;
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vmin, 2.5rem);
    font-size: clamp(1rem, 1.1vw + 0.5rem, 1.5rem);
    color: white;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    padding: 15px;
    line-height: 1.6;
}

.about-section img {
    width: 100%;
    
    height: auto;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
  
}


span{
    text-decoration: underline;
    color:rgb(243, 219, 80);
}

.exit-btn {
    width: 4rem;
    height: 4rem;
    position: fixed;
    left: 0.5rem;
    top: 0.5rem;
    z-index: 1000;
    font-size: 2.5rem;
    color: white;
    font-family: 'Minecraft';
    cursor: pointer;
    background: #999 url('https://i.ibb.co/rb2TWXL/bgbtn.png');
    background-size: cover;
    border: 2px solid #000;
    box-shadow: inset -2px -4px #0006, inset 2px 2px #FFF7;
    text-shadow: 2px 2px #000A;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 0.5rem;
}


.exit-btn:active {
    box-shadow: inset -0.8rem -0.8rem #0004, inset 0.8rem 0.8rem #0004;
    transform: translateY(1px);
}

.discord-section{
    flex-direction: row;
    text-align: left;   
    
}

.discord-section img{
    width: 20%;
    height: auto;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
    border: none;
    box-shadow: none;
    
}

.link{
    color:rgb(35, 159, 231);
    text-decoration: underline;
    font-size: 1.6rem;
}

.link:hover{
    color:rgb(70, 176, 247);
}


.footer{
    color: white;
    padding: 0.4rem;
    text-shadow: 2px 2px #000A;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section {
        width: 95%;
        padding: 1.25rem;
    }
    
    .about-section p {
        font-size: 1.1rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .about-us {
        padding: 1rem 0.75rem 2rem;
        gap: 2rem;
    }
    
    .about-section {
        width: 100%;
        padding: 1rem 0.75rem;
    }
    
    .about-section p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .title {
        padding: 0.5rem 0.25rem;
    }
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .about-us {
        padding: 1rem 2rem;
        gap: 1.5rem;
    }
    
    .about-section {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
    }
    
    .about-section img {
        width: 40%;
        max-width: 300px;
    }
}







.exit-btn1 {
    width: 4rem;
    height: 4rem;
    z-index: 1000;
    font-size: 2.5rem;
    color: white;
    font-family: 'Minecraft';
    cursor: pointer;
    background: #999 url('https://i.ibb.co/rb2TWXL/bgbtn.png');
    background-size: cover;
    border: 2px solid #000;
    box-shadow: inset -2px -4px #0006, inset 2px 2px #FFF7;
    text-shadow: 2px 2px #000A;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 0.5rem;
}

/* Account Page Styles */
.account-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px solid #5a5a5a;
}

.account-avatar {
    display: block;
    margin: 0 auto 1rem;
    border: 3px solid #8b8b8b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.account-details {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid #5a5a5a;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #5a5a5a;
    font-family: 'Minecraft', sans-serif;
    color: #fff;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #ffaa00;
    text-shadow: 1px 1px #000;
}

.detail-value {
    color: #fff;
    text-align: right;
    max-width: 70%;
    word-break: break-all;
}

.detail-value.uuid {
    font-size: 0.8em;
    color: #aaa;
}

/* Make the account page content scrollable */
.page-content {
    overflow-y: auto;
    padding: 1rem;
    max-height: calc(100vh - 150px);
}
