* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Calibri, Arial, sans-serif;
    background-color: #1a0e2e;
    color: white;
}

h1 {
    text-align: center;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* HEADER */
#header {
    background-color: #2a1b3d;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #e6d9ff;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* MENU */
.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.menu a {
    color: #e6d9ff;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.05);
}

.menu a:hover {
    background-color: #6a3fb5;
    color: white;
    transform: translateY(-2px);
}

.menu.active {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: #2a1b3d;
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 5px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.menu.active a {
    width: 100%;
    text-align: center;
    padding: 15px;
}

/* LAYOUT PLANETA */
.wrapper {
    display: flex;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.left {
    flex: 1;
    min-width: 300px;
    background-color: #1d142b;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.right {
    flex: 1.5;
    min-width: 300px;
}

/* FORME */
form {
    background-color: rgba(42, 27, 61, 0.6);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid rgba(106, 63, 181, 0.3);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e6d9ff;
}

input.text-input,
input.number-input,
select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border-radius: 8px;
    border: 2px solid #6a3fb5;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 16px;
}

input.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #6a3fb5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

input.submit-button:hover {
    background-color: #7d4dc9;
}


/* REZULTAT */
.rezultat {
    background-color: #6a3fb5;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* SLIKE */
.slika {
    background-color: #2a1b3d;
    height: 250px;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.slika img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ZANIMLJIVOSTI */
.zanimljivo {
    background-color: #1d142b;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.zanimljivo h3 {
    color: #9b6fe0;
    margin-top: 0;
    text-align: center;
}

.zanimljivo ul {
    list-style: none;
    padding: 0;
}

.zanimljivo li {
    padding: 10px;
    margin: 8px 0;
    background-color: rgba(106, 63, 181, 0.2);
    border-left: 4px solid #6a3fb5;
    border-radius: 5px;
}

/* INDEX */
#index-wrapper {
    position: relative;
    min-height: 450px;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
}

#pozadina {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('slike/pocetna.jpg') center/cover;
}

#index {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    gap: 20px;
    padding: 30px;
    flex-wrap: wrap;
}

.box {
    background-color: rgba(30, 15, 50, 0.95);
    padding: 25px;
    width: calc(25% - 20px);
    min-width: 200px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid rgba(106, 63, 181, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.box:hover {
    transform: translateY(-10px) scale(1.03);
    background-color: rgba(106, 63, 181, 0.9);
    border-color: #9b6fe0;
}

.box h3 {
    color: #9b6fe0;
    font-size: 20px;
    margin-top: 0;
}

/* FOOTER */
#footer {
    background-color: #2a1b3d;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.planet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.planet-card {
    background-color: #1d142b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(106, 63, 181, 0.3);
}

.planet-card h3 {
    color: #9b6fe0;
    margin-top: 0;
}

.planet-card a {
    color: #9b6fe0;
    text-decoration: none;
    font-weight: bold;
}