* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

#phone-frame, #phone {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
}

.chrome-browser {
  background: white;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
}

.chrome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.chrome-search-bar {
  display: flex;
  align-items: center;
  padding: 4px;
  background: #f1f3f4;
  gap: 4px;
}

.chrome-controls {
  display: flex;
  gap: 4px;
}

.chrome-controls button {
  background: none;
  border: none;
  font-size: 16px;
  color: #5f6368;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.chrome-controls button:hover {
  background: rgba(0,0,0,0.1);
}

.chrome-address-bar {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 4px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chrome-address-bar input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 12px;
}

.chrome-menu {
  padding: 8px;
  color: #5f6368;
  cursor: pointer;
}

.chrome-tabs {
  display: flex;
  align-items: center;
  background: #f1f3f4;
  padding: 8px 8px 0;
  gap: 4px;
}

.chrome-tab {
  display: flex;
  align-items: center;
  background: white;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  gap: 8px;
  min-width: 120px;
  max-width: 200px;
}

.chrome-tab.active {
  background: white;
}

.tab-favicon {
  width: 16px;
  height: 16px;
}

.tab-close {
  background: none;
  border: none;
  color: #5f6368;
  cursor: pointer;
  padding: 2px;
  margin-left: auto;
}

.new-tab {
  background: none;
  border: none;
  color: #5f6368;
  cursor: pointer;
  padding: 8px;
  font-size: 16px;
}

.chrome-viewport {
  flex: 1;
  background: white;
  overflow-y: auto;
  padding: 0;
  height: calc(100vh - 88px);
  position: relative;
}

.chrome-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

.google-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: min(80px, 10vh);
  height: 100%;
}

.google-main-logo {
  width: min(160px, 30vw);
  margin-bottom: 20px;
}

.google-search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90%, 600px);
  max-width: 600px;
}

.google-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  margin-bottom: 16px;
  outline: none;
  font-size: 14px;
}

.google-search:hover,
.google-search:focus {
  box-shadow: 0 1px 6px rgba(32,33,36,0.28);
  border-color: rgba(223,225,229,0);
}

.google-search-buttons {
  display: flex;
  gap: 12px;
}

.google-search-buttons button {
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
}

.google-search-buttons button:hover {
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  border: 1px solid #dadce0;
}

@media (max-width: 768px) {
  .chrome-search-bar {
    padding: 8px;
    gap: 8px;
  }

  .chrome-controls button {
    width: 32px; 
    height: 32px;
    font-size: 20px;
  }

  .chrome-address-bar {
    padding: 8px 12px;
  }

  .chrome-address-bar input {
    font-size: 16px; 
    line-height: 20px;
  }

  .chrome-menu {
    padding: 12px;
    font-size: 20px;
  }

  .chrome-tabs {
    padding: 8px 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chrome-tab {
    padding: 8px;
    min-width: 100px;
    font-size: 14px;
  }

  .tab-close {
    padding: 4px;
    font-size: 16px;
  }

  .new-tab {
    padding: 8px;
    font-size: 20px;
  }

  .google-search {
    padding: 12px 16px;
    font-size: 16px;
    -webkit-appearance: none; 
  }

  .google-search-buttons button {
    padding: 12px 20px;
    font-size: 16px;
    min-width: 120px;
  }

  .chrome-viewport {
    -webkit-overflow-scrolling: touch;
  }
}