* {
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    background: url(photos/1.jpg);
    background-size: cover;
}

header {
    background-color: #bc8168;
    padding: 10px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: auto;
}

.logo {
    width: 10%;
}

.logo img {
    width: 100%;
}

.menu-item {
    width: 20%;
    background-color: rgb(255, 198, 154);
    color: black;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    border-radius: 34px;
}

.menu-item:hover {
    background-color: #ff9d64;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-item a {
    text-decoration: none;
    color: black;
}

.menu-item:hover a {
    text-decoration: none;
    color: white;
}

.current {
    background-color: #ae4a4a;
    color: white;
    width: 20%;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    border-radius: 34px;
}

#sub-menu {
    width: 100%;
    display: none;
    position: absolute;
    z-index: +10;
    top: 29px;
}

.sub-menu-item {
    border-bottom: solid white 1px;
    border-radius: 30px;
    width: 100%;
    background-color: #a54848;
    padding: 5px;
    text-align: center;
    color: white;

}

#projects {
    position: relative;
}

#projects:hover {
    color: white;
}

#projects:hover #sub-menu {
    display: block;
}

.contact-container {
    background-color: #ffeadf;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 80%;
    margin-top: 20px;
    margin-bottom: 20px;
    position:absolute;
    top:230px;
    left: 10%;
}

h1 {
    color: #bc8168;
    text-align: center;
    margin-bottom: 24px;
    font-size: 40px;
}

.info p,
.social a {
    font-size: 16px;
    margin: 10px 0;
    text-align: center;
}

.social {
    margin: 20px 0;
    text-align: center;
}

.social a {
    color: #bc8168;
    text-decoration: none;
    margin: 0 10px;
}

.social a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

input,
textarea {
    padding: 10px;
    margin: 8px 0;
    border: 1px solid black;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
}

button {
    background-color: rgb(255, 198, 154);
    color: black;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff9d64;
}

a {
    color: #bc8168;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    background-color: #bc8168;
    text-align: center;
    padding: 15px;
    color: rgb(68, 44, 44);
    width: 100%;
    position:absolute;
    bottom: 0;
}

    /*for large screens*/
    @media only screen and (min-width: 1280px){
        .menu {
            flex-direction: row;
            gap: 20px;
        }

        .contact-container {
            width: 60%;
            left: 20%;
        }
    }
    
    /*for desktops*/
    @media only screen and (max-width: 1280px) and (min-width: 769px){
        .menu {
            flex-wrap: wrap;
            justify-content: center;
        }
    }
    
    /*for tablets*/
    @media only screen and (max-width: 768px) and (min-width: 481px) {
        .menu {
            flex-direction: column;
            align-items: center;
        }
    
        .menu-item,
        .current {
            width: 80%;
            margin-bottom: 10px;
        }
    }
    
    /*for mobile phones*/
    @media only screen and (max-width: 480px) {
        .menu {
            flex-direction: column;
            background-color: #bc8168;
            width: 100%;
        }
    
        .menu-item,
        .current {
            width: 100%;
            margin-bottom: 10px;
        }
    
        #sub-menu {
            top: 25px;
        }
    
        .logo img {
            width: 70px;
        }
    
        .menu-item,
        .current {
            width: 100%;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .contact-container {
            margin-top: 0;
        }
    
        footer {
            font-size: 12px;
            text-align: center;
            padding: 20px;
        }

        .info p {
            font-size: 14px;
            padding: 0 10px; 
          }
          
          .info a {
            word-break: break-all; 
          }

          h1 {
            font-size: 25px;
          }
    }