gfont-face {
  font-family: 'font';
  src: url('rubik.woff2') format('woff2');
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url(tileanim.gif);
    background-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'font', Fallback, sans-serif;
    overflow: hidden;
}

.container{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}


#floatingPage {
    background-color: rgba(20, 20, 20, 1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    max-width: 1000px;
    width: 100%; /* Adjust based on layout */
    position: relative; /* Changed from absolute to relative */
    animation: slideIn 2s ease;
}


@keyframes slideIn {
    0% {
    transform: translateY(100%);
    }
    100% {
    transform: translateY(0);
    }
}

@keyframes reveal { from { filter:blur(6px); } to { filter:blur(0px); }  }

#floatingText {
    color: white;
    text-align: center;
    font-family: 'font', Fallback, sans-serif;
    font-size: 22px;
    box-sizing: border-box; /* Include padding in width calculation */
}

.smallText{
    color: grey;
    font-size: 16px;
    font-style: italic;
}

#personalPicImg {
    width: 192px;
    height: 192px;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

#personalPicDesc {
    margin-top: 3px;
}

#aboutMe {
    text-align: left;
    margin-right: 20px;
    margin-left: 20px;
}

#aboutMeTitle {
    margin-left: 0px;
}

#aboutMeDesc {
    margin-top: 20px;
    margin-bottom: -20px;
}

/*
#neatStuff {
    text-align: left;
    padding-left: 25px;
}

#neatStuffTitle {
    margin-left: 20px;
}

#neatStuffDesc {
    margin-top: -20px;
}

#constructionText {
    font-style: italic;
    text-decoration: underline;
}

*/
#contact1, #contact2 {
    display: flex;
    align-items: center; /* vertically aligns items in the center */
    margin-left: 10px; /* adds space between the elements */
    margin-right: 10px; /* adds space between the elements */
    gap: 20px;
}

#contactInfo {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* vertically aligns items in the center */
    justify-content: center;
}

hr {
    border: 0;
    height: 2px;
    /*
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    */
    background: white;
    width: 0;
    animation-delay: 1.5s;
    animation: separator-width 2s ease-out forwards;
}

@keyframes separator-width {
    0% {
    width: 0;
    }
    100% {
    width: 60%;
    }
}

@media only screen and (min-width: 768px) {
    .info{
        display: grid;
        grid-template-columns: 1fr 3fr; 
        grid-template-rows: auto auto; 
        padding-bottom: -30px;
    }

    #contactSeparator {
        margin-left: 10px; /* adds space between the elements */
        margin-right: 10px; /* adds space between the elements */
    }

}

@media only screen and (max-width: 768px) {
    #contactSeparator {
    display: none;
    }
    #contact2 {
        margin-top: -30px;
    }
    .info{
        padding-bottom: 20px;
    }
}

a:link {
  color: green;
  background-color: transparent;
  text-decoration: underline;
}

a:visited {
  color: darkgreen;
  background-color: transparent;
  text-decoration: underline;
}

a:hover {
  color: purple;
  background-color: transparent;
  text-decoration: underline;
}

a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}
