/* -------------------- RESET -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- BODY -------------------- */
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;
  min-height: 100vh;
}

/* -------------------- HEADER -------------------- */
h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #4285f4;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* -------------------- SEARCH FORM -------------------- */
form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  max-width: 700px;
  gap: 8px;
}

/* Input box */
input[type='text'] {
  padding: 12px 20px;
  font-size: 16px;
  flex: 1;
  border: 2px solid #dcdcdc;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
}

input[type='text']:focus {
  border-color: #4285f4;
  box-shadow: 0 0 6px rgba(66,133,244,0.4);
}

/* Buttons */
button[type='submit'], 
#fullscreen-btn {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button[type='submit']:hover, 
#fullscreen-btn:hover {
  background-color: #3367d6;
  transform: translateY(-2px);
}

button[type='submit']:active, 
#fullscreen-btn:active {
  transform: translateY(0);
}

/* -------------------- IFRAME -------------------- */
#iframe-container {
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  margin-top: 20px;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#proxyIframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* -------------------- LOADING SPINNER -------------------- */
#loadingSpinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4285f4;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

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

/* -------------------- INFO SECTION -------------------- */
#info-section {
  background-color: #fff;
  padding: 12px 16px;
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#info-section p {
  font-size: 14px;
  color: #555;
}
