* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; } body { width: 100vw; height: 100vh; overflow: hidden; background-color: transparent; } #tablet-container { display: none; opacity: 0; transition: opacity 0.3s ease-in-out; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; max-width: 1024px; height: 80vh; max-height: 768px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); overflow: hidden; border: 6px solid #181818; outline-offset: -10px; background: none; position: relative; z-index: 10; } .tablet-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('billede/baggrund.png'); background-size: cover; background-position: center; filter: blur(4px); z-index: 0; pointer-events: none; } #tablet-container > *:not(.tablet-background) { position: relative; z-index: 1; } .tablet-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: rgba(255, 255, 255, 0.8); border-bottom: 1px solid #181818; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } /* Gear Icon Styling */ .gear-icon { position: fixed; font-size: 20px; color: white; cursor: pointer; transition: transform 0.3s ease; z-index: 1000; top: -28px; right: -807px; } .gear-icon:hover { transform: rotate(30deg); color: #3B82F6; } /* Profile Modal Styling */ .profile-modal { max-width: 500px !important; width: 90% !important; padding: 20px !important; } .profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .profile-header h2 { margin: 0; color: white; } .profile-content { display: flex; flex-direction: column; gap: 20px; } .profile-image-container { display: flex; flex-direction: column; align-items: center; gap: 10px; } #profile-image { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid #3B82F6; } #change-profile-btn { padding: 8px 16px; background-color: #3B82F6; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.2s ease; } #change-profile-btn:hover { background-color: #2563EB; } .profile-info { display: flex; flex-direction: column; gap: 15px; background-color: #1E293B; padding: 20px; border-radius: 10px; } .profile-info-item { display: flex; justify-content: space-between; } .info-label { font-weight: 600; color: #94A3B8; } .status-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 20px; font-size: 14px; color: #ffffff; background-color: #181818; /* Semi-gennemsigtig baggrund */ backdrop-filter: blur(10px); /* Blur-effekt */ -webkit-backdrop-filter: blur(10px); /* Safari support */ border-radius: 0; /* Fjern afrundede hjørner */ margin: 0; /* Sikrer at den ikke skubbes væk fra kanterne */ } .status-left { display: flex; align-items: center; } .time { font-weight: 600; } .status-right { display: flex; align-items: center; gap: 15px; } .battery-icon { width: 25px; height: 12px; border: 1px solid #ffffff; border-radius: 3px; position: relative; padding: 1px; } .battery-icon::after { content: ''; position: absolute; right: -4px; top: 3px; height: 6px; width: 3px; background-color: #ffffff; border-radius: 0 2px 2px 0; } .battery-level { height: 100%; width: 80%; background-color: #ffffff; border-radius: 1px; } /* Dock styling */ .dock { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: rgba(255, 255, 255, 0.4); border-radius: 20px; display: flex; padding: 12px 20px; gap: 25px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Overgangseffekt kun ved hover */ transition: transform 0.3s ease-out, background 0.3s ease-out, box-shadow 0.3s ease-out; } /* Dock bevæger sig op, når musen er over */ .dock:hover { transform: translateX(-50%) translateY(-10px); /* Flytter docken op */ background-color: rgba(255, 255, 255, 0.7); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); } .dock .app-icon { width: 70px; height: 70px; border-radius: 18px; font-size: 28px; } .app-icon { width: 160px; height: 160px; border-radius: 40px; display: flex; justify-content: center; align-items: center; color: white; font-size: 64px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.514); margin-bottom: 16px; } .app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; } .app-grid { display: grid; grid-template-columns: repeat(2, 1fr); justify-content: center; align-items: center; height: 100%; padding: 60px; gap: 80px; } .app-grid .app { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 15px; padding: 0; text-align: center; transition: transform 0.2s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out; transform: scale(1.2); } .app-grid .app:hover { transform: scale(1.3); } .app .app:hover { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.55); } .home-indicator { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; background-color: rgb(212, 212, 212); border-radius: 3px; opacity: 0.3; } .app-name { text-align: center; font-size: 22px; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.575); margin: 0; } .app { display: flex; flex-direction: column; align-items: center; cursor: pointer; opacity: 0; transform: scale(0.95); animation: fadeIn 0.4s ease-out forwards; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .visible { opacity: 1 !important; } .hidden { opacity: 0 !important; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* Modal styling */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; } .modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #1e1e1e; padding: 20px; width: 80%; max-width: 600px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7); color: #f0f0f0; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #ccc; } .form-group input, .form-group select { width: 100%; padding: 8px; background-color: #2b2b2b; border: 1px solid #444; border-radius: 8px; font-size: 14px; color: #f0f0f0; } .form-group input:focus, .form-group select:focus { outline: none; border-color: #007AFF; box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3); } .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; } .form-actions button { padding: 10px 20px; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } #close-modal { background-color: #444; color: #f0f0f0; } #create-company { background-color: #007AFF; color: white; } #create-company:disabled { background-color: #555; cursor: not-allowed; } .form-group input:invalid { border-color: #FF3B30; } /* Animation for modal */ @keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .modal.active { display: block; } .modal.active .modal-content { animation: modalFadeIn 0.3s ease-out; } /* Shop Modal Styling */ .shop-modal, .modal-content.shop-modal { width: 95vw !important; max-width: 1000px !important; height: 90vh; max-height: 700px; padding: 0 !important; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background-color: #0F172A; /* mørk baggrund */ color: white; } .shop-header { padding: 20px; border-bottom: 1px solid #1E293B; display: flex; justify-content: space-between; align-items: center; background-color: #1E3A8A; color: white; border-radius: 20px 20px 0 0; } .shop-header h2 { margin: 0; font-size: 24px; } .close-button { background: none; border: none; color: white; font-size: 28px; cursor: pointer; padding: 0 10px; } .shop-container { display: flex; flex: 1; overflow: hidden; } .products-section { flex: 2; padding: 16px; overflow-y: auto; background-color: #1E293B; } .product-categories { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; } .category-btn { padding: 8px 16px; border: none; border-radius: 20px; background-color: #334155; color: white; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; } .category-btn.active { background-color: #3B82F6; color: white; } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 10px 0; } .product-card { background: #0F172A; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); display: flex; flex-direction: column; transition: transform 0.2s ease; border: 1px solid #334155; } .product-card:hover { transform: translateY(-5px); } .product-image { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; } .product-info { flex: 1; } .product-name { font-weight: 600; margin-bottom: 5px; color: white; } .product-price { color: #3B82F6; font-weight: 600; margin-bottom: 10px; } .add-to-cart-btn { width: 100%; padding: 10px; border: none; border-radius: 8px; background-color: #3B82F6; color: white; cursor: pointer; transition: background-color 0.2s ease; font-size: 14px; } .add-to-cart-btn:hover { background-color: #2563EB; } .cart-section { flex: 1; padding: 16px; background-color: #1E293B; border-left: 1px solid #1E293B; display: flex; flex-direction: column; overflow: hidden; } .cart-items { flex: 1; overflow-y: auto; margin-bottom: 20px; } .cart-item { display: flex; align-items: center; padding: 10px; background: #0F172A; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); border: 1px solid #334155; } .cart-item-info { flex: 1; padding: 0 10px; color: white; } .cart-item-name { font-weight: 500; } .cart-item-price { color: #3B82F6; } .cart-item-quantity { display: flex; align-items: center; gap: 10px; } .quantity-btn { border: none; background-color: #334155; color: white; width: 22px; height: 22px; border-radius: 12px; cursor: pointer; } .cart-summary { border-top: 1px solid #334155; padding-top: 20px; color: white; } .cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 15px; } .checkout-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background-color: #3B82F6; color: white; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; font-size: 14px; } .checkout-btn:disabled { background-color: #475569; cursor: not-allowed; } .checkout-btn:not(:disabled):hover { background-color: #2563EB; } .notification-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); max-width: 300px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; } .notification { background-color: #333; color: white; padding: 15px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); opacity: 1; transition: opacity 0.5s ease-in-out; } .notification.success { background-color: #40ca0a; } .notification.error { background-color: #ca0a1d; }