/* Johanna's phone — lock screen, home grid and full-screen app views.
   Ported from the WordPress build (WPCode CSS snippet); only the asset paths changed. */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
}

.screen-container {
    position: relative;
    width: 300px;
    height: 600px;
    border: 2px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.background-image {
    background: url('assets/Johanna-Phone-Background.png') no-repeat center center/cover;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.number-pad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.digit-display {
    display: flex;
    justify-content: space-between;
    width: 160px;
    margin-bottom: 10px;
}

.circle {
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: transparent;
}

.circle.filled {
    background-color: #007bff;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.number {
    background-color: rgba(0, 123, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 20px;
    height: 80px;
    width: 80px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: inherit;
}

.number small {
    font-size: 12px;
    color: #d0d0d0;
    margin-top: -5px;
}

.number:hover {
    background-color: rgba(0, 123, 255, 0.4);
}

.numbers button:nth-child(10) {
    grid-column: 2;
}

.clear-btn {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}

.clear-btn:hover {
    background-color: #cc0000;
}

.error-message {
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 10px;
    display: none;
}

.restricted-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/Johanna-Phone-Background.png') no-repeat center center/cover;
    display: none; /* shown once the passcode is right */
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 90%;
    max-width: 300px;
    margin: auto;
    padding-top: 20px;
}

.icon {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.icon img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.full-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.full-image-container img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.home-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.home-btn:hover {
    background-color: #0056b3;
}
