
header {
    height: 174px;
    background-image: url('JK2Banner.png');
    background-position: center;
    background-repeat: no-repeat;
    background-color: black;
}

header ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header ul li {
    padding: 20px;
    margin: 0 15px;   
}

header ul li a {
    color: white;
    text-decoration: none;
}

header ul li a:hover {
    text-decoration: underline;
}

body {
    font-family: 'Arial', monospace;
    font-size: large;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* color: rgb(5, 4, 100); */
    color: #333;
    background-image: url('bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* all browser no selection */
    user-select:  none;
    -webkit-user-drag: none;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
}

.section-1 {
    font-size: 2ex;
    display:flex;
    flex-direction: row;
    padding-top: 20px;
    padding-left: 150px;
}

.custom-link {
    color: rgb(5, 4, 100);
    font-weight: bold; 
}

.makingpicsslowly {
    width: 570px;
    padding: 50px;
    padding-top: 250px;
}

.section-2 {
    font-size: 2ex;
    padding-left: 150px;
    padding-right: 150px;
}

.arduino {
    background-image: url('kyle.jpg');
    background-position: center 475px;
    background-repeat: no-repeat;
    background-size: 80%;
    padding: 20px;
    border-radius: 8px;
    color: white;         
}

.uno {
    padding: 150px;
    padding-top: 100px;
    padding-bottom: 50px;
}

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    height: 200px;
    width: 200px;
    margin: 20px auto;
}

.button {
    display: inline-block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: white;
    background-color: #008CBA;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #007bb5;
}

.box {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    max-width: 300px;
    text-align: center;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.box h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.section-3 {
    font-size: 2ex;
    display:flex;
    flex-direction: row;
    padding-top: 20px;
    padding-right: 150px;
}

li {
    margin-bottom: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox:target {
    display: flex;
}

.lightbox .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.lightbox .close:hover {
    background: rgba(0, 0, 0, 0.8);
}

footer {
    background-color: #333;
    padding-top: 10px;
    text-align: center;
    margin-top: auto;
    color: white;
}