/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

h1{
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 30px;
}

#maincontainer a:link, #projecttable a:link, #aboutwebsitecontainer a:link, footer a:link{
  display:inline-block; 
  padding:0em 0.2em;
  line-height:1;
  background-color:#84c7dd;
  color:black;
  text-decoration:none;
}

#maincontainer a:visited, #projecttable a:visited, #aboutwebsitecontainer a:visited, footer a:visited{
  color:#181818
}

main a:hover, footer a:hover{
  background-color:#62bad7;
  transform:scale(1.05);
}

body{
  background-color:#181818; 
  color:white;
  margin-inline: clamp(0vw, calc(30vw - 5rem), 18vw)
}

#img1{
  float:left;
  margin-right:15px;
  margin-top:15px;
  border:0.1em solid #187391;
  border-radius: 10px;
}

#headercontainer{
  margin-bottom:35px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}

#headercontainer h1{
    margin-top: 15px;
    margin-bottom: 0; 
    margin-left: 0px; 
    margin-right: auto;
}

#footercontainer{
  margin-top:25px;
  display:flex;
}

#mainpt1{
  display:flex;
  margin-bottom:35px;
}

#mainpt2{
  margin-top:40px;
  display:flex;
}

#featuredwork{
  margin-bottom:10px;
  display:flex;
}

/*positioning of elements on about page*/

#aboutwebsite1{
  margin-bottom:40px;
}

/*positioning of elements on smallboatsproject page*/

#boatsimg1{
  margin-top:20px;
}

/*position of elements on nicosiaproject page*/

#nicosiaimg1{
  margin-top:20px;
}

/*homepage "featured work" gallery*/

#imagegallery{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

#imagegallery img:nth-child(2){
  margin-left:15px;
}

#imagegallery img:nth-child(3){
  margin-left:15px;
}

/*header buttons*/

#button1{
  margin-right:15px;
}

#button2{
  margin-right:15px;
}

#button1:hover{
  transform:scale(1.1)
}

#button2:hover{
  transform:scale(1.1)
}

#button3:hover{
  transform:scale(1.1)
}

#bskybutton:hover{
  transform:scale(1.1)
}

/* homepage projects section*/

#projecttable td{
  padding-bottom:15px;
}

#projecttable td:nth-child(1){
  width:20%;
}

#projecttable td:nth-child(2){
  padding-left:15px;
}