* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f0f4f0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('coins.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* header */
header {
    background: none;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 400;
}

header p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.nav-list{
    display: flex;
    gap: 20px;
}

.nav-list a{
    color: white;
    text-decoration: none;
    padding: 8px 16px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* main */
main {
    display: flex;
    flex: 1;
    width: 100%;
    padding: 0 1.2rem;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
}

main > *{
    margin-top: 2rem;
}

.welcome-group{
    display: flex;
    gap: 30px;
    justify-content: space-between;
    width: 100%;
    height: fit-content;
    flex-wrap: wrap;
}

.welcome-main h2{
    font-size: 3.3rem;
    color: white;
    font-weight: 500;
}

.welcome-side{
    color: white;
    font-weight: 600;
}

.welcome-side-el{
    background-color: rgba(0, 0, 0, 0.75);
}

.welcome-side, .welcome-side-el{
    display: flex;
    justify-content: center safe;
    flex-direction: column;
    height: fit-content;
    border-radius: 0.75rem;
    gap: 1.8rem;
}

.welcome-side-el hr{
    color: white;
}

.welcome-side-el img{
    height: 12rem;
    object-fit: cover;
    border-radius: 1.8rem;
}

.welcome-element, .welcome-side-el{
    padding: 20px;
    flex: 1;
    flex-basis: 150px;
}

.converter-card {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 0.75rem;
    padding: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.converter-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    background-color: #4a8f5f;
    border-radius: 1rem;
}

input[type="number"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d0e0d0;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #4a8f5f;
}

.currency-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.currency-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.convert-button {
    width: 100%;
    padding: 16px;
    background-color: #4a8f5f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.convert-button:hover {
    background-color: #3d7550;
}

/* main ali rezultat.php dio */


.result-box {
    padding: 30px;
    background-color: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #4a8f5f;
    margin-bottom: 30px;
}

.result-text {
    font-size: 32px;
    color: #2d5f3f;
    font-weight: 500;
}

.back-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: #4a8f5f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #3d7550;
}

/* footer */
footer {
    background-color: rgba(0, 0, 0, 1);
    color: white;
    padding: 30px 40px;
    text-align: center;
    margin-top: 2rem;
    position: sticky;
    bottom: 0;
}

footer p {
    font-size: 0.8rem;
}

/* mobilni dizajn */
@media (max-width: 768px) {
    .hamburger{
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 7rem;
        right: -100%;
        background-color: #2d5f3f;
        flex-direction: column;
        width: 12rem;
        padding: 1.2rem;
        transition: right 0.3s;
    }
    
    .nav-list.active {
        right: 0;
    }
}