/* =========================
   FONT IMPORTS
   ========================= */
@font-face {
    font-family: Minecraft;
    src: url('./assets/Minecraft.ttf');
}

/* =========================
   INDEX PAGE STYLES
   ========================= */

/* Index Body */
.index-body {
    background-color: black;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

/* Main Section */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
}

/* Button Container */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* FOSS Logo */
.foss {
    width: 150px;
    height: 150px;
    background-image: url('./assets/fosscell-logo.png');
    background-size: cover;
    background-position: center;
}

.foss-text span {
    font-family: Minecraft;
    font-size: 24px;
    font-weight: bold;
    word-spacing: 5px;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Maveli Character */
.maveli {
    background-image: url(./assets/runningmaveli.gif);
    background-size: cover;
    width: 100px;
    height: 100px;
    margin: 10px 0;
}

/* Email Button */
.email-btn {
    font-weight: 200;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    transition: background-color 0.3s ease;
}

.email-btn:hover {
    background-color: rgb(81, 223, 81);
}

.email-logo {
    width: 40px;
    height: 25px;
    margin-right: 8px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  text-decoration-color: #0056b3;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

input {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 10px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

button:hover {
  background: #0056b3;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
  user-select: none;
  transition: color 0.3s ease;
}

.switch {
  margin-top: 15px;
  font-size: 14px;
  color: #007BFF;
  cursor: pointer;
  text-decoration: underline;
}

/* =========================
   RESPONSIVE DESIGN - INDEX
   ========================= */

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    .foss {
        width: 140px;
        height: 140px;
    }
    
    .foss-text span {
        font-size: 22px;
        word-spacing: 4px;
        letter-spacing: 2px;
    }
    
    .maveli {
        width: 90px;
        height: 90px;
    }
    
    .email-btn {
        font-size: 16px;
        padding: 12px 18px;
        min-height: 50px;
    }
    
    .email-logo {
        width: 40px;
        height: 25px;
        margin-right: 8px;
    }
    
    .index-body {
        padding: 15px;
    }
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .foss {
        width: 120px;
        height: 120px;
    }
    
    .foss-text span {
        font-size: 20px;
        word-spacing: 3px;
        letter-spacing: 1px;
    }
    
    .maveli {
        width: 80px;
        height: 80px;
    }
    
    .email-btn {
        font-size: 14px;
        padding: 10px 15px;
        min-height: 45px;
    }
    
    .email-logo {
        width: 35px;
        height: 22px;
        margin-right: 6px;
    }
    
    .index-body {
        padding: 10px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .index-body {
        min-height: 100vh;
        padding: 5px;
    }
    
    .main {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .foss {
        width: 80px;
        height: 80px;
    }
    
    .foss-text span {
        font-size: 16px;
    }
    
    .maveli {
        width: 60px;
        height: 60px;
    }
}

/* Tablet Styles (min-width: 768px) */
@media (min-width: 768px) {
    .main {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .btn {
        margin-top: 10px;
    }
    
    .foss {
        width: 200px;
        height: 200px;
    }
    
    .foss-text span {
        font-size: 32px;
        word-spacing: 8px;
        letter-spacing: 4px;
    }
    
    .maveli {
        width: 120px;
        height: 120px;
    }
    
    .email-btn {
        font-size: 18px;
        max-width: 300px;
    }
    
    .email-logo {
        width: 40px;
        height: 28px;
        margin-right: 10px;
    }
}

/* Desktop Styles (min-width: 1024px) */
@media (min-width: 1024px) {
    .main {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .foss {
        width: 250px;
        height: 250px;
    }
    
    .foss-text span {
        font-size: 40px;
        word-spacing: 10px;
        letter-spacing: 5px;
    }
    
    .maveli {
        width: 150px;
        height: 150px;
        position: relative;
        top: 10px;
    }
    
    .email-btn {
        font-size: 20px;
        padding: 10px 20px;
        max-width: none;
        width: auto;
    }
    
    .email-logo {
        width: 40px;
        height: 30px;
        margin-right: 10px;
    }
}