@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400&display=swap');

:root {
    --primary-color: #113257;
    --dark-bg: #d5ddeb;
    --light-bg: #081430;
    --text-color: #becfe1;
    --card-bg: #16224b;
    --border-color: #2e496c;
    --shadow-light: rgba(132, 167, 185, 0.08);
    --shadow-medium: rgba(136, 139, 160, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--light-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.container {
    max-width: 900px;
    width: 95%;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: var(--dark-bg);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px var(--shadow-light);
}

#msg {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 3px 5px;
    border-radius: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 0.7em;
    color: var(--text-color);
    box-shadow: 0 5px 15px var(--shadow-medium);
    transition: all 0.3s ease;
}
#msg:empty {
    min-height: 50px;
}

#api-frame {
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-medium);
    transition: all 0.3s ease;
    width: 90%;
    height: 500px;
    background-color: #000;
    background-image: radial-gradient(circle, #ffffff, #666666);
}
#api-frame:hover {
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

#controls {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-medium);
    width: 100%;
}

button {
    padding: 12px 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

button:hover {
    background-color: #3f7ac2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #api-frame {
        width: 90%;
        height: 500px; 
    }
    
    .container {
        width: 90%;
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2em;
    }

    @media (max-width: 680px) {
        #api-frame {
            height: 350px;
        }
        
        #msg {
            font-size: 0.9em;
            padding: 10px;
        }

        #controls {
            flex-direction: column;
            gap: 8px;
        }

        button {
            width: 80%;
            margin: 0 auto;
            font-size: 0.9em;
            padding: 10px 15px;
        }
    }
}