styl.css

@import url(‘https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap’);
*{
margin: 0;
padding: 0;
}
.container{
background: url(“one.jpg”);
height:100vh;
background-size: 100% 100%;
}
.container .navbar{
width: 100%;
height: 80px;
background-color: #55928c
}
.navbar .logo{
display: inline-block;
margin-left: 20px;
margin-top: 20px;
}
.navbar ul{
float: right;
margin-right: 20px;
}
.navbar .logo a{
text-decoration: none;
font-size: 30px;
font-style: sans-serif;
color: white;
}
.navbar ul li{
list-style: none;
display: inline-block;
margin: 0 8px;
line-height: 80px;
}
.navbar ul li a{
color: white;
text-decoration: none;
padding: 6px 12px;
font-size: 20px;
font-family: Roboto;
transition: .5sn;
}
.navbar ul li a.active,
.navbar ul li a:hover{
background:orange;
border-radius: 2px;
}
.container .center{
position: absolute;
top: 50%;
left: 50%;
transform:translate(-50% 50%);
font-family: sans serif;
user-select: none;
}
.center h1{
color: black;
font-size: 70px;
font-weight: bold;
width: 900px;
text-align: center;
}
.center h2{
color: white;
font-size: 50px;
font-weight: bold;
width: 885px;
margin-top: 10px;
text-align: center;
}
.center .buttons{
margin: 85px 280px;
}
.buttons button{
height: 50px;
width: 150px;
font-size: 18px;
font-weight: bold;
color: #ff808a;
background-color: #ff4040;
border: solid 1px red;
cursor: pointer;
outline: none;
border-radius: 25px;
transition: .5sn;
}
.buttons button:hover{
background-color: white;
}

Yorum bırakın