@font-face {
    font-family: pixel;
    src: url("fonts/digifont.otf");
}

/* Home Page Styling */
.home-body {
	background-image: url("assets/images/homebg.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
    background-color: #374251;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Calculator Body */
.calculator-container {
    background-color: #333;
    width: 550px;
    max-width: 90%;
    padding: 60px;        /*Controls how much screen area there is*/
    border-radius: 20px;
    box-shadow: 10px 10px 20px #0000004d, 
    inset 2px 2px 5px #ffffff1a;
    margin-top: 5px;
}

.brand {
    font-family: "pixel";
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

/* The LCD Screen */
.screen-area {
    background-color: #9ea792; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: inset 3px 3px 8px #00000033;
    margin-bottom: 25px;
    border: 1px solid #555;
    text-align: center;
}

.profile-pic {
    width: 155px;
    height: 200px;
    border-color: black;
    margin-bottom: 10px;
    object-fit: fill ;
    border: 2px solid black; 
}

.screen-content {
    opacity: 0.85; /* Makes text look slightly digital */
}

.screen-content p {
    font-size:  1.1rem;
	text-align: left;
}

.screen-content .name {
    font-family: "pixel";
    font-size: 2rem;
    text-decoration: underline overline;
    text-decoration-style: dashed;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    color: #222;
    text-decoration-color: #222;
    text-align: left;
}

.screen-content .typer{
    font-family: "pixel";
    color: #222;
    overflow: hidden;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #f8f8f6, 0 0 10px #f8f8f6, 0 0 10px #f8f8f6;
}

/* --- BASE STYLES (Mobile First) --- */

/* Grid for 3 Link Buttons */
.keypad-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /*number of times = number of columns */
    gap: 5px;
}

/* Grid for all other Buttons */
.keypad {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; /*number of times = number of columns */
    gap: 15px;
}

.calc-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: #555;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 6px 0 #222; /* Creates the 3D button height */
    transition: all 0.1s;
}

/* Special sizing for non-link buttons */
.for-show-button {
    padding: 10px;
    font-size: 1.2rem;
}

/*Red color for Background Change button*/
#change-bg-btn {
    background-color: #db0000;
    border-color: #891010;
    cursor: pointer;
}

/* Green color for Projects button */
.projects-btn { 
    background-color: #4b683e;
}

.glow-words {
    text-shadow: 0 0 10px #f8f8f6, 0 0 10px #f8f8f6, 0 0 10px #f8f8f6;
}

/* --- MEDIA QUERIES --- */

/* Styles for smaller screens */
@media screen and (max-width: 600px) {
    .screen-content .name { font-size: 1.2rem; } 
    

    .screen-content .typer { font-size: 1rem; }
    
    .calc-btn {font-size: .9rem ;}

    .calculator-container {
        max-width: 97%;
        padding: 30px; 
}
}

/* Hover and Active Effects ONLY for wider screens */
@media (min-width: 600px) {
    /* Hover effect */
    .calc-btn:hover { background-color: #666; }
    #change-bg-btn:hover { background-color: #ff4646; }
    .projects-btn:hover { background-color: #557646; }

    /* Active (click) effect */
    .calc-btn:active {
        box-shadow: 0 2px 0 #222;
        transform: translateY(3px);
    }

    .projects-btn:active {
         box-shadow: 0 2px 0 #4b683e;
    }
}

@media (min-width: 2000px) {
    .calculator-container {
        min-width: 50%;
        padding: 80px; 
}
    .screen-content .name { font-size: 6rem; } 
    .screen-content p {font-size: 3rem;}
    
    .brand {font-size: 2rem;}
    .screen-content .typer { font-size: 3.5rem; }

    .calc-btn {font-size: 2.2rem ;}

    .profile-pic {
        width: 450px;
        height: 500px;
    }
}