@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600");

:root {
    --background: #1a1a2e;
    --color: #ffffff;
    --primary-color: #0f3460;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    color: #fff;
    position: relative;
    display: grid;
    place-items: center;
}

/* Animaties */
@keyframes pop-word {
    to {
        transform: rotateX(0);
    }
}

@keyframes show {
    to {
        opacity: 1;
    }
}

@keyframes wobble {
    0% { transform: scale(1.025); }
    25% { transform: scale(1); }
    75% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

/* Typography */
a {
    text-decoration: none;
    color: var(--color);
}

h1 {
    color: white;
    font-family: "Playfair Display", Vidaloka, serif;
    font-size: 8rem;
    line-height: 0.85;
    perspective: 500px;
}

h2 {
	color: white;
    font-family: "Playfair Display", Vidaloka, serif;
    font-size: 5rem;
    line-height: 0.85;
}

.word {
    display: block;
    animation: show 0.01s forwards, pop-word 1.5s forwards;
    animation-timing-function: cubic-bezier(0.14, 1.23, 0.33, 1.16);
    opacity: 0;
    transform: rotateX(120deg);
    transform-origin: 50% 100%;
}

.word:nth-of-type(2) {
    padding: 0 1rem;
    float: right;
    animation-delay: 1.8s;
    color: #bfbfbf;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111111;
    opacity: 0.7;
    z-index: 1;
}

.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh; /* <-- VOEG DIT TOE */
    height: 100%;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

.left-Container {
    flex: 1;
    text-align: center;
    font-family: "Playfair Display", Vidaloka, serif;
    display: flex;
	flex-direction: column; /* Stapelt de inhoud verticaal */
 
    justify-content: center;
    align-items: center;
    height: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}




.welcome-message {
    font-size: 5rem;
}

.right-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-template-rows: repeat(3, min-content); 
    gap: 10px;
    padding: 15px;
    width: 650px;                    /* Gewijzigd van 500px */
    max-width: 650px;                 /* Terug naar origineel */
    margin: auto;                      /* Gewijzigd van 0 auto */
    height: auto;
	align-content: start;
   /*  border: 2px solid red; Tijdelijk om de container te zien */
}

