/* Reset default margins/paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body style */
body {
    background-color: #f1f3f4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #202124;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

/* Header (Roogle) */
h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4285F4;
    font-weight: bold;
}

/* Form styles */
form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

/* Input box */
input[type="text"] {
    padding: 12px 20px;
    font-size: 16px;
    width: 80%;
    border: 2px solid #dcdcdc;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.3s;
}

/* On focus input border */
input[type="text"]:focus {
    border-color: #4285F4;
}

/* Submit button */
button[type="submit"] {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Button hover */
button[type="submit"]:hover {
    background-color: #3367D6;
}

/* iframe container */
#iframe-container {
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    margin-top: 20px;
    border: 2px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
}

/* iframe itself */
#proxyIframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading spinner */
#loadingSpinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4285F4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fullscreen button */
#fullscreen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    padding: 10px 12px;
    font-size: 18px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.3s;
}

#fullscreen-btn:hover {
    opacity: 1;
}