/* Block Styling - Gecombineerd en geoptimaliseerd */
.block {
    border-radius: 10px;
  margin: 1rem;
    padding: 1rem;
    width: 140px;
    height: 140px;
    min-height: 120px;
    border: 1px solid hsla(0, 0%, 65%, 0.158);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    z-index: 99;
    transition: transform 0.3s ease, box-shadow 0.3s, background 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.block:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.block:hover a {
    color: #303030;
}

.block:hover .icon {
    filter: invert(100%);
}

.block a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.icon {
    width: 48px;
    height: 48px;
    max-width: 40%;
    max-height: 40%;
    margin: 0;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

/* Voor blocks zonder block-content (de originele 6) */
.block:not(.time-block):not(.weather-block) {
    gap: 12px;
    justify-content: center;
}

.block .block-text {
    text-align: center;
    margin: 0;
    flex-grow: 0;
    flex-shrink: 0;
}

.block .block-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Tijd Block Styling */
.time-block .icon {
    display: none;
}

.time-block .block-content {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.time-block .current-time {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    font-weight: bold;
    color: white;
    margin: 8px 0 5px 0;
    line-height: 1;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-block .current-date {
    font-size: clamp(0.6rem, 2.8vw, 0.9rem);
    color: white;
    margin: 5px 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    max-width: 100%;
}

.time-block .timezone {
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Weer Block Styling */
.weather-block .icon {
    display: none;
}

.weather-block .block-content {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.weather-block .weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 5px 0;
}

.weather-block .temperature {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    font-weight: bold;
    color: white;
    line-height: 1;
}

.weather-block .weather-condition-icon {
    width: clamp(30px, 8vw, 50px);
    height: clamp(30px, 8vw, 50px);
    object-fit: contain;
}

.weather-block .weather-description {
    font-size: clamp(0.6rem, 2.8vw, 0.85rem);
    color: white;
    margin: 5px 0;
    line-height: 1;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.weather-block .weather-location {
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Error styling */
.error {
    color: #ff5722;
    font-size: 0.8rem;
}

/* PWA Install Banner */
.pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
}

.pwa-install-banner button {
    background: white;
    color: #233b50;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
}

.pwa-install-banner .close-btn {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.form-container {
    position: relative;
    width: 23rem;
    border: 1px solid hsla(0, 0%, 65%, 0.158);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 2rem;
    margin: 0 auto;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}



.login-container form input {
            display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
		display: block;
    padding: 14.5px;
    width: 100%;
    margin: 2rem 0;
    color: white;
    outline: none;
	background-color: rgba(145, 145, 145, 0.12); /* 50% dekking */
    border: none;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
    backdrop-filter: blur(15px);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.login-container form input::placeholder {
    color: #e1e7ed;
    opacity: 1;
}

.login-container form input:-ms-input-placeholder { /* Voor IE 10-11 */
    color: #e1e7ed;
}

.login-container form input::-ms-input-placeholder { /* Voor Edge */
    color: #e1e7ed;
}



.login-container form input:focus {
    box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.2);
    animation: wobble 0.3s ease-in;
    -webkit-animation: wobble 0.3s ease-in;
}

.login-container form button {
    background-color: #0f3460;
    color: white;
    display: block;
    padding: 13px;
    border-radius: 5px;
    outline: none;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.1s ease-in-out;
    border: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

.login-container form button:hover {
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
}

.register-forget {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}
.register-forget a {
    color: #1f72b8;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold; /* Maakt de tekst dikker */
    font-size: 16px; /* Iets groter */
	
}

.register-forget a:hover {
    text-decoration: underline;
}

/* iOS Standalone optimalisaties */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        overscroll-behavior: none;
    }

    .main-container {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

@media all and (display-mode: standalone) {
    body {
        background-attachment: scroll;
    }

    .pwa-install-banner {
        display: none !important;
    }
}

/* Form styling */
.form-container {
    position: relative;
    width: 22.2rem;
    border: 1px solid hsla(0, 0%, 65%, 0.158);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 2rem;
}

.login-container form input {
    display: block;
    padding: 14.5px;
    width: 100%;
    margin: 2rem 0;
    color: var(--color);
    outline: none;
    background-color: #9191911f;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
    backdrop-filter: blur(15px);
}

.login-container form input:focus {
    box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.2);
    animation: wobble 0.3s ease-in;
}

.login-container form button {
    background-color: var(--primary-color);
    color: var(--color);
    display: block;
    padding: 13px;
    border-radius: 5px;
    outline: none;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.1s ease-in-out;
    border: none;
}

.login-container form button:hover {
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.register-forget {
    color: #fff;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.opacity {
    opacity: 0.6;
}

.theme-btn-container {
    position: absolute;
    left: 0;
    bottom: 2rem;
}

.theme-btn {
    cursor: pointer;
    transition: all 0.3s ease-in;
}

.theme-btn:hover {
    width: 40px !important;
}

input {
    border: 1px solid black;
}

/* Responsive Design 
Bootstrap 5.3 Standaard Breakpoints (2024-2025):
Breakpoint	Class	Dimensies	Apparaat Type
X-Small		None	<576px		Portrait phones
Small		sm		≥576px		Landscape phones
Medium		md		≥768px		Tablets
Large		lg		≥992px		Desktops
Extra Large	xl		≥1200px		Large desktops
Extra Extra xxxl	≥1400px		Larger desktops

1024px - iPad Pro/Air series
820px - Standaard iPads
800px - Samsung Galaxy Tab S series
600px - Budget tablets en compact formaat
430px - iPhone 16 Pro Max, 15 Pro Max, 14 Pro Max
393px - iPhone 16, 16 Pro, 15, 15 Pro, 14 Pro
390px - iPhone 14, 13

Gekozen responsive max-width:
992px	Bootstrap voor Desktop/laptop (en iPad Pro/Air)
768px	Bootstrap voor Tablets (iPads en Samsung Galaxy Tab S series)
430px	iPhone 16 Pro Max, 15 Pro Max, 14 Pro Max en kleinere iPhone modellen
 */


@media (max-width: 1060px) {
/* Bootstrap width voor Desktop/laptop (en iPad Pro/Air); aangepast voor mijn ontwerp (iets breeder) */
    h1 {
        font-size: 6rem;
    }

    h2 {
        font-size: 4rem;
    }	

	 .main-container {
        flex-direction: column;
        align-items: center;
        height: 100vh;
        padding: 10px;
    }

	 .left-Container {
        order: 1;
        flex: 1;
        margin-top: 2rem;
    }

    .right-container {
        width: 100%;
        order: 2;
        flex: 1;
        margin-bottom: 2rem;
		/*border: 2px solid red; Tijdelijk om de container te zien */
    }
}

@media (max-width: 768px) {
/* Bootstrap voor Tablets (iPads en Samsung Galaxy Tab S series) */
    h1 {
        font-size: 6rem;
        margin: 0;
    }

    h2 {
        font-size: 4rem;
    }

    .pwa-install-banner.show {
        display: block;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
        height: 100vh;
        padding: 10px;
    }

    .left-Container {
        order: 1;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        margin-top: 2rem;
    }

    .right-container {
        order: 2;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
        flex: 1;
        align-content: flex-start;
        margin-bottom: 2rem;
		/*border: 2px solid green; Tijdelijk om de container te zien */
    }

    /* Responsive tijd blocks voor 768px */
    .time-block {
        grid-column: 1;
        grid-row: 1;
        width: 85%;
        height: auto;
    }

    .weather-block {
        grid-column: 2;
        grid-row: 1;
        width: 85%;
        height: auto;
    }

    .block:not(.time-block):not(.weather-block) {
        width: 85%;
        height: auto;
        min-width: 120px;
    }

    .icon {
        max-width: 50%;
        max-height: 50%;
    }

    /* Responsive weer blocks voor 768px */
    .time-block .current-time {
        font-size: clamp(0.8rem, 6vw, 2rem);
    }

    .time-block .current-date {
        font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    }

    .time-block .timezone {
        font-size: clamp(0.55rem, 4.5vw, 0.8rem);
    }

    .weather-block .temperature {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .weather-block .weather-description {
        font-size: clamp(0.6rem, 5vw, 0.85rem);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-wrap: break-word;
        hyphens: auto;
        max-height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
    }

    .weather-block .weather-location {
        font-size: clamp(0.55rem, 4.5vw, 0.75rem);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-wrap: break-word;
        hyphens: auto;
        max-height: 1.2em;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        line-height: 1.2;
    }

    .weather-block .weather-condition-icon {
        width: clamp(35px, 8vw, 55px);
        height: clamp(35px, 8vw, 55px);
    }
	
	.form-container {
        width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 430px) {
    /* iPhone 16 Pro Max, 15 Pro Max, 14 Pro Max en kleinere iPhone modellen */
    h1 {
        font-size: 4rem;
    }

	.main-container {
		width: 100%;
		max-width: 430px;    
		/*border: 2px solid purple;  Tijdelijk om de container te zien */
	}

    .left-Container {
        height: 40vh;
        margin-top: 1.5rem;
        justify-content: top;
		/*border: 2px solid yellow;  Tijdelijk om de container te zien */
    }

    .right-container {
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: repeat(3, 1fr);   
        gap: 0.5rem;
        flex: 1;
        align-content: flex-start;
        margin-bottom: 2.5rem;
        justify-content: center;
		margin: 0px;  
		/*border: 2px solid yellow; Tijdelijk om de container te zien */
    }

    .block {
        padding: 15px;
        width: 100%;
        height: auto;
        flex: 1 1 30%;
        margin: 0.1rem;
        gap: 10px;
		/*border: 2px solid blue;  Tijdelijk om de container te zien */
    }

    .icon {
        width: 40px;
        height: 40px;
    }

	/* Voorkom dat tekst de breedte forceert */
    .time-block .current-time,
    .weather-block .temperature {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .time-block {
        width: 95%;
    aspect-ratio: 1;
    }

    /* Responsive time blocks */
    .time-block .current-time {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }

    .time-block .current-date {
        font-size: clamp(0.5rem, 7vw, 0.75rem);
    }

    .time-block .timezone {
        font-size: clamp(0.45rem, 6.5vw, 0.6rem);
    }
	
	.weather-block {
        width: 95%;
    aspect-ratio: 1;
    }

    /* Responsive weer blocks */
    .weather-block .temperature {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }

    .weather-block .weather-description {
        font-size: clamp(0.5rem, 7vw, 0.7rem);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-wrap: break-word;
        hyphens: auto;
        max-height: 2.4em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
    }

    .weather-block .weather-location {
        font-size: clamp(0.45rem, 6.5vw, 0.6rem);
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-wrap: break-word;
        hyphens: auto;
        max-height: 1.2em;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        line-height: 1.2;
    }

    .weather-block .weather-condition-icon {
        width: clamp(30px, 9vw, 45px);
        height: clamp(30px, 9vw, 45px);
    }

    .block:not(.time-block):not(.weather-block) {
        gap: 10px;
        width: 95%;
    aspect-ratio: 1;
    }

		.form-container {
    position: relative;
    width: 16rem;
		padding: 1rem;
		margin: 0;
	}
	
	.login-container form input {
		padding: 12px;
		margin: 1.5rem 0;
		font-size: 16px;
	}

	.login-container form button {
		padding: 12px;
		font-size: 16px;
		margin-bottom: 1.5rem;
	}

	.register-forget {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.register-forget a {
		margin: 0;
		font-size: 14px;
	}
}
